home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / ipl / BuildBin next >
Text File  |  2002-01-25  |  1KB  |  51 lines

  1. #!/bin/sh
  2. #
  3. #  BuildBin -- build selected executables into ../bin
  4.  
  5. #  Standard list of programs  ("ipatch" must be first)
  6. PROGS="ipatch"
  7. GPROGS="colrbook colrpick fontpick palette wevents xgamma"
  8. GPACKS="vib"
  9.  
  10. #  Standard path embedded in Icon binaries
  11. #  (it shouldn't be used, but this is better than embedding a personal path)
  12. STDPATH=/opt/icon/bin/iconx
  13.  
  14. #  Set paths
  15. TOP=`cd ..; pwd`
  16. BIN=$TOP/bin
  17. PATH=$BIN:$PATH
  18. IPATH=$TOP/lib
  19. LPATH=$TOP/lib
  20. export PATH IPATH LPATH
  21.  
  22. #  Always build progs
  23. cd progs
  24. for p in $PROGS; do
  25.     (set -x; icont -us $p)
  26.     ./ipatch $p $STDPATH 2>/dev/null
  27.     mv $p $BIN
  28. done
  29. cd ..
  30.  
  31. #  If not configured for graphics, quit at this point
  32. grep '#define *Graphics' ../src/h/define.h >/dev/null || exit 0
  33.  
  34. #  Build graphics programs
  35. cd gprogs
  36. for p in $GPROGS; do
  37.     (set -x; icont -us $p)
  38.     ipatch $p $STDPATH 2>/dev/null
  39.     mv $p $BIN
  40. done
  41. cd ..
  42.  
  43. #  Build graphics packages
  44. for p in $GPACKS; do
  45.     cd gpacks/$p
  46.     ${MAKE-make}
  47.     ipatch $p $STDPATH 2>/dev/null
  48.     mv $p $BIN
  49.     cd ../..
  50. done
  51.