Add a brief sanity check to loadup process (#314)
Each step of the loadup now starts with a 'touch' to create a timestamp. At the end of the loadup, it makes sure the files needed by the next step are newer. This will catch some of the problems.
This commit is contained in:
@@ -7,12 +7,19 @@ if [ ! -f run-medley ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
touch tmp/loadup.timestamp
|
||||
|
||||
scr="-sc 1024x768 -g 1042x790"
|
||||
|
||||
|
||||
./run-medley $scr -greet $MEDLEYDIR/sources/LOADUP-LISP.CM tmp/init-mid.sysout
|
||||
|
||||
echo ----- created: -------
|
||||
ls -l tmp/lisp.*[te]
|
||||
echo ----------------------
|
||||
|
||||
if [ tmp/lisp.sysout -nt tmp/loadup.timestamp ]; then
|
||||
|
||||
echo ---- made ----
|
||||
ls -l tmp/lisp.*
|
||||
echo --------------
|
||||
else
|
||||
echo XXXXX FAILURE XXXXX
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user