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

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})) ...@@ -356,6 +356,7 @@ ifneq (,$(filter Messages,${INSTRES_VERSION}))
${INSERTVERSION} ${RESFSDIR}.Messages > ${RESFSDIR}._Awk_ ${INSERTVERSION} ${RESFSDIR}.Messages > ${RESFSDIR}._Awk_
${CP} ${RESFSDIR}._Awk_ ${RESFSDIR}.Messages ${CPFLAGS} ${CP} ${RESFSDIR}._Awk_ ${RESFSDIR}.Messages ${CPFLAGS}
${RM} ${RESFSDIR}._Awk_ ${RM} ${RESFSDIR}._Awk_
${TOUCH} -r LocalRes:Messages ${RESFSDIR}.Messages
endif endif
@${NOP} @${NOP}
......
...@@ -333,6 +333,7 @@ ifneq (,$(filter Messages,${INSTRES_VERSION})) ...@@ -333,6 +333,7 @@ ifneq (,$(filter Messages,${INSTRES_VERSION}))
${INSERTVERSION} ${RESFSDIR}.Messages > ${RESFSDIR}._Awk_ ${INSERTVERSION} ${RESFSDIR}.Messages > ${RESFSDIR}._Awk_
${CP} ${RESFSDIR}._Awk_ ${RESFSDIR}.Messages ${CPFLAGS} ${CP} ${RESFSDIR}._Awk_ ${RESFSDIR}.Messages ${CPFLAGS}
${RM} ${RESFSDIR}._Awk_ ${RM} ${RESFSDIR}._Awk_
${TOUCH} -r LocalRes:Messages ${RESFSDIR}.Messages
endif endif
@${NOP} @${NOP}
......
...@@ -72,7 +72,7 @@ STRIPDEPEND = stripdepnd ...@@ -72,7 +72,7 @@ STRIPDEPEND = stripdepnd
TOGPA = ToGPA TOGPA = ToGPA
TOKENCHECK = tokencheck TOKENCHECK = tokencheck
TOKENISE = tokenise TOKENISE = tokenise
TOUCH = create TOUCH = Build:Touch
TRANSLATE = translate TRANSLATE = translate
UNMODSQZ = unmodsqz 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