summarylogtreecommitdiffstats
path: root/octave-sparsersb.install
diff options
context:
space:
mode:
authorwangjiezhe2015-10-28 12:05:57 +0800
committerwangjiezhe2015-10-28 12:05:57 +0800
commitfc13dc6ce4537a4dee0cb9cb1edd0ce9a0ddd43e (patch)
treee20600fdd92287cd63be4d5145a6b26cbdd39f37 /octave-sparsersb.install
parent2e14a282d4001711fa19c67274cc60ae44be989b (diff)
downloadaur-fc13dc6ce4537a4dee0cb9cb1edd0ce9a0ddd43e.tar.gz
Use _octave_run
Diffstat (limited to 'octave-sparsersb.install')
-rw-r--r--octave-sparsersb.install8
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-sparsersb.install b/octave-sparsersb.install
index cadfe08e5c8..b3606521012 100644
--- a/octave-sparsersb.install
+++ b/octave-sparsersb.install
@@ -1,7 +1,11 @@
_pack=sparsersb
+_octave_run() {
+ octave --no-history --no-init-file --no-window-system -q -f --eval "$*"
+}
+
post_install() {
- octave-cli -q -f --eval "pkg rebuild -global $_pack"
+ _octave_run "pkg rebuild -global $_pack"
}
post_upgrade() {
@@ -9,5 +13,5 @@ post_upgrade() {
}
post_remove() {
- octave-cli -q -f --eval "pkg rebuild -global"
+ _octave_run "pkg rebuild -global"
}