Correction bugs
This commit is contained in:
parent
1324a07928
commit
7d313ffda5
|
@ -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.19 1999/11/15 14:45:25 syf Exp $
|
# $Id: instool,v 1.20 1999/11/16 17:12:37 ludo Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
@ -259,19 +259,16 @@ echo " a message MUST be given for each installation"
|
||||||
cp $k $LABO/archi/$i/$j/`basename $k`.$DATE
|
cp $k $LABO/archi/$i/$j/`basename $k`.$DATE
|
||||||
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 cp $k $LABO/archi/$i/$j/`basename $k`.$DATE
|
||||||
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
|
||||||
chmod 775 $LABO/archi/$i/$j/`basename $k`.$DATE
|
chmod 775 $LABO/archi/$i/$j/`basename $k`.$DATE
|
||||||
if [ $? -ne 0 ] ; then
|
|
||||||
echo "`basename $0`: chmod returned a non-zero exit status"
|
|
||||||
echo "that sucks pretty much so I quit leaving things as is"
|
|
||||||
exit 17
|
|
||||||
fi
|
|
||||||
rm -f $LABO/archi/$i/$j/`basename $k` > /dev/null 2>&1
|
rm -f $LABO/archi/$i/$j/`basename $k` > /dev/null 2>&1
|
||||||
ln -s $LABO/archi/$i/$j/`basename $k`.$DATE $LABO/archi/$i/$j/`basename $k`
|
ln -s $LABO/archi/$i/$j/`basename $k`.$DATE $LABO/archi/$i/$j/`basename $k`
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo "`basename $0`: ln returned a non-zero exit status"
|
echo "`basename $0`: ln returned a non-zero exit status"
|
||||||
|
echo ln -s $LABO/archi/$i/$j/`basename $k`.$DATE $LABO/archi/$i/$j/`basename $k`
|
||||||
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
|
||||||
|
@ -281,6 +278,7 @@ echo " a message MUST be given for each installation"
|
||||||
cp $k $LABO/archi/$i/$j >> $BUG 2>&1
|
cp $k $LABO/archi/$i/$j >> $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 cp $k $LABO/archi/$i/$j
|
||||||
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
|
||||||
|
@ -288,25 +286,16 @@ echo " a message MUST be given for each installation"
|
||||||
ssh heavy ranlib $LABO/archi/$i/$j/`basename $k`
|
ssh heavy ranlib $LABO/archi/$i/$j/`basename $k`
|
||||||
fi
|
fi
|
||||||
chmod 664 $LABO/archi/$i/$j >> $BUG 2>&1
|
chmod 664 $LABO/archi/$i/$j >> $BUG 2>&1
|
||||||
if [ $? -ne 0 ] ; then
|
|
||||||
echo "`basename $0`: chmod returned a non-zero exit status"
|
|
||||||
echo "that sucks pretty much so I quit leaving things as is"
|
|
||||||
exit 17
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
cp $1/labo/$i/$j/* $LABO/archi/$i/$j >> $BUG 2>&1
|
cp $1/labo/$i/$j/* $LABO/archi/$i/$j >> $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 cp $1/labo/$i/$j/* $LABO/archi/$i/$j
|
||||||
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
|
||||||
chmod 664 $LABO/archi/$i/$j/* >> $BUG 2>&1
|
chmod 664 $LABO/archi/$i/$j/* >> $BUG 2>&1
|
||||||
if [ $? -ne 0 ] ; then
|
|
||||||
echo "`basename $0`: chmod returned a non-zero exit status"
|
|
||||||
echo "that sucks pretty much so I quit leaving things as is"
|
|
||||||
exit 17
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
ls -1 $1/labo/$i/$j | fmt -70 >> $LOG
|
ls -1 $1/labo/$i/$j | fmt -70 >> $LOG
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue