summarylogtreecommitdiffstats
path: root/octave-specfun.install
blob: b354f24edf8a9fd1d1677b39cf53ee8bf2a6a2a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
_pack=specfun

_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"
}