instool n'installe plus les rep cell etc et man

ceci sera fait automatiquement par cvs...
This commit is contained in:
The Alliance Tool 1999-02-01 14:47:54 +00:00
parent 4af1b539ed
commit 077f082405
2 changed files with 264 additions and 264 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.2 1999/02/01 13:51:39 alliance Exp $ # $Id: instool,v 1.3 1999/02/01 14:47:54 alliance Exp $
# #
SYS=`uname -a | awk '{print $1}'` SYS=`uname -a | awk '{print $1}'`
@ -50,7 +50,7 @@ LOG=$HOME/`basename $0`.$$
BUG=$HOME/`basename $0`_bug.$$ BUG=$HOME/`basename $0`_bug.$$
TMP=$HOME/`basename $1` TMP=$HOME/`basename $1`
ALCTEAM="alliance-interested-users" ALCTEAM="alliance-programmers@asim.lip6.fr"
BUGTEAM="fred ludo czo" BUGTEAM="fred ludo czo"
@ -289,136 +289,136 @@ echo " the default shell is now sh"
echo "Ring me again in a few days, ..." echo "Ring me again in a few days, ..."
exit 23 exit 23
fi fi
#
echo "+---------------------------------------------------" >> $LOG # echo "+---------------------------------------------------" >> $LOG
echo $DATE >> $LOG # echo $DATE >> $LOG
#
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "`basename $0` : Copying the directories contents" # echo "`basename $0` : Copying the directories contents"
echo "May take a while, ..." # echo "May take a while, ..."
echo "Cells [$CELL_EXTENSIONS]" # echo "Cells [$CELL_EXTENSIONS]"
fi # fi
#
c=0; nc=0 # c=0; nc=0
if [ -d $1/labo/cells ] ; then # if [ -d $1/labo/cells ] ; then
cd $1/labo/cells # cd $1/labo/cells
for d in `\ls -d *`; do # for d in `\ls -d *`; do
if [ ! -d $d ]; then continue; fi # if [ ! -d $d ]; then continue; fi
echo > $TMP.ext.$$ # echo > $TMP.ext.$$
for i in $CELL_EXTENSIONS; do # for i in $CELL_EXTENSIONS; do
ls -1 $1/labo/cells/$d/*.$i 2> /dev/null > $TMP.cell.$$ # ls -1 $1/labo/cells/$d/*.$i 2> /dev/null > $TMP.cell.$$
if [ -s $TMP.cell.$$ ] ; then # if [ -s $TMP.cell.$$ ] ; then
echo $i >> $TMP.ext.$$ # echo $i >> $TMP.ext.$$
fi # fi
done # done
if [ ! -s $TMP.ext.$$ ] ; then # if [ ! -s $TMP.ext.$$ ] ; then
echo "Please remove the $1/labo/cells/$d directory as it" # echo "Please remove the $1/labo/cells/$d directory as it"
echo "contains no cells" # echo "contains no cells"
else # else
echo "+---------------------------------------------------" >> $LOG # echo "+---------------------------------------------------" >> $LOG
mkdir -p $CELLS/$d # mkdir -p $CELLS/$d
if [ -f $1/labo/cells/$d/CATAL ]; then # if [ -f $1/labo/cells/$d/CATAL ]; then
cp $1/labo/cells/$d/CATAL $CELLS/$d # cp $1/labo/cells/$d/CATAL $CELLS/$d
fi # fi
echo "Cells:" >> $LOG # echo "Cells:" >> $LOG
for i in `cat $TMP.ext.$$` ; do # for i in `cat $TMP.ext.$$` ; do
cp $1/labo/cells/$d/*.$i $CELLS/$d >> $BUG 2>&1 # cp $1/labo/cells/$d/*.$i $CELLS/$d >> $BUG 2>&1
if [ $? -ne 0 ] ; then # if [ $? -ne 0 ] ; then
echo "`basename $0`: cp returned a non-zero exit status" # echo "`basename $0`: cp returned a non-zero exit status"
echo "that sucks pretty much so I quit leaving things as is" # echo "that sucks pretty much so I quit leaving things as is"
exit 17 # exit 17
fi # fi
ls -1 $1/labo/cells/$d | grep \.$i | fmt -70 >> $LOG # ls -1 $1/labo/cells/$d | grep \.$i | fmt -70 >> $LOG
done # done
fi # fi
done # done
else # else
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "none" # echo "none"
fi # fi
fi # fi
cd # cd
#
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "Etc" # echo "Etc"
fi # fi
#
if [ -d $1/labo/etc ] ; then # if [ -d $1/labo/etc ] ; then
for i in $TARGET; do # for i in $TARGET; do
if [ -f $1/labo/etc/$i.mk ] ; then # if [ -f $1/labo/etc/$i.mk ] ; then
echo "`basename $0` cannot install tool $1" # echo "`basename $0` cannot install tool $1"
echo "You're not allowed to install '$i.mk' by yourself boy!" # echo "You're not allowed to install '$i.mk' by yourself boy!"
exit 9 # exit 9
fi # fi
done # done
#
if [ -f $1/labo/etc/libraries.mk ] ; then # if [ -f $1/labo/etc/libraries.mk ] ; then
echo "`basename $0` cannot install tool $1" # echo "`basename $0` cannot install tool $1"
echo "You're not allowed to install 'libraries.mk' by yourself boy!" # echo "You're not allowed to install 'libraries.mk' by yourself boy!"
exit 9 # exit 9
fi # fi
ls -1 $1/labo/etc/* > /dev/null 2> $TMP.etc.$$ # ls -1 $1/labo/etc/* > /dev/null 2> $TMP.etc.$$
if [ ! -s $TMP.etc.$$ ] ; then # if [ ! -s $TMP.etc.$$ ] ; then
cp $1/labo/etc/* $ETC >> $BUG 2>&1 # cp $1/labo/etc/* $ETC >> $BUG 2>&1
if [ $? -ne 0 ] ; then # if [ $? -ne 0 ] ; then
echo "`basename $0`: cp returned a non-zero exit status" # echo "`basename $0`: cp returned a non-zero exit status"
echo "that sucks pretty much so I quit leaving things as is" # echo "that sucks pretty much so I quit leaving things as is"
exit 17 # exit 17
fi # fi
echo "+---------------------------------------------------" >> $LOG # echo "+---------------------------------------------------" >> $LOG
echo "Etc :" >> $LOG # echo "Etc :" >> $LOG
ls -1 $1/labo/etc | fmt -70 >> $LOG # ls -1 $1/labo/etc | fmt -70 >> $LOG
else # else
echo "Please remove the $1/labo/etc directory as it" # echo "Please remove the $1/labo/etc directory as it"
echo "contains no files" # echo "contains no files"
fi # fi
else # else
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "none" # echo "none"
fi # fi
fi # fi
#
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "Manual pages" # echo "Manual pages"
fi # fi
#
if [ -d $1/labo/man ] ; then # if [ -d $1/labo/man ] ; then
echo "+---------------------------------------------------" >> $LOG # echo "+---------------------------------------------------" >> $LOG
echo "Manuals :" >> $LOG # echo "Manuals :" >> $LOG
for i in 1 2 3 4 5 6 7 8 9 ; do # for i in 1 2 3 4 5 6 7 8 9 ; do
if [ -d $1/labo/man/man$i ] ; then # if [ -d $1/labo/man/man$i ] ; then
ls -1 $1/labo/man/man$i/*.$i > /dev/null 2> $TMP.man$i.$$ # ls -1 $1/labo/man/man$i/*.$i > /dev/null 2> $TMP.man$i.$$
if [ -s $TMP.man$i.$$ ] ; then # if [ -s $TMP.man$i.$$ ] ; then
echo "Please remove the $1/labo/man/man$i directory as it" # echo "Please remove the $1/labo/man/man$i directory as it"
echo "contains no files" # echo "contains no files"
else # else
cp $1/labo/man/man$i/*.$i $MANS/man$i >> $BUG 2>&1 # cp $1/labo/man/man$i/*.$i $MANS/man$i >> $BUG 2>&1
if [ $? -ne 0 ] ; then # if [ $? -ne 0 ] ; then
echo "`basename $0`: cp returned a non-zero exit status" # echo "`basename $0`: cp returned a non-zero exit status"
echo "that sucks pretty much so I quit leaving things as is" # echo "that sucks pretty much so I quit leaving things as is"
exit 17 # exit 17
fi # fi
ls -1 $1/labo/man/man$i | grep \.$i | fmt -70 >> $LOG # ls -1 $1/labo/man/man$i | grep \.$i | fmt -70 >> $LOG
fi # fi
fi # fi
done # done
for i in 1 2 3 4 5 6 7 8 9 ; do # for i in 1 2 3 4 5 6 7 8 9 ; do
if [ -f $TMP.man$i.$$ ] ; then # if [ -f $TMP.man$i.$$ ] ; then
cat $TMP.man$i.$$ >> $TMP.man.$$ # cat $TMP.man$i.$$ >> $TMP.man.$$
fi # fi
if [ -f $TMP.man.$$ ] ; then # if [ -f $TMP.man.$$ ] ; then
if [ -s $TMP.man.$$ ] ; then # if [ -s $TMP.man.$$ ] ; then
echo "Please remove the $1/labo/man directory tree as it" # echo "Please remove the $1/labo/man directory tree as it"
echo "contains no files" # echo "contains no files"
fi # fi
fi # fi
done # done
else # else
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "none" # echo "none"
fi # fi
fi # fi
#
if [ $verbose -ne 0 ] ; then if [ $verbose -ne 0 ] ; then
echo "The real stuff right now, ..." echo "The real stuff right now, ..."
fi fi

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.2 1999/02/01 13:51:39 alliance Exp $ # $Id: instool,v 1.3 1999/02/01 14:47:54 alliance Exp $
# #
SYS=`uname -a | awk '{print $1}'` SYS=`uname -a | awk '{print $1}'`
@ -50,7 +50,7 @@ LOG=$HOME/`basename $0`.$$
BUG=$HOME/`basename $0`_bug.$$ BUG=$HOME/`basename $0`_bug.$$
TMP=$HOME/`basename $1` TMP=$HOME/`basename $1`
ALCTEAM="alliance-interested-users" ALCTEAM="alliance-programmers@asim.lip6.fr"
BUGTEAM="fred ludo czo" BUGTEAM="fred ludo czo"
@ -289,136 +289,136 @@ echo " the default shell is now sh"
echo "Ring me again in a few days, ..." echo "Ring me again in a few days, ..."
exit 23 exit 23
fi fi
#
echo "+---------------------------------------------------" >> $LOG # echo "+---------------------------------------------------" >> $LOG
echo $DATE >> $LOG # echo $DATE >> $LOG
#
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "`basename $0` : Copying the directories contents" # echo "`basename $0` : Copying the directories contents"
echo "May take a while, ..." # echo "May take a while, ..."
echo "Cells [$CELL_EXTENSIONS]" # echo "Cells [$CELL_EXTENSIONS]"
fi # fi
#
c=0; nc=0 # c=0; nc=0
if [ -d $1/labo/cells ] ; then # if [ -d $1/labo/cells ] ; then
cd $1/labo/cells # cd $1/labo/cells
for d in `\ls -d *`; do # for d in `\ls -d *`; do
if [ ! -d $d ]; then continue; fi # if [ ! -d $d ]; then continue; fi
echo > $TMP.ext.$$ # echo > $TMP.ext.$$
for i in $CELL_EXTENSIONS; do # for i in $CELL_EXTENSIONS; do
ls -1 $1/labo/cells/$d/*.$i 2> /dev/null > $TMP.cell.$$ # ls -1 $1/labo/cells/$d/*.$i 2> /dev/null > $TMP.cell.$$
if [ -s $TMP.cell.$$ ] ; then # if [ -s $TMP.cell.$$ ] ; then
echo $i >> $TMP.ext.$$ # echo $i >> $TMP.ext.$$
fi # fi
done # done
if [ ! -s $TMP.ext.$$ ] ; then # if [ ! -s $TMP.ext.$$ ] ; then
echo "Please remove the $1/labo/cells/$d directory as it" # echo "Please remove the $1/labo/cells/$d directory as it"
echo "contains no cells" # echo "contains no cells"
else # else
echo "+---------------------------------------------------" >> $LOG # echo "+---------------------------------------------------" >> $LOG
mkdir -p $CELLS/$d # mkdir -p $CELLS/$d
if [ -f $1/labo/cells/$d/CATAL ]; then # if [ -f $1/labo/cells/$d/CATAL ]; then
cp $1/labo/cells/$d/CATAL $CELLS/$d # cp $1/labo/cells/$d/CATAL $CELLS/$d
fi # fi
echo "Cells:" >> $LOG # echo "Cells:" >> $LOG
for i in `cat $TMP.ext.$$` ; do # for i in `cat $TMP.ext.$$` ; do
cp $1/labo/cells/$d/*.$i $CELLS/$d >> $BUG 2>&1 # cp $1/labo/cells/$d/*.$i $CELLS/$d >> $BUG 2>&1
if [ $? -ne 0 ] ; then # if [ $? -ne 0 ] ; then
echo "`basename $0`: cp returned a non-zero exit status" # echo "`basename $0`: cp returned a non-zero exit status"
echo "that sucks pretty much so I quit leaving things as is" # echo "that sucks pretty much so I quit leaving things as is"
exit 17 # exit 17
fi # fi
ls -1 $1/labo/cells/$d | grep \.$i | fmt -70 >> $LOG # ls -1 $1/labo/cells/$d | grep \.$i | fmt -70 >> $LOG
done # done
fi # fi
done # done
else # else
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "none" # echo "none"
fi # fi
fi # fi
cd # cd
#
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "Etc" # echo "Etc"
fi # fi
#
if [ -d $1/labo/etc ] ; then # if [ -d $1/labo/etc ] ; then
for i in $TARGET; do # for i in $TARGET; do
if [ -f $1/labo/etc/$i.mk ] ; then # if [ -f $1/labo/etc/$i.mk ] ; then
echo "`basename $0` cannot install tool $1" # echo "`basename $0` cannot install tool $1"
echo "You're not allowed to install '$i.mk' by yourself boy!" # echo "You're not allowed to install '$i.mk' by yourself boy!"
exit 9 # exit 9
fi # fi
done # done
#
if [ -f $1/labo/etc/libraries.mk ] ; then # if [ -f $1/labo/etc/libraries.mk ] ; then
echo "`basename $0` cannot install tool $1" # echo "`basename $0` cannot install tool $1"
echo "You're not allowed to install 'libraries.mk' by yourself boy!" # echo "You're not allowed to install 'libraries.mk' by yourself boy!"
exit 9 # exit 9
fi # fi
ls -1 $1/labo/etc/* > /dev/null 2> $TMP.etc.$$ # ls -1 $1/labo/etc/* > /dev/null 2> $TMP.etc.$$
if [ ! -s $TMP.etc.$$ ] ; then # if [ ! -s $TMP.etc.$$ ] ; then
cp $1/labo/etc/* $ETC >> $BUG 2>&1 # cp $1/labo/etc/* $ETC >> $BUG 2>&1
if [ $? -ne 0 ] ; then # if [ $? -ne 0 ] ; then
echo "`basename $0`: cp returned a non-zero exit status" # echo "`basename $0`: cp returned a non-zero exit status"
echo "that sucks pretty much so I quit leaving things as is" # echo "that sucks pretty much so I quit leaving things as is"
exit 17 # exit 17
fi # fi
echo "+---------------------------------------------------" >> $LOG # echo "+---------------------------------------------------" >> $LOG
echo "Etc :" >> $LOG # echo "Etc :" >> $LOG
ls -1 $1/labo/etc | fmt -70 >> $LOG # ls -1 $1/labo/etc | fmt -70 >> $LOG
else # else
echo "Please remove the $1/labo/etc directory as it" # echo "Please remove the $1/labo/etc directory as it"
echo "contains no files" # echo "contains no files"
fi # fi
else # else
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "none" # echo "none"
fi # fi
fi # fi
#
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "Manual pages" # echo "Manual pages"
fi # fi
#
if [ -d $1/labo/man ] ; then # if [ -d $1/labo/man ] ; then
echo "+---------------------------------------------------" >> $LOG # echo "+---------------------------------------------------" >> $LOG
echo "Manuals :" >> $LOG # echo "Manuals :" >> $LOG
for i in 1 2 3 4 5 6 7 8 9 ; do # for i in 1 2 3 4 5 6 7 8 9 ; do
if [ -d $1/labo/man/man$i ] ; then # if [ -d $1/labo/man/man$i ] ; then
ls -1 $1/labo/man/man$i/*.$i > /dev/null 2> $TMP.man$i.$$ # ls -1 $1/labo/man/man$i/*.$i > /dev/null 2> $TMP.man$i.$$
if [ -s $TMP.man$i.$$ ] ; then # if [ -s $TMP.man$i.$$ ] ; then
echo "Please remove the $1/labo/man/man$i directory as it" # echo "Please remove the $1/labo/man/man$i directory as it"
echo "contains no files" # echo "contains no files"
else # else
cp $1/labo/man/man$i/*.$i $MANS/man$i >> $BUG 2>&1 # cp $1/labo/man/man$i/*.$i $MANS/man$i >> $BUG 2>&1
if [ $? -ne 0 ] ; then # if [ $? -ne 0 ] ; then
echo "`basename $0`: cp returned a non-zero exit status" # echo "`basename $0`: cp returned a non-zero exit status"
echo "that sucks pretty much so I quit leaving things as is" # echo "that sucks pretty much so I quit leaving things as is"
exit 17 # exit 17
fi # fi
ls -1 $1/labo/man/man$i | grep \.$i | fmt -70 >> $LOG # ls -1 $1/labo/man/man$i | grep \.$i | fmt -70 >> $LOG
fi # fi
fi # fi
done # done
for i in 1 2 3 4 5 6 7 8 9 ; do # for i in 1 2 3 4 5 6 7 8 9 ; do
if [ -f $TMP.man$i.$$ ] ; then # if [ -f $TMP.man$i.$$ ] ; then
cat $TMP.man$i.$$ >> $TMP.man.$$ # cat $TMP.man$i.$$ >> $TMP.man.$$
fi # fi
if [ -f $TMP.man.$$ ] ; then # if [ -f $TMP.man.$$ ] ; then
if [ -s $TMP.man.$$ ] ; then # if [ -s $TMP.man.$$ ] ; then
echo "Please remove the $1/labo/man directory tree as it" # echo "Please remove the $1/labo/man directory tree as it"
echo "contains no files" # echo "contains no files"
fi # fi
fi # fi
done # done
else # else
if [ $verbose -ne 0 ] ; then # if [ $verbose -ne 0 ] ; then
echo "none" # echo "none"
fi # fi
fi # fi
#
if [ $verbose -ne 0 ] ; then if [ $verbose -ne 0 ] ; then
echo "The real stuff right now, ..." echo "The real stuff right now, ..."
fi fi