1
0
mirror of synced 2026-01-15 08:22:58 +00:00
Interlisp.medley/scripts/loadup-mid-from-init.sh
Larry Masinter 607d9ab2e7
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.
2021-04-28 17:15:35 -07:00

27 lines
498 B
Bash
Executable File

#!/bin/sh
export MEDLEYDIR=`pwd`
if [ ! -x run-medley ] ; then
echo run from MEDLEYDIR
exit 1
fi
mkdir -p "$MEDLEYDIR/tmp"
touch tmp/loadup.timestamp
scr="-sc 1024x768 -g 1042x790"
./run-medley -prog ldeinit -greet $MEDLEYDIR/sources/XREM.CM $scr -vmem tmp/init-mid.sysout tmp/init.dlinit
if [ tmp/init-mid.sysout -nt tmp/loadup.timestamp ]; then
echo
echo ---- made ----
ls -l tmp/init-mid.sysout
echo --------------
else
echo XXXXX FAILURE XXXXX
exit 1
fi