summarylogtreecommitdiffstats
path: root/octave-struct.install
diff options
context:
space:
mode:
authorwangjiezhe2015-12-14 21:02:31 +0800
committerwangjiezhe2015-12-14 21:02:31 +0800
commit5d3cebc0d449088beb069dc3318d422210204a6a (patch)
treef0bcf607b7bfe3994f937a0b10187ecf84bd8871 /octave-struct.install
parentc5b2d7359b087489069f04cd081e06a89605bd10 (diff)
downloadaur-5d3cebc0d449088beb069dc3318d422210204a6a.tar.gz
C++11 ABI rebuild
Diffstat (limited to 'octave-struct.install')
-rw-r--r--octave-struct.install8
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-struct.install b/octave-struct.install
index 41e16f01db18..0a5de7725921 100644
--- a/octave-struct.install
+++ b/octave-struct.install
@@ -1,7 +1,11 @@
_pack=struct
+_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"
}