blob: 36e195ce7652d3e44309cd9818721a3ddc2288bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
_pack=control
## arg 1: the new package version
post_install() {
octave -q -f --eval "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 -q -f --eval "pkg uninstall $_pack; pkg rebuild -global"
}
|