summarylogtreecommitdiffstats
path: root/octave-image.install
diff options
context:
space:
mode:
Diffstat (limited to 'octave-image.install')
-rw-r--r--octave-image.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/octave-image.install b/octave-image.install
new file mode 100644
index 00000000000..7c9ea5667f4
--- /dev/null
+++ b/octave-image.install
@@ -0,0 +1,13 @@
+_pack=image
+
+post_install() {
+ octave -q -f --eval "pkg rebuild -global $_pack"
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ octave -q -f --eval "pkg rebuild -global"
+}