The MinGW.org Installation Manager Tool
Revision | 5c0a4a4a90d52ba8296e28cd719f18abdbc82ab0 (tree) |
---|---|
Time | 2013-06-21 00:25:16 |
Author | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Rework defective assignment of product version resources.
@@ -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 | + | |
1 | 11 | 2013-06-19 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 12 | |
3 | 13 | Rework defective package build time-stamping logic. |
@@ -30,7 +30,7 @@ PACKAGE_SUBSYSTEM = @host_os@ | ||
30 | 30 | CLI_RELEASE_CLASS = @CLI_RELEASE_CLASS@ |
31 | 31 | GUI_RELEASE_CLASS = @GUI_RELEASE_CLASS@ |
32 | 32 | |
33 | -BUILD_TAG = `>> build.tag; cat build.tag` | |
33 | +BUILD_TAG = `test -f build.tag && cat build.tag` | |
34 | 34 | DEBUGLEVEL = @DEBUGLEVEL@ |
35 | 35 | |
36 | 36 | # Establish the appropriate mechanism for invoking 'make' recursively, |
@@ -116,7 +116,7 @@ AWK_PRINT_LINE_BUFFER = print linebuf; | ||
116 | 116 | |
117 | 117 | # Identify an appropriate resource compiler, for GUI builds, |
118 | 118 | # 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. | |
120 | 120 | # |
121 | 121 | RC = @RC@ |
122 | 122 | RC_SCRIPT = tag=$(BUILD_TAG); \ |
@@ -137,11 +137,9 @@ TAG_SCRIPT = sed \ | ||
137 | 137 | PACKAGE_VERINFO_SCRIPT = \ |
138 | 138 | echo $(PACKAGE_VERSION) | awk -F. '{ \ |
139 | 139 | 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 \ | |
145 | 143 | }' |
146 | 144 | |
147 | 145 | RC_INCLUDES = -I . -I ${srcdir}/src -I ${srcdir}/icons |