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 / BuildExe < prev    next >
Text File  |  2001-11-06  |  777b  |  36 lines

  1. #!/bin/ksh -p
  2. #
  3. #  BuildExe -- build executables in ./iexe
  4. #
  5. #  Includes programs from pack directories, but excludes mprogs.
  6. #  Assumes that ../bin and ../lib have been built.
  7.  
  8. set -x
  9.  
  10. export LC_ALL=POSIX
  11.  
  12. #  Set minimal path needed.  Not all systems have all these directories
  13. TOP=`cd ..; pwd`
  14. export PATH=$TOP/bin:/usr/xpg4/bin:/usr/ccs/bin:/bin:/usr/bin
  15. export IPATH=$TOP/lib
  16. export LPATH=$TOP/lib
  17.  
  18. #  Use default Icon options for packages that include an Icon execution
  19. unset BLKSIZE STRSIZE MSTKSIZE COEXPSIZE TRACE NOERRBUF FPATH
  20.  
  21.  
  22. #  Build progs and gprogs
  23. test -d iexe || mkdir iexe
  24. cd iexe
  25. for f in ../progs/*icn ../gprogs/*icn; do
  26.     icont -us $f
  27. done
  28. cd ..
  29.  
  30.  
  31. #  Build packages
  32. for d in *packs/[a-z]*; do
  33.     echo $d
  34.     (cd $d; make Clean; ${MAKE-make} Iexe)
  35. done
  36.