2006-07-18 16:45:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
1991-10-15 16:02:38 +00:00
|
|
|
while :
|
|
|
|
do
|
|
|
|
echo "The libraries will end up in the machine-independent part of the
|
|
|
|
ACK binary tree. You may already have them from a previous ACK installation
|
|
|
|
on a different machine, in particular if you have an NFS file system.
|
|
|
|
Therefore, it may not be neccessary to install them again. As this part
|
|
|
|
of the ACK installation takes the most time, you are given the opportunity
|
|
|
|
to disable installation of the machine-independent part"
|
1991-11-18 09:53:58 +00:00
|
|
|
echo $E_FLAG \
|
|
|
|
"Do you want to install the machine-independent part? (y/n) [$DO_MACHINE_INDEP] $E_SFX"
|
1991-10-15 16:02:38 +00:00
|
|
|
. $FDIR/get_answer
|
|
|
|
case $ANS in
|
|
|
|
'') ANS="$DO_MACHINE_INDEP" ;;
|
|
|
|
esac
|
1991-10-16 13:33:38 +00:00
|
|
|
case X$ANS in
|
|
|
|
Xj*|Xy*|X) DO_MACHINE_INDEP=y
|
|
|
|
echo "machine-independent part will be installed"
|
|
|
|
echo
|
1991-10-15 16:02:38 +00:00
|
|
|
break
|
|
|
|
;;
|
1991-10-16 13:33:38 +00:00
|
|
|
Xn*) DO_MACHINE_INDEP=n
|
|
|
|
echo "machine-independent part will not be installed"
|
|
|
|
echo
|
1991-10-15 16:02:38 +00:00
|
|
|
break
|
|
|
|
;;
|
1991-11-18 09:53:58 +00:00
|
|
|
*) echo "I do not understand your answer ($ANS). Try again."
|
1991-10-15 16:02:38 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
1991-12-18 14:51:08 +00:00
|
|
|
OLD_DIS_LANG="$DISABLE_LANG"
|
|
|
|
DISABLE_LANG=
|
|
|
|
case X$OLD_DIS_LANG in
|
|
|
|
X) ;;
|
|
|
|
*) set $OLD_DIS_LANG
|
|
|
|
;;
|
|
|
|
esac
|
1991-10-15 16:02:38 +00:00
|
|
|
for i in Modula-2 Pascal Occam Basic ANSI-C C Fortran
|
|
|
|
do
|
1991-12-18 14:51:08 +00:00
|
|
|
DEF=y
|
|
|
|
if [ $# != 0 -a X$i = X$1 ]
|
|
|
|
then
|
|
|
|
DEF=n
|
|
|
|
shift
|
|
|
|
fi
|
1991-10-15 16:02:38 +00:00
|
|
|
while :
|
|
|
|
do
|
1991-12-18 14:51:08 +00:00
|
|
|
echo $E_FLAG "Do you want to install $i? (y/n) [$DEF] $E_SFX"
|
1991-10-15 16:02:38 +00:00
|
|
|
. $FDIR/get_answer
|
1991-12-18 14:51:08 +00:00
|
|
|
case $ANS in
|
|
|
|
'') ANS="$DEF";;
|
|
|
|
esac
|
1991-10-15 16:02:38 +00:00
|
|
|
case X$ANS in
|
1991-12-18 14:51:08 +00:00
|
|
|
Xj*|Xy*)
|
1991-10-16 13:33:38 +00:00
|
|
|
echo "$i will be installed"
|
|
|
|
echo
|
1991-10-15 16:02:38 +00:00
|
|
|
break
|
|
|
|
;;
|
|
|
|
Xn*) DISABLE_LANG=$DISABLE_LANG" $i"
|
1991-10-16 13:33:38 +00:00
|
|
|
echo "$i will not be installed"
|
|
|
|
echo
|
1991-10-15 16:02:38 +00:00
|
|
|
break
|
|
|
|
;;
|
1991-10-16 13:33:38 +00:00
|
|
|
*) echo "I do not understand your answer ($ANS). Try again."
|
1991-10-15 16:02:38 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
done
|
1991-12-18 14:51:08 +00:00
|
|
|
OLD_DIS_SUP="$DISABLE_SUP"
|
1991-10-15 16:02:38 +00:00
|
|
|
DISABLE_SUP=
|
|
|
|
set $MACH_LIST
|
|
|
|
while test $# != 0
|
|
|
|
do
|
1991-12-18 14:51:08 +00:00
|
|
|
DEF=y
|
|
|
|
for i in $OLD_DIS_SUP
|
|
|
|
do
|
|
|
|
if [ X$i = X$1 ]
|
|
|
|
then
|
|
|
|
DEF=n
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
1991-10-15 16:02:38 +00:00
|
|
|
while :
|
|
|
|
do
|
|
|
|
case $1 in
|
1991-10-16 13:33:38 +00:00
|
|
|
i86) echo "not installing i86 will disable installation of xenix3 and minix."
|
1991-10-15 16:02:38 +00:00
|
|
|
;;
|
1991-10-16 13:33:38 +00:00
|
|
|
m68k2) echo "not installing m68k2 will disable installation of pmds, minixST,
|
1991-10-15 16:02:38 +00:00
|
|
|
m68k4, pmds4, sun2, and mantra."
|
|
|
|
;;
|
1991-10-16 13:33:38 +00:00
|
|
|
m68k4) echo "not installing m68k4 will disable installation of pmds4, sun2, and mantra."
|
1991-10-15 16:02:38 +00:00
|
|
|
;;
|
1991-10-16 13:33:38 +00:00
|
|
|
m68020) echo "not installing m68020 will disable installation of sun3."
|
1991-10-15 16:02:38 +00:00
|
|
|
;;
|
|
|
|
esac
|
1991-12-18 14:51:08 +00:00
|
|
|
echo $E_FLAG "Do you want to install the $1 support? (y/n) [$DEF] $E_SFX"
|
1991-10-15 16:02:38 +00:00
|
|
|
. $FDIR/get_answer
|
1991-12-18 14:51:08 +00:00
|
|
|
case $ANS in
|
|
|
|
'') ANS="$DEF";;
|
|
|
|
esac
|
1991-10-15 16:02:38 +00:00
|
|
|
case X$ANS in
|
1991-12-18 14:51:08 +00:00
|
|
|
Xj*|Xy*)
|
1991-10-16 13:33:38 +00:00
|
|
|
echo "The $1 support will be installed"
|
|
|
|
echo
|
1991-10-15 16:02:38 +00:00
|
|
|
case $1 in
|
|
|
|
vax4) case $SYSNAME in
|
|
|
|
vax_bsd4_1a) SYSVAX=libbsd4_1a
|
|
|
|
;;
|
|
|
|
vax_bsd4_2) SYSVAX=libbsd4_2
|
|
|
|
;;
|
|
|
|
vax_sysV_2) SYSVAX=libsysV_2
|
|
|
|
;;
|
|
|
|
*) if [ $DO_MACHINE_INDEP = y ]
|
|
|
|
then
|
1991-10-16 13:33:38 +00:00
|
|
|
. $FDIR/get_sysvax
|
1991-10-15 16:02:38 +00:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
1993-10-07 09:09:16 +00:00
|
|
|
;;
|
|
|
|
sparc) shift
|
|
|
|
;;
|
1991-10-15 16:02:38 +00:00
|
|
|
esac
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
Xn*) DISABLE_SUP=$DISABLE_SUP" $1"
|
1991-10-16 13:33:38 +00:00
|
|
|
echo "The $1 support will not be installed"
|
|
|
|
echo
|
1991-10-15 16:02:38 +00:00
|
|
|
case $1 in
|
|
|
|
i86)
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
;;
|
|
|
|
m68k2)
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
;;
|
|
|
|
m68k4)
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
;;
|
1993-10-07 09:09:16 +00:00
|
|
|
sparc)
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
;;
|
1991-10-15 16:02:38 +00:00
|
|
|
m68020)
|
|
|
|
shift
|
|
|
|
DISABLE_SUP=$DISABLE_SUP" $1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
break
|
|
|
|
;;
|
1991-11-18 09:53:58 +00:00
|
|
|
*) echo "I do not understand your answer ($ANS). Try again."
|
1991-10-15 16:02:38 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
shift
|
|
|
|
done
|
1991-11-18 09:53:58 +00:00
|
|
|
|
|
|
|
if [ $TARGET_HOME = $UTIL_HOME ]
|
|
|
|
then
|
|
|
|
case $ACM in
|
|
|
|
sun3|m68020|i386|vax*)
|
|
|
|
while :
|
|
|
|
do
|
|
|
|
echo $E_FLAG "Do you want to install the fast compilers? (y/n) [$DO_FAST] $E_SFX"
|
|
|
|
. $FDIR/get_answer
|
|
|
|
case $ANS in
|
|
|
|
'') ANS="$DO_FAST" ;;
|
|
|
|
esac
|
|
|
|
case X$ANS in
|
1991-12-18 14:51:08 +00:00
|
|
|
Xj*|Xy*)
|
1991-11-18 09:53:58 +00:00
|
|
|
DO_FAST=y
|
|
|
|
echo "The fast compilers will be installed"
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
Xn*)
|
|
|
|
DO_FAST=n
|
|
|
|
echo "The fast compilers will not be installed"
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
*) echo "I do not understand your answer ($ANS). Try again."
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
DO_FAST=n
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
else
|
|
|
|
DO_FAST=n
|
|
|
|
fi
|