#$Header: lispconf,v 1.18 87/12/11 16:41:21 sklower Exp $
# csh script to configure lisp
# vax_4_1 vax_4_1a vax_4_1c vax_eunice_vms
# sun_4_1c sun_unisoft dual_unisoft pixel_unisoft lisa_uniplus3
# sun_4_2 sun_4_2beta mc500_2_0
sed "s%^RootDir = .*%RootDir = `pwd`%" Makefile
> Make$$
mv Make$$ Makefile
< /dev
/null
mv franz
/vax
/{Makefile
,Make.unix
}
mv franz
/vax
/{Make.vms
,Makefile
}
echo "/* this file created by ../../lispconf */" >! franz
/h
/lconf.h
echo "#define $argv[1] 1" >>! franz
/h
/lconf.h
rm -f franz
/h
/{aout
,lispo
}.h
cp /usr
/include
/a.out.h franz
/h
/aout.h
cp /usr
/include
/a.out.h franz
/h
/lispo.h
echo "use: lispconf type"
echo " where type is one of "
echo " vax_4_1 vax_4_1a vax_4_1c vax_4_2 vax_4_3"
echo " vax_eunice_vms tahoe_4_3"
echo " sun_4_1c sun_unisoft dual_unisoft pixel_unisoft "
echo " sun_4_2beta lisa_unisys3 mc500_2_0"
(echo vax ucbstd
; cat Makefile
) |
awk -f cvt.
awk > Make$$
mv Make$$ Makefile
< /dev
/null
(echo tahoe ucbstd
; cat Makefile
) |
awk -f cvt.
awk >Make$$
mv Make$$ Makefile
</dev
/null
set ifsys3
="unisys3botch"
(echo 68k ucbstd
$ifusft; cat Makefile
)|
awk -f cvt.
awk>Make$$
mv Make$$ Makefile
< /dev
/null
# for the 68k version of the lisp compiler
# The type of makefile built depends of the type of 68k
# system you have. We assume that sun's and mc500's have virtual
# memory and that dual/unisoft's have no vm (thus, define swapper).
# As long as we are checking to see if we are dealing with
# a 68000 unisoft machine; make some patches to the C part as well.
cat liszt
/68k
/Makefile
) |
awk -f cvt.
awk > Make$$
cat franz
/68k
/Makefile
) |
awk -f cvt.
awk > franz
/68k
/Make$$
rm -f franz
/h
/{lispo
,aout
}.h
cp franz
/h
/duallispo.h franz
/h
/lispo.h
cp franz
/h
/dualaout.h franz
/h
/aout.h
cp franz
/h
/hpagsiz.h franz
/h
/pagsiz.h
cp lisplib
/autorun
/unisoft lisplib
/autorun
/68k
(echo sun
; cat liszt
/68k
/Makefile
) |
awk -f cvt.
awk > Make$$
(echo sun
$ifsunII; cat franz
/68k
/Makefile
)\
|
awk -f cvt.
awk > franz
/68k
/Make$$
cp lisplib
/autorun
/sun4.2 lisplib
/autorun
/68k
(echo mc500
; cat liszt
/68k
/Makefile
) |
awk -f cvt.
awk > Make$$
(echo mc500
; cat franz
/68k
/Makefile
)\
|
awk -f cvt.
awk > franz
/68k
/Make$$
cp lisplib
/autorun
/mc500 lisplib
/autorun
/68k
sed "s%^RootDir = .*%RootDir = `pwd`%" Make$$
> liszt
/68k
/Makefile
mv franz
/68k
/Make$$ franz
/68k
/Makefile
if ($ifusft/x
== unisoft
/x
) then
sed "s%^OFFSET = .*%OFFSET = $OFFSET%"\
lisplib
/autorun
/68k
> temp$$
mv temp$$ lisplib
/autorun
/68k
</dev
/null