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 >
Wrap
Text File
|
2002-01-25
|
1KB
|
51 lines
#!/bin/sh
#
# BuildBin -- build selected executables into ../bin
# Standard list of programs ("ipatch" must be first)
PROGS="ipatch"
GPROGS="colrbook colrpick fontpick palette wevents xgamma"
GPACKS="vib"
# Standard path embedded in Icon binaries
# (it shouldn't be used, but this is better than embedding a personal path)
STDPATH=/opt/icon/bin/iconx
# Set paths
TOP=`cd ..; pwd`
BIN=$TOP/bin
PATH=$BIN:$PATH
IPATH=$TOP/lib
LPATH=$TOP/lib
export PATH IPATH LPATH
# Always build progs
cd progs
for p in $PROGS; do
(set -x; icont -us $p)
./ipatch $p $STDPATH 2>/dev/null
mv $p $BIN
done
cd ..
# If not configured for graphics, quit at this point
grep '#define *Graphics' ../src/h/define.h >/dev/null || exit 0
# Build graphics programs
cd gprogs
for p in $GPROGS; do
(set -x; icont -us $p)
ipatch $p $STDPATH 2>/dev/null
mv $p $BIN
done
cd ..
# Build graphics packages
for p in $GPACKS; do
cd gpacks/$p
${MAKE-make}
ipatch $p $STDPATH 2>/dev/null
mv $p $BIN
cd ../..
done