for review: bootcheck fix for mundook
Zoltan Somogyi
zs at cs.mu.OZ.AU
Sat Mar 14 17:21:23 AEDT 1998
tools/bootcheck:
Generalize the code that standardizes path names by recognizing some
more names under which /home/mercury* can be mounted. This allows
bootchecks on mundook.
Make sure that when we remove the stage2 or stage3 directory contents,
we also remove files whose names start with a period.
Zoltan.
cvs diff: Diffing .
Index: bootcheck
===================================================================
RCS file: /home/mercury1/repository/mercury/tools/bootcheck,v
retrieving revision 1.48
diff -u -u -r1.48 bootcheck
--- bootcheck 1998/03/07 03:39:59 1.48
+++ bootcheck 1998/03/14 06:19:59
@@ -119,7 +119,10 @@
set -x
-root=`/bin/pwd | sed 's:/mount/munkora/mercury:/home/mercury:'`
+root=`/bin/pwd | sed '
+s:/mount/munkora/mercury:/home/mercury:
+s:/mount/munkora/home/mercury:/home/mercury:
+s:/mount/munkora/clp/mercury:/home/mercury:'`
PATH=$root/tools:$PATH
export PATH
@@ -165,6 +168,7 @@
wait
$RMSTAGECMD $root/stage2_sicstus/* < /dev/null
/bin/rm -fr $root/stage2_sicstus/* < /dev/null
+ /bin/rm -fr $root/stage2_sicstus/.[a-zA-Z]* < /dev/null
fi
set +x
@@ -292,6 +296,7 @@
wait
$RMSTAGECMD $root/stage2_sicstus/* < /dev/null
/bin/rm -fr $root/stage2_sicstus/* < /dev/null
+ /bin/rm -fr $root/stage2_sicstus/.[a-zA-Z]* < /dev/null
exit 0
fi
@@ -330,6 +335,7 @@
wait
$RMSTAGECMD $root/stage2/* < /dev/null
/bin/rm -fr $root/stage2/* < /dev/null
+ /bin/rm -fr $root/stage2/.[a-zA-Z]* < /dev/null
fi
set +x
@@ -455,6 +461,7 @@
wait
$RMSTAGECMD $root/stage3/* < /dev/null
/bin/rm -fr $root/stage3/* < /dev/null
+ /bin/rm -fr $root/stage3/.[a-zA-Z]* < /dev/null
fi
echo linking stage 3... 1>&2
@@ -557,6 +564,7 @@
wait
$RMSTAGECMD $root/stage3/* < /dev/null
/bin/rm -fr $root/stage3/* < /dev/null
+ /bin/rm -fr $root/stage3/.[a-zA-Z]* < /dev/null
fi
echo "finishing stage3 at `date`"
More information about the developers
mailing list