Lines Matching refs:BASEDIR
30 if [ -f $BASEDIR/${SGSBACKUPDIR}.newfiles ]; then
32 cat $BASEDIR/${SGSBACKUPDIR}.newfiles | while read file
34 if [ -d $BASEDIR/$file ]; then
35 rmdir $BASEDIR/$file
37 rm $BASEDIR/$file
40 rm $BASEDIR/${SGSBACKUPDIR}.newfiles
47 if [ \( -d $BASEDIR/$SGSBACKUPDIR \) -a \
48 \( -f $BASEDIR/${SGSBACKUPDIR}.origfiles \) ]; then
52 echo "Restoring SGSTOOLS from $BASEDIR$SGSBACKUPDIR"
53 cd $BASEDIR/$SGSBACKUPDIR
54 cpio -pdmu $BASEDIR < $BASEDIR/${SGSBACKUPDIR}.origfiles
56 rm $BASEDIR/${SGSBACKUPDIR}.origfiles
60 cd $BASEDIR