1
0
mirror of synced 2026-04-26 04:08:08 +00:00

Fix Issue #2155 by reordering in the loadup script the component loadups and when their outputs are copied into loadups dir. (#2160)

Fix Issue #2155 (loadup -f -b -x fails can't find full.sysout).  

Reordered loadup so that the sysouts are copied to loadups before loadup-aux and loadup-db are run, and that the product of loadup-aux are copied to loadups before loadup-db is run -- all to make sure that the right prerequisites are available in loadups when needed.  

Also forced a run of loadup-aux if full.sysout is newer than exports.all when -db is specified.
This commit is contained in:
Frank Halasz
2025-06-03 17:25:10 -07:00
committed by GitHub
parent 04d98d232f
commit 38f417907a
4 changed files with 72 additions and 19 deletions

View File

@@ -6,13 +6,21 @@ main() {
loadup_start
SYSOUT="${MEDLEYDIR}/loadups/full.sysout"
if [ ! -f "${SYSOUT}" ];
SYSOUT="${LOADUP_OUTDIR}/full.sysout"
if [ ! -f "${SYSOUT}" ]
then
output_error_msg "Error: cannot find ${SYSOUT}.${EOL}Exiting."
exit 1
fi
# Check to make sure exports.all exists and is newer than full.sysout
# if not, run loadup-aux to create a new exports.all
EXPORTS="${LOADUP_OUTDIR}/exports.all"
if [ ! -f "${EXPORTS}" ] || [ "$(find "${SYSOUT}" -newer "${EXPORTS}" -exec echo true \; )" = true ]
then
"${MEDLEYDIR}"/scripts/loadups/loadup --aux --ignore_lock --noendmsg
fi
initfile="-"
cat >"${cmfile}" <<-"EOF"
"