Listing 3
case $CONFIG in
`')
if test ! -f config.sh; then
ln ../config.sh . || \
ln ../../config.sh . || \
ln ../../../config.sh . || \
(echo "Can't find config.sh."; exit 1)
fi
. ./config.sh
;;
esac
case "$0" in
*/*) cd `expr X$0 : `X\(.*\)/'` ;;
esac
case "$d_symlink" in
*define*) sln='ln -s' ;;
*) sln='ln';;
esac
echo "Extracting Makefile
(with variable substitutions)"
cat >Makefile <<!GROK!THIS!
[...]
# Variables established by Configure
CAT = $cat
GREP = $grep
ECHO = $echo
MAKE = $make
PR = $pr
SHAR = $shar -s 60000
SLEEP = $sleep
TAR = $tar
TAPE = $rmttape
!GROK!THIS!
cat >>Makefile <<`!NO!SUBS!'
# Other variables
SHELL = /bin/sh
[...]
!NO!SUBS!
|