diff options
author | wangjiezhe | 2015-10-27 18:15:47 +0800 |
---|---|---|
committer | wangjiezhe | 2015-10-27 18:15:47 +0800 |
commit | fc9991b8fd0a5ef5bfebc729991b01b1903cd963 (patch) | |
tree | f038cd42182ce480de0714e23bc4d9ccf18b44a2 /octave-database.install | |
download | aur-fc9991b8fd0a5ef5bfebc729991b01b1903cd963.tar.gz |
Initial commit
Diffstat (limited to 'octave-database.install')
-rw-r--r-- | octave-database.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/octave-database.install b/octave-database.install new file mode 100644 index 000000000000..8ac588903e7b --- /dev/null +++ b/octave-database.install @@ -0,0 +1,17 @@ +_pack=database + +_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" +} |