Commit d3b77865 authored by Robert Sprowson's avatar Robert Sprowson Committed by Sprow

Preserve the timestamp when INSERTVERSION operates on Messages

Those RAM loading modules which pick from VersionNum and insert into their Messages would create a new Messages file with a new date every time they are built. Because the tools to put these in ResourceFS also capture the file's datestamp (via :FLOAD: :FEXEC: in objasm, or via resgen for C modules), you don't create binary identical copies on two successive builds despite the same input source.
Add a ${TOUCH} step to copy the reference time stamp to the generated Messages file.

Requires Library-1_96 or later for Touch.
parent 16d75e8b
......@@ -356,6 +356,7 @@ ifneq (,$(filter Messages,${INSTRES_VERSION}))
${INSERTVERSION} ${RESFSDIR}.Messages > ${RESFSDIR}._Awk_
${CP} ${RESFSDIR}._Awk_ ${RESFSDIR}.Messages ${CPFLAGS}
${RM} ${RESFSDIR}._Awk_
${TOUCH} -r LocalRes:Messages ${RESFSDIR}.Messages
endif
@${NOP}
......
......@@ -333,6 +333,7 @@ ifneq (,$(filter Messages,${INSTRES_VERSION}))
${INSERTVERSION} ${RESFSDIR}.Messages > ${RESFSDIR}._Awk_
${CP} ${RESFSDIR}._Awk_ ${RESFSDIR}.Messages ${CPFLAGS}
${RM} ${RESFSDIR}._Awk_
${TOUCH} -r LocalRes:Messages ${RESFSDIR}.Messages
endif
@${NOP}
......
......@@ -72,7 +72,7 @@ STRIPDEPEND = stripdepnd
TOGPA = ToGPA
TOKENCHECK = tokencheck
TOKENISE = tokenise
TOUCH = create
TOUCH = Build:Touch
TRANSLATE = translate
UNMODSQZ = unmodsqz
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment