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 / Setup.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2000-12-08  |  2KB  |  53 lines

  1. #!/bin/sh
  2. #
  3. # $Id: Setup.sh,v 1.6 2000/12/08 18:24:09 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 to set up the MIT Scheme build directories.
  22. # The working directory must be the top-level source directory.
  23.  
  24. if [ ! -x configure ]; then
  25.     echo "autoconf"
  26.     autoconf
  27. fi
  28.  
  29. . etc/functions.sh
  30.  
  31. # lib
  32. maybe_mkdir lib
  33. maybe_link lib/SRC ..
  34. maybe_link lib/optiondb.scm ../etc/optiondb.scm
  35. maybe_link lib/options ../runtime
  36. maybe_link lib/utabmd.bin ../microcode/utabmd.bin
  37.  
  38. # lib/edwin
  39. maybe_mkdir lib/edwin
  40. maybe_mkdir lib/edwin/etc
  41. maybe_link lib/edwin/etc/TUTORIAL ../../../etc/TUTORIAL
  42. maybe_link lib/edwin/etc/mime.types ../../../etc/mime.types
  43. maybe_link lib/edwin/autoload ../../edwin
  44.  
  45. SUBDIRS=""
  46.  
  47. for SUBDIR in 6001 compiler cref edwin imail microcode rcs \
  48.     runtime runtime-check sf sos win32; do
  49.     echo "setting up ${SUBDIR}"
  50.     maybe_link ${SUBDIR}/Setup.sh ../etc/Setup.sh
  51.     ( cd ${SUBDIR} && ./Setup.sh ) || exit 1
  52. done
  53.