runDotInstalls 470 B

1234567891011121314151617
  1. #!/bin/sh
  2. for ONEDOTINSTALL in `ls -a | grep '\.INSTALL'`
  3. do
  4. #reset functions
  5. function pre_install () { /bin/true; }
  6. function post_install () { /bin/true; }
  7. function pre_upgrade () { /bin/true; }
  8. function post_upgrade () { /bin/true; }
  9. function pre_remove () { /bin/true; }
  10. function post_remove () { /bin/true; }
  11. PKGVER="`echo $ONEDOTINSTALL | sed 's/[^-]*-//'`" #get version
  12. . ./$ONEDOTINSTALL #load functions
  13. pre_install $PKGVER
  14. post_install $PKGVER
  15. done