summarylogtreecommitdiffstats
path: root/octave-splines.install
blob: 8cce2f252760d0ba9ca9dbef15a6d931d0c19dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
_pack=splines
_prefix=/usr/share/octave/packages
_libdir=/usr/lib/octave/packages

## arg 1:  the new package version
post_install() {
  octave-cli -q -f --eval "pkg prefix $_prefix $_libdir; pkg install -verbose -global /usr/share/octave/$_pack.tar.gz"
}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
  post_remove
  post_install
}

## arg 1:  the old package version
post_remove() {
  octave-cli -q -f --eval "pkg prefix $_prefix $_libdir; pkg uninstall $_pack; pkg rebuild -global"
}