diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-01-27 23:51:56 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-01-27 23:51:56 +0000 |
commit | 6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1 (patch) | |
tree | 926065cf45450116098db664e3c61dced9e1f21a /ipl/BuildBin | |
download | icon-6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1.tar.gz |
Initial upstream version 9.4.3upstream/9.4.3
Diffstat (limited to 'ipl/BuildBin')
-rwxr-xr-x | ipl/BuildBin | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ipl/BuildBin b/ipl/BuildBin new file mode 100755 index 0000000..78f50f7 --- /dev/null +++ b/ipl/BuildBin @@ -0,0 +1,37 @@ +#!/bin/sh +# +# BuildBin -- build selected graphics executables into ../bin + +# If not configured for graphics, quit immediately +grep '#define *Graphics' ../src/h/define.h >/dev/null || exit 0 + +# Standard list of programs +GPROGS="colrbook colrpick fontpick palette wevents xgamma" +GPACKS="vib" + +# Set paths +TOP=`cd ..; pwd` +BIN=$TOP/bin +PATH=$BIN:$PATH +IPATH=$TOP/lib +LPATH=$TOP/lib +export PATH IPATH LPATH + +# Figure out executable extension +EXE=`grep '^EXE' ../Makedefs | sed 's/.*= *//'` + +# Build graphics programs +cd gprogs +for p in $GPROGS; do + (set -x; icont -usN $p) + mv $p$EXE $BIN +done +cd .. + +# Build graphics packages +for p in $GPACKS; do + cd gpacks/$p + ${MAKE-make} IFLAGS=-usN + cp $p$EXE $BIN + cd ../.. +done |