• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


Commit MetaInfo

Revision5c0a4a4a90d52ba8296e28cd719f18abdbc82ab0 (tree)
Time2013-06-21 00:25:16
AuthorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Rework defective assignment of product version resources.

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
1+2013-06-20 Keith Marshall <keithmarshall@users.sourceforge.net>
2+
3+ Rework defective assignment of product version resources.
4+
5+ * Makefile.in (BUILD_TAG): Avoid creating an empty build.tag file.
6+ (PACKAGE_VERINFO_SCRIPT): Ensure that the build tag is generated as a
7+ string of non-zero length. Do not assume that it comprises only two
8+ elements; extract the final two, as the third and fourth elements
9+ of the product version meta-data record.
10+
111 2013-06-19 Keith Marshall <keithmarshall@users.sourceforge.net>
212
313 Rework defective package build time-stamping logic.
--- a/Makefile.in
+++ b/Makefile.in
@@ -30,7 +30,7 @@ PACKAGE_SUBSYSTEM = @host_os@
3030 CLI_RELEASE_CLASS = @CLI_RELEASE_CLASS@
3131 GUI_RELEASE_CLASS = @GUI_RELEASE_CLASS@
3232
33-BUILD_TAG = `>> build.tag; cat build.tag`
33+BUILD_TAG = `test -f build.tag && cat build.tag`
3434 DEBUGLEVEL = @DEBUGLEVEL@
3535
3636 # Establish the appropriate mechanism for invoking 'make' recursively,
@@ -116,7 +116,7 @@ AWK_PRINT_LINE_BUFFER = print linebuf;
116116
117117 # Identify an appropriate resource compiler, for GUI builds,
118118 # and define a set of script macros to propagate the build-time
119-# specific package meta-data into the compile resource modules.
119+# specific package meta-data into compiled resource modules.
120120 #
121121 RC = @RC@
122122 RC_SCRIPT = tag=$(BUILD_TAG); \
@@ -137,11 +137,9 @@ TAG_SCRIPT = sed \
137137 PACKAGE_VERINFO_SCRIPT = \
138138 echo $(PACKAGE_VERSION) | awk -F. '{ \
139139 printf "%d, %d, ", $$1, $$2 * 100 + $$3 \
140- }'; \
141- (test -f build.tag && cat build.tag || date +%Y%m%d-0) | awk -F- '{ \
142- printf "%d, %d", (( substr( $$1, 1, 4 ) - 1970 ) * 16 \
143- + substr( $$1, 5, 2 )) * 32 + substr( $$1, 7, 2 ), \
144- $$2 \
140+ }'; (test "x$$tag" = x && date +%Y%m%d-0 || echo $$tag) | awk -F- '{ \
141+ DF = NF - 1; printf "%d, %d", (( substr( $$DF, 1, 4 ) - 1970 ) * 16 \
142+ + substr( $$DF, 5, 2 )) * 32 + substr( $$DF, 7, 2 ), $$NF \
145143 }'
146144
147145 RC_INCLUDES = -I . -I ${srcdir}/src -I ${srcdir}/icons