diff options
author | wangjiezhe | 2015-10-28 10:55:07 +0800 |
---|---|---|
committer | wangjiezhe | 2015-10-28 10:55:07 +0800 |
commit | 28821010dcf64f87f7466cf5efcd45f2ef3da842 (patch) | |
tree | 421d62b9092fdc1eb31c66637fd82054cecc9f21 /octave-octproj.install | |
download | aur-28821010dcf64f87f7466cf5efcd45f2ef3da842.tar.gz |
Initial commit
Diffstat (limited to 'octave-octproj.install')
-rw-r--r-- | octave-octproj.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/octave-octproj.install b/octave-octproj.install new file mode 100644 index 000000000000..8f9e6ef588a6 --- /dev/null +++ b/octave-octproj.install @@ -0,0 +1,17 @@ +_pack=octproj + +_octave_run() { + octave --no-history --no-init-file --no-window-system -q -f --eval "$*" +} + +post_install() { + _octave_run "pkg rebuild -global $_pack" +} + +post_upgrade() { + post_install +} + +post_remove() { + _octave_run "pkg rebuild -global" +} |