summarylogtreecommitdiffstats
path: root/octave-netcdf.install
diff options
context:
space:
mode:
Diffstat (limited to 'octave-netcdf.install')
-rw-r--r--octave-netcdf.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/octave-netcdf.install b/octave-netcdf.install
new file mode 100644
index 000000000000..8dd75ee2214b
--- /dev/null
+++ b/octave-netcdf.install
@@ -0,0 +1,17 @@
+_pack=netcdf
+
+_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"
+}