diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-11-30 19:00:25 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-11-30 19:00:25 -0500 |
commit | 95c84a13a4cdade12b13d92ce43b634b474ea0da (patch) | |
tree | 7e58a5294852bbcc5adaae3ea719f8a86e2bae59 /pcr/octave-general/octave-general.install | |
parent | 93b5e7b7fff8205170825e2d41da815960b1cc6d (diff) |
octave-general-2.0.0-2: updating version
Diffstat (limited to 'pcr/octave-general/octave-general.install')
-rw-r--r-- | pcr/octave-general/octave-general.install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pcr/octave-general/octave-general.install b/pcr/octave-general/octave-general.install index 25d38ea9e..d5ac2192f 100644 --- a/pcr/octave-general/octave-general.install +++ b/pcr/octave-general/octave-general.install @@ -1,7 +1,11 @@ _pack=general +_octave_run() { + octave --no-history --no-init-file --no-window-system -q -f --eval "$*" +} + post_install() { - octave -q -f --eval "pkg rebuild -global $_pack" + _octave_run "pkg rebuild -global $_pack" } post_upgrade() { @@ -9,5 +13,5 @@ post_upgrade() { } post_remove() { - octave -q -f --eval "pkg rebuild -global" + _octave_run "pkg rebuild -global" } |