home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Languages / Python / python-14-src / Contrib / NeXT / Python.pre_install.in < prev    next >
Encoding:
Text File  |  1997-01-17  |  454 b   |  25 lines

  1. #!/bin/sh
  2.  
  3. PACKAGE=$1
  4. INSTALLDIR=$2
  5.  
  6. # Remove any previously installed script
  7. oldlibrarydir=$INSTALLDIR/lib/python
  8. if [ -d $oldlibrarydir ]
  9. then
  10.     echo
  11.     echo -n "    Removing previous scripts from $oldlibrarydir ... "
  12.     /bin/rm -rf $oldlibrarydir
  13. fi
  14.  
  15. oldlibrarydir=$INSTALLDIR/lib/python@PYTHON_VERSION@
  16. if [ -d $oldlibrarydir ]
  17. then
  18.     echo
  19.     echo -n "    Removing previous scripts from $oldlibrarydir ... "
  20.     /bin/rm -rf $oldlibrarydir
  21. fi
  22.  
  23. echo "OK."
  24. exit 0
  25.