nouveau instool

This commit is contained in:
Olivier Sirol 1999-09-24 15:19:42 +00:00
parent 27a5046805
commit 39d1f45270
1 changed files with 7 additions and 6 deletions

View File

@ -7,7 +7,7 @@
# Author: Frédéric Pétrot (fred@pasta.fr.ea) # Author: Frédéric Pétrot (fred@pasta.fr.ea)
# for version 0 # for version 0
# #
# $Id: instool,v 1.4 1999/09/24 13:24:57 czo Exp $ # $Id: instool,v 1.5 1999/09/24 15:19:42 czo Exp $
# #
PATH=/asim/gnu/bin:/usr/ucb:/usr/etc:/bin:/usr/bin:/usr/local/bin:${PATH} PATH=/asim/gnu/bin:/usr/ucb:/usr/etc:/bin:/usr/bin:/usr/local/bin:${PATH}
@ -27,6 +27,7 @@ BUGTEAM="fred ludo czo"
# rep par defaut : alliance/archi/$MACHINE # rep par defaut : alliance/archi/$MACHINE
# alliance/share/... # alliance/share/...
TARGET="SunOS Solaris Linux_elf Linux" TARGET="SunOS Solaris Linux_elf Linux"
NUM_TARGET=4
LABO=/users/soft5/newlabo/alliance LABO=/users/soft5/newlabo/alliance
CELL_EXTENSIONS="al ap vst vbe cp hns edi spi db dat IDX" CELL_EXTENSIONS="al ap vst vbe cp hns edi spi db dat IDX"
CELLS=$LABO/share/cells CELLS=$LABO/share/cells
@ -117,7 +118,7 @@ echo " the default shell is now sh"
if [ $bin -eq 0 ]; then if [ $bin -eq 0 ]; then
echo "No binaries to install, ..." echo "No binaries to install, ..."
unset bin unset bin
elif [ ! $bin -eq 3 ]; then elif [ ! $bin -eq $NUM_TARGET ]; then
echo "`basename $0` cannot install tool $1" echo "`basename $0` cannot install tool $1"
echo "Directory $1/labo/archi/bin doesn't exist on all architectures" echo "Directory $1/labo/archi/bin doesn't exist on all architectures"
exit 5 exit 5
@ -126,7 +127,7 @@ echo " the default shell is now sh"
if [ $lib -eq 0 -a $inc -eq 0 ]; then if [ $lib -eq 0 -a $inc -eq 0 ]; then
echo "No libraries to install, ..." echo "No libraries to install, ..."
unset lib inc unset lib inc
elif [ ! \( $lib -eq 3 -a $inc -eq 3 \) ]; then elif [ ! \( $lib -eq $NUM_TARGET -a $inc -eq $NUM_TARGET \) ]; then
echo "`basename $0` cannot install tool $1" echo "`basename $0` cannot install tool $1"
echo "Directory $1/labo/archi/lib or/and $1/labo/archi/include " echo "Directory $1/labo/archi/lib or/and $1/labo/archi/include "
echo "doesn't exist on all architectures" echo "doesn't exist on all architectures"
@ -154,7 +155,7 @@ echo " the default shell is now sh"
b=`expr $b + 1` b=`expr $b + 1`
fi fi
done done
if [ $b -eq 3 ] ; then if [ $b -eq $NUM_TARGET ] ; then
for i in $TARGET ; do for i in $TARGET ; do
echo "Please remove $1/labo/$i/bin since it is empty" echo "Please remove $1/labo/$i/bin since it is empty"
done done
@ -196,11 +197,11 @@ echo " the default shell is now sh"
exit 7 exit 7
fi fi
done done
if [ $l -eq 3 ] ; then if [ $l -eq $NUM_TARGET ] ; then
echo "Please remove $1/labo/archi/lib since it is empty " echo "Please remove $1/labo/archi/lib since it is empty "
unset lib unset lib
fi fi
if [ $h -eq 3 ] ; then if [ $h -eq $NUM_TARGET ] ; then
echo "Please remove $1/labo/archi/include since it is empty " echo "Please remove $1/labo/archi/include since it is empty "
unset inc unset inc
fi fi