many changes
This commit is contained in:
parent
7987f04e22
commit
dc61380dc0
7 changed files with 50 additions and 63 deletions
40
first/first
40
first/first
|
@ -155,7 +155,7 @@ do
|
||||||
'') ANS="$LIMIT";;
|
'') ANS="$LIMIT";;
|
||||||
esac
|
esac
|
||||||
case X$ANS in
|
case X$ANS in
|
||||||
Xj*|Xy*)
|
Xj*|Xy|X*)
|
||||||
LIMIT=y
|
LIMIT=y
|
||||||
. $FDIR/limit_enquire
|
. $FDIR/limit_enquire
|
||||||
break
|
break
|
||||||
|
@ -172,24 +172,30 @@ done
|
||||||
|
|
||||||
. $FDIR/get_makepars
|
. $FDIR/get_makepars
|
||||||
|
|
||||||
echo TARGET_HOME=\"$TARGET_HOME\" > macros
|
echo "TARGET_HOME=\"$TARGET_HOME\"; export TARGET_HOME" > macros
|
||||||
echo UTIL_HOME=\"$UTIL_HOME\" >> macros
|
echo "UTIL_HOME=\"$UTIL_HOME\"; export UTIL_HOME" >> macros
|
||||||
echo SRC_HOME=\"$SRC_HOME\" >> macros
|
echo "SRC_HOME=\"$SRC_HOME\"; export SRC_HOME" >> macros
|
||||||
echo SYSNAME=\"$SYSNAME\" >> macros
|
echo "SYSNAME=\"$SYSNAME\"; export SYSNAME" >> macros
|
||||||
echo ACM=\"$ACM\" >> macros
|
echo "ACM=\"$ACM\"; export ACM" >> macros
|
||||||
echo CURRENT=\"$CURRENT\" >> macros
|
echo "CURRENT=\"$CURRENT\"; export CURRENT" >> macros
|
||||||
echo SYS=\"$SYS\" >> macros
|
echo "SYS=\"$SYS\"; export SYS" >> macros
|
||||||
echo LIMIT=\"$LIMIT\" >> macros
|
echo "LIMIT=\"$LIMIT\"; export LIMIT" >> macros
|
||||||
echo CONFIG=\"$CONFIG\" >> macros
|
echo "CONFIG=\"$CONFIG\"; export CONFIG" >> macros
|
||||||
echo DISABLE_LANG=\"$DISABLE_LANG\" >> macros
|
echo "DISABLE_LANG=\"$DISABLE_LANG\"; export DISABLE_LANG" >> macros
|
||||||
echo DISABLE_SUP=\"$DISABLE_SUP\" >> macros
|
echo "DISABLE_SUP=\"$DISABLE_SUP\"; export DISABLE_SUP" >> macros
|
||||||
echo DO_MACHINE_INDEP=\"$DO_MACHINE_INDEP\" >> macros
|
echo "DO_MACHINE_INDEP=\"$DO_MACHINE_INDEP\"; export DO_MACHINE_INDEP" >> macros
|
||||||
echo MACH_LIST=\"$MACH_LIST\" >> macros
|
echo "MACH_LIST=\"$MACH_LIST\"; export MACH_LIST" >> macros
|
||||||
echo SYSVAX=\"$SYSVAX\" >> macros
|
echo "SYSVAX=\"$SYSVAX\"; export SYSVAX" >> macros
|
||||||
echo WS=\"$WS\" >> macros
|
echo "WS=\"$WS\"; export WS" >> macros
|
||||||
echo PS=\"$PS\" >> macros
|
echo "PS=\"$PS\"; export PS" >> macros
|
||||||
|
|
||||||
cat macros $FDIR/install_tail > INSTALL
|
cat macros $FDIR/install_tail > INSTALL
|
||||||
chmod +x 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
|
exit 0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
$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.
|
echo "You will now be asked for the root directory of the ACK sources.
|
||||||
This directory will not be changed by the installation process.
|
This directory will not be changed by the installation process.
|
||||||
"
|
"
|
||||||
|
@ -98,12 +98,12 @@ do
|
||||||
case $ANS in
|
case $ANS in
|
||||||
'') ANS="$CURRENT";;
|
'') ANS="$CURRENT";;
|
||||||
esac
|
esac
|
||||||
case $ANS in
|
case X$ANS in
|
||||||
j*|y*) UTIL_HOME=$TARGET_HOME
|
Xj*|Xy*|X) UTIL_HOME=$TARGET_HOME
|
||||||
CURRENT=y
|
CURRENT=y
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
n*) CURRENT=n
|
Xn*) CURRENT=n
|
||||||
echo "You will now be asked for the root directory of ACK on the current machine.
|
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.
|
This tree will not be changed by the installation process.
|
||||||
"
|
"
|
||||||
|
|
|
@ -3,7 +3,7 @@ set -e
|
||||||
PATH=::$SRC_HOME/first:$UTIL_HOME/bin:/bin:/usr/bin:/usr/ucb
|
PATH=::$SRC_HOME/first:$UTIL_HOME/bin:/bin:/usr/bin:/usr/ucb
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
mk_config $CONFIG $SRC_HOME `pwd`/make_macros
|
mk_config `pwd`/make_macros
|
||||||
|
|
||||||
mk_target
|
mk_target
|
||||||
|
|
||||||
|
|
|
@ -11,11 +11,15 @@ to disable installation of the machine-independent part"
|
||||||
case $ANS in
|
case $ANS in
|
||||||
'') ANS="$DO_MACHINE_INDEP" ;;
|
'') ANS="$DO_MACHINE_INDEP" ;;
|
||||||
esac
|
esac
|
||||||
case $ANS in
|
case X$ANS in
|
||||||
j*|y*) DO_MACHINE_INDEP=y
|
Xj*|Xy*|X) DO_MACHINE_INDEP=y
|
||||||
|
echo "machine-independent part will be installed"
|
||||||
|
echo
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
n*) DO_MACHINE_INDEP=n
|
Xn*) DO_MACHINE_INDEP=n
|
||||||
|
echo "machine-independent part will not be installed"
|
||||||
|
echo
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
*) ./echo "I do not understand your answer ($ANS). Try again."
|
*) ./echo "I do not understand your answer ($ANS). Try again."
|
||||||
|
@ -30,12 +34,16 @@ do
|
||||||
. $FDIR/get_answer
|
. $FDIR/get_answer
|
||||||
case X$ANS in
|
case X$ANS in
|
||||||
Xj*|Xy*|X)
|
Xj*|Xy*|X)
|
||||||
|
echo "$i will be installed"
|
||||||
|
echo
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
Xn*) DISABLE_LANG=$DISABLE_LANG" $i"
|
Xn*) DISABLE_LANG=$DISABLE_LANG" $i"
|
||||||
|
echo "$i will not be installed"
|
||||||
|
echo
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
*) ./echo "I do not understand your answer ($ANS). Try again."
|
*) echo "I do not understand your answer ($ANS). Try again."
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
@ -47,20 +55,22 @@ do
|
||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
case $1 in
|
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, 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
|
esac
|
||||||
./echo -n "Do you want to install the $1 support? (y/n) "
|
./echo -n "Do you want to install the $1 support? (y/n) "
|
||||||
. $FDIR/get_answer
|
. $FDIR/get_answer
|
||||||
case X$ANS in
|
case X$ANS in
|
||||||
Xj*|Xy*|X)
|
Xj*|Xy*|X)
|
||||||
|
echo "The $1 support will be installed"
|
||||||
|
echo
|
||||||
case $1 in
|
case $1 in
|
||||||
vax4) case $SYSNAME in
|
vax4) case $SYSNAME in
|
||||||
vax_bsd4_1a) SYSVAX=libbsd4_1a
|
vax_bsd4_1a) SYSVAX=libbsd4_1a
|
||||||
|
@ -71,7 +81,7 @@ m68k4, pmds4, sun2, and mantra."
|
||||||
;;
|
;;
|
||||||
*) if [ $DO_MACHINE_INDEP = y ]
|
*) if [ $DO_MACHINE_INDEP = y ]
|
||||||
then
|
then
|
||||||
. get_sysvax
|
. $FDIR/get_sysvax
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -79,6 +89,8 @@ m68k4, pmds4, sun2, and mantra."
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
Xn*) DISABLE_SUP=$DISABLE_SUP" $1"
|
Xn*) DISABLE_SUP=$DISABLE_SUP" $1"
|
||||||
|
echo "The $1 support will not be installed"
|
||||||
|
echo
|
||||||
case $1 in
|
case $1 in
|
||||||
i86)
|
i86)
|
||||||
shift
|
shift
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
. macros
|
|
||||||
for i in $DISABLE_LANG
|
for i in $DISABLE_LANG
|
||||||
do
|
do
|
||||||
ed - $CONFIG/Action <<EOF
|
ed - $CONFIG/Action <<EOF
|
||||||
|
|
|
@ -1,27 +1,6 @@
|
||||||
: 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
|
set -e
|
||||||
|
|
||||||
USAGE="Usage: $0 <config_root> <source_root> <macro_file>"
|
MACROS=$1
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
if [ -f $MACROS ]
|
if [ -f $MACROS ]
|
||||||
then :
|
then :
|
||||||
|
@ -29,13 +8,6 @@ else echo "$0: $MACROS not found" 1>&2
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
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
|
create_dir $CONFIG
|
||||||
|
|
||||||
cd $SRC_HOME
|
cd $SRC_HOME
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
. macros
|
|
||||||
|
|
||||||
: machine-dependant stuff
|
: machine-dependant stuff
|
||||||
|
|
||||||
create_dir $TARGET_HOME
|
create_dir $TARGET_HOME
|
||||||
|
|
Loading…
Add table
Reference in a new issue