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:
@@ -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"
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user