'') ANS="$LIMIT";;
esac
case X$ANS in
- Xj*|Xy*)
+ Xj*|Xy|X*)
LIMIT=y
. $FDIR/limit_enquire
break
. $FDIR/get_makepars
-echo TARGET_HOME=\"$TARGET_HOME\" > macros
-echo UTIL_HOME=\"$UTIL_HOME\" >> macros
-echo SRC_HOME=\"$SRC_HOME\" >> macros
-echo SYSNAME=\"$SYSNAME\" >> macros
-echo ACM=\"$ACM\" >> macros
-echo CURRENT=\"$CURRENT\" >> macros
-echo SYS=\"$SYS\" >> macros
-echo LIMIT=\"$LIMIT\" >> macros
-echo CONFIG=\"$CONFIG\" >> macros
-echo DISABLE_LANG=\"$DISABLE_LANG\" >> macros
-echo DISABLE_SUP=\"$DISABLE_SUP\" >> macros
-echo DO_MACHINE_INDEP=\"$DO_MACHINE_INDEP\" >> macros
-echo MACH_LIST=\"$MACH_LIST\" >> macros
-echo SYSVAX=\"$SYSVAX\" >> macros
-echo WS=\"$WS\" >> macros
-echo PS=\"$PS\" >> macros
+echo "TARGET_HOME=\"$TARGET_HOME\"; export TARGET_HOME" > macros
+echo "UTIL_HOME=\"$UTIL_HOME\"; export UTIL_HOME" >> macros
+echo "SRC_HOME=\"$SRC_HOME\"; export SRC_HOME" >> macros
+echo "SYSNAME=\"$SYSNAME\"; export SYSNAME" >> macros
+echo "ACM=\"$ACM\"; export ACM" >> macros
+echo "CURRENT=\"$CURRENT\"; export CURRENT" >> macros
+echo "SYS=\"$SYS\"; export SYS" >> macros
+echo "LIMIT=\"$LIMIT\"; export LIMIT" >> macros
+echo "CONFIG=\"$CONFIG\"; export CONFIG" >> macros
+echo "DISABLE_LANG=\"$DISABLE_LANG\"; export DISABLE_LANG" >> macros
+echo "DISABLE_SUP=\"$DISABLE_SUP\"; export DISABLE_SUP" >> macros
+echo "DO_MACHINE_INDEP=\"$DO_MACHINE_INDEP\"; export DO_MACHINE_INDEP" >> macros
+echo "MACH_LIST=\"$MACH_LIST\"; export MACH_LIST" >> macros
+echo "SYSVAX=\"$SYSVAX\"; export SYSVAX" >> macros
+echo "WS=\"$WS\"; export WS" >> macros
+echo "PS=\"$PS\"; export PS" >> macros
cat macros $FDIR/install_tail > INSTALL
chmod +x INSTALL
+echo "
+A shell-script called 'INSTALL' has been created. Running it
+installs ACK. Note that this may take a (very) long time, so run it
+in the background, with its output redirected, f.i.:
+ sh INSTALL > INSTALL.out 2>&1 &
+"
exit 0
-$FDIR/rm -f em_path.h
+rm -f em_path.h
echo "You will now be asked for the root directory of the ACK sources.
This directory will not be changed by the installation process.
"
case $ANS in
'') ANS="$CURRENT";;
esac
-case $ANS in
-j*|y*) UTIL_HOME=$TARGET_HOME
+case X$ANS in
+Xj*|Xy*|X) UTIL_HOME=$TARGET_HOME
CURRENT=y
break
;;
-n*) CURRENT=n
+Xn*) CURRENT=n
echo "You will now be asked for the root directory of ACK on the current machine.
This tree will not be changed by the installation process.
"
PATH=::$SRC_HOME/first:$UTIL_HOME/bin:/bin:/usr/bin:/usr/ucb
export PATH
-mk_config $CONFIG $SRC_HOME `pwd`/make_macros
+mk_config `pwd`/make_macros
mk_target
case $ANS in
'') ANS="$DO_MACHINE_INDEP" ;;
esac
- case $ANS in
- j*|y*) DO_MACHINE_INDEP=y
+ case X$ANS in
+ Xj*|Xy*|X) DO_MACHINE_INDEP=y
+ echo "machine-independent part will be installed"
+ echo
break
;;
- n*) DO_MACHINE_INDEP=n
+ Xn*) DO_MACHINE_INDEP=n
+ echo "machine-independent part will not be installed"
+ echo
break
;;
*) ./echo "I do not understand your answer ($ANS). Try again."
. $FDIR/get_answer
case X$ANS in
Xj*|Xy*|X)
+ echo "$i will be installed"
+ echo
break
;;
Xn*) DISABLE_LANG=$DISABLE_LANG" $i"
+ echo "$i will not be installed"
+ echo
break
;;
- *) ./echo "I do not understand your answer ($ANS). Try again."
+ *) echo "I do not understand your answer ($ANS). Try again."
;;
esac
done
while :
do
case $1 in
- i86) ./echo "not installing i86 will disable installation of xenix3 and minix."
+ i86) echo "not installing i86 will disable installation of xenix3 and minix."
;;
- m68k2) ./echo "not installing m68k2 will disable installation of pmds, minixST,
+ m68k2) echo "not installing m68k2 will disable installation of pmds, minixST,
m68k4, pmds4, sun2, and mantra."
;;
- m68k4) ./echo "not installing m68k4 will disable installation of pmds4, sun2, and mantra."
+ m68k4) echo "not installing m68k4 will disable installation of pmds4, sun2, and mantra."
;;
- m68020) ./echo "not installing m68020 will disable installation of sun3."
+ m68020) echo "not installing m68020 will disable installation of sun3."
;;
esac
./echo -n "Do you want to install the $1 support? (y/n) "
. $FDIR/get_answer
case X$ANS in
Xj*|Xy*|X)
+ echo "The $1 support will be installed"
+ echo
case $1 in
vax4) case $SYSNAME in
vax_bsd4_1a) SYSVAX=libbsd4_1a
;;
*) if [ $DO_MACHINE_INDEP = y ]
then
- . get_sysvax
+ . $FDIR/get_sysvax
fi
;;
esac
break
;;
Xn*) DISABLE_SUP=$DISABLE_SUP" $1"
+ echo "The $1 support will not be installed"
+ echo
case $1 in
i86)
shift
-. macros
for i in $DISABLE_LANG
do
ed - $CONFIG/Action <<EOF
-: This script creates a configuration tree.
-: Should be called with 3 parameters: the configuration root, the source
-: root, and a file containing the makefile definitions.
-
set -e
-USAGE="Usage: $0 <config_root> <source_root> <macro_file>"
-
-case $# in
-3) ;;
-*) echo $USAGE 1>&2
- exit 1
- ;;
-esac
-
-CONFIG=$1
-SRC_HOME=$2
-MACROS=$3
-
-if [ -d $SRC_HOME ]
-then :
-else echo "$0: $SRC_HOME is not a directory" 1>&2
- exit 2
-fi
+MACROS=$1
if [ -f $MACROS ]
then :
exit 3
fi
-case ${CONFIG}XX${MACROS}XX${SRC_HOME} in
-/*XX/*XX/*) ;;
-*) echo "$0: all arguments should be absolute path names" 1>&2
- exit 4
- ;;
-esac
-
create_dir $CONFIG
cd $SRC_HOME
set -e
-. macros
-
: machine-dependant stuff
create_dir $TARGET_HOME