diff options
author | wangjiezhe | 2016-12-29 14:09:40 +0800 |
---|---|---|
committer | wangjiezhe | 2016-12-29 14:09:40 +0800 |
commit | 788b3b7a63897526643dc6601bdb845636efc94b (patch) | |
tree | eb72a0cb0867af922d5a5c4a3b6d86ea77a3da2c /octave-plot.install | |
parent | ebd0ed60c3cfea0e7fc9c79d62d44abdb7cf190c (diff) | |
download | aur-788b3b7a63897526643dc6601bdb845636efc94b.tar.gz |
rebuild for octave 4.2.0
Diffstat (limited to 'octave-plot.install')
-rw-r--r-- | octave-plot.install | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-plot.install b/octave-plot.install index 2b1d57202f08..701a58358fab 100644 --- a/octave-plot.install +++ b/octave-plot.install @@ -1,7 +1,11 @@ _pack=plot +_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" } |