modfiles="tran/Makefile iconx/Makefile bin/Makefile h/config.h \
samples/Test test/Test port/Runtest port/Trantest port/Linktest \
libtest/Proctest src/cmd/Makefile \
src/lib/Makefile samples/Test test/Test \
echo Icon root directory is $iroot .
echo Getting generic copies of all files ...
rm -f functions/ranlib operators/ranlib lib/ranlib rt/ranlib pilib/ranlib
echo "#define OPTIONS \"$*\"" >>h/config.h
echo Scanning arguments ...
echo "Only one of -vax, -pdp11, or -port is allowed."
echo "Only one of -vax, -pdp11, or -port is allowed."
echo "Only one of -vax, -pdp11, or -port is allowed."
wholist="$wholist PORT";;
wholist="$wholist DIREX";;
wholist="$wholist GETHOST";;
wholist="$wholist UNAME";;
wholist="$wholist WHOHOST";;
wholist="$wholist SETS";;
wholist="$wholist DEBUG";;
echo You must specify -vax, -pdp11, or -port. Try again.
echo You must specify a value for -host. Try again.
IconX=${IconX-"$ibin/iconx"}
set xx `/bin/ls -l /tmp/$$`
echo "The pathname for iconx, \"$IconX\", is too long."
echo " It must not exceed 29 characters (it is currently $5)"
echo " or execution of the interpretable files will mysteriously"
echo " fail. See Section 3.1 in the installation document and"
echo " the -iconx option of icon-setup, and try again."
if test -r /usr/include/sys/time.h
echo '#define SYSTIME' >>h/config.h
echo "#define IntBin \"$ibin\"" >>$i
echo "#define Iconx \"$IconX\"" >> $i
echo "#define IconxHdr \"$ibin/iconx.hdr\"" >>$i
echo "#define FORK $fork" >>$i
echo "#define index strchr" >>$i
echo "#define rindex strrchr" >>$i
echo "#define HZ $hzrate" >>$i
echo "#define HOSTSTR \"$hoststr\"" >>$i
for i in iconx/Makefile tran/Makefile Pimakefile
$editor $i <<EOF >/dev/null
/LDFLAGS/s/LDFLAGS=/LDFLAGS=$ldlist/
$editor Pimakefile <<EOF >/dev/null
$editor iconx/Makefile <<EOF >/dev/null
$editor bin/Makefile <<EOF >/dev/null
for i in port/Runtest port/Trantest port/Linktest libtest/Proctest \
src/cmd/Makefile src/lib/Makefile \
$editor $iroot/$i <<EOF >/dev/null
echo Making dummy ranlib programs for System III/V compatibility ...
for i in functions operators lib rt pilib
for i in icon-pi Pimakefile
$editor $iroot/$i <<EOF >/dev/null