Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

octave-miscellaneous.install

By: a guest on Mar 12th, 2011  |  syntax: None  |  size: 0.50 KB  |  views: 68  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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/miscellaneous.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 miscellaneous" | octave --silent
  16. }
clone this paste RAW Paste Data