diff options
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" +} |