summarylogtreecommitdiffstats
path: root/octave-generate_html.install
diff options
context:
space:
mode:
authorwangjiezhe2015-10-27 20:21:35 +0800
committerwangjiezhe2015-10-27 20:21:35 +0800
commit82ce59317e3372153191511ac8f9275c59ce8ab4 (patch)
treeeb3dcfc5e511b19b93293e3a3fabbfb9e8d8d8f4 /octave-generate_html.install
parent195c9f006f99dc23c309d778e899cfaa443b5784 (diff)
downloadaur-82ce59317e3372153191511ac8f9275c59ce8ab4.tar.gz
Use _octave_run
Diffstat (limited to 'octave-generate_html.install')
-rw-r--r--octave-generate_html.install8
1 files changed, 6 insertions, 2 deletions
diff --git a/octave-generate_html.install b/octave-generate_html.install
index df760d017d03..888d844ba285 100644
--- a/octave-generate_html.install
+++ b/octave-generate_html.install
@@ -1,7 +1,11 @@
_pack=generate_html
+_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"
}