home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / compiler / Clean.sh next >
Linux/UNIX/POSIX Shell Script  |  2000-12-09  |  2KB  |  51 lines

  1. #!/bin/sh
  2. #
  3. # $Id: Clean.sh,v 1.4 2000/12/09 05:10:14 cph Exp $
  4. #
  5. # Copyright (c) 2000 Massachusetts Institute of Technology
  6. #
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. # Utility for cleaning up the MIT Scheme runtime-check directory.
  22. # The working directory must be the runtime-check directory.
  23.  
  24. if [ $# -ne 1 ]; then
  25.     echo "usage: $0 <command>"
  26.     exit 1
  27. fi
  28.  
  29. ../etc/Clean.sh "${1}" rm-pkg-src rm-pkg-bin
  30.  
  31. for SUBDIR in back base fggen fgopt machine rtlbase rtlgen rtlopt; do
  32.     if [ -d ${SUBDIR} ]; then
  33.     echo "making ${1} in ${SUBDIR}"
  34.     (cd ${SUBDIR} && rm -f *.bin *.ext *.com *.bci)
  35.     fi
  36. done
  37.  
  38. case "${1}" in
  39. distclean | maintainer-clean)
  40.     rm -f machine compiler.cbf compiler.pkg compiler.sf make.com
  41.     ;;
  42. esac
  43.  
  44. case "${1}" in
  45. maintainer-clean)
  46.     rm -f machines/vax/dinstr[123].scm
  47.     ;;
  48. esac
  49.  
  50. exit 0
  51.