summarylogtreecommitdiffstats
path: root/octave-specfun.install
diff options
context:
space:
mode:
authorwangjiezhe2015-12-14 21:00:59 +0800
committerwangjiezhe2015-12-14 21:00:59 +0800
commitecf10eb14d607467741bba507e3a8ccc49b24e07 (patch)
tree5d23b1d6359bff82ca9df69d414865795eec8ec0 /octave-specfun.install
parent7ff7e30209a89fdb7ad272f4f60fe5c3c57deb22 (diff)
downloadaur-ecf10eb14d607467741bba507e3a8ccc49b24e07.tar.gz
C++11 ABI rebuild
Diffstat (limited to 'octave-specfun.install')
-rw-r--r--octave-specfun.install8
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-specfun.install b/octave-specfun.install
index 70146cb0fa91..b354f24edf8a 100644
--- a/octave-specfun.install
+++ b/octave-specfun.install
@@ -1,7 +1,11 @@
_pack=specfun
+_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"
}