summarylogtreecommitdiffstats
path: root/octave-nnet.install
blob: 22324bf0d3195f09d1ddd95242aca1e8527b68c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pkg=nnet
## arg 1:  the new package version
post_install() {
  echo "pkg prefix /usr/share/octave/packages /usr/lib/octave/packages; pkg install -global /usr/share/octave/$pkg.tar.gz" | octave --silent
}

## 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() {
  echo "pkg prefix /usr/share/octave/packages /usr/lib/octave/packages; pkg uninstall $pkg" | octave --silent
}