Advertisement
Guest User

octave-statistics.install

a guest
Mar 12th, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. ## arg 1:  the new package version
  2. post_install() {
  3.   echo "pkg prefix /usr/share/octave/packages /usr/lib/octave/packages; pkg install -global /usr/share/octave/statistics.tar.gz" | octave --silent
  4. }
  5.  
  6. ## arg 1:  the new package version
  7. ## arg 2:  the old package version
  8. post_upgrade() {
  9.   post_remove
  10.   post_install
  11. }
  12.  
  13. ## arg 1:  the old package version
  14. post_remove() {
  15.   echo "pkg prefix /usr/share/octave/packages /usr/lib/octave/packages; pkg uninstall statistics" | octave --silent
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement