diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-22 13:26:30 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-22 13:26:30 (GMT) |
commit | 3a1186689ae598d16a020a42844658ff57f62ff0 (patch) | |
tree | 16f4ae8dea27397fe9464df3a351983e9af99833 /win | |
parent | 9c4252f295a2a05838cd0549ba51150943fab3dd (diff) | |
parent | 44bc67ccd6e74dea369f724743f77f047fa12edb (diff) | |
download | tcl-3a1186689ae598d16a020a42844658ff57f62ff0.zip tcl-3a1186689ae598d16a020a42844658ff57f62ff0.tar.gz tcl-3a1186689ae598d16a020a42844658ff57f62ff0.tar.bz2 |
Merge 8.7, and update to latest libtommath (support/1.x branch)
Diffstat (limited to 'win')
-rw-r--r-- | win/rules.vc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/win/rules.vc b/win/rules.vc index c325ffe..02b2b71 100644 --- a/win/rules.vc +++ b/win/rules.vc @@ -24,7 +24,7 @@ _RULES_VC = 1 # For modifications that are not backward-compatible, you *must* change
# the major version.
RULES_VERSION_MAJOR = 1
-RULES_VERSION_MINOR = 4
+RULES_VERSION_MINOR = 5
# The PROJECT macro must be defined by parent makefile.
!if "$(PROJECT)" == ""
@@ -991,6 +991,19 @@ VERSION = $(DOTVERSION:.=) !endif # $(DOING_TCL) ... etc.
+# Windows RC files have 3 version components. Ensure this irrespective
+# of how many components the package has specified. Basically, ensure
+# minimum 4 components by appending 4 0's and then pick out the first 4.
+# Also take care of the fact that DOTVERSION may have "a" or "b" instead
+# of "." separating the version components.
+DOTSEPARATED=$(DOTVERSION:a=.)
+DOTSEPARATED=$(DOTSEPARATED:b=.)
+!if [echo RCCOMMAVERSION = \> versions.vc] \
+ || [for /f "tokens=1,2,3,4,5* delims=." %a in ("$(DOTSEPARATED).0.0.0.0") do echo %a,%b,%c,%d >> versions.vc]
+!error *** Could not generate RCCOMMAVERSION ***
+!endif
+!include versions.vc
+
################################################################
# 10. Construct output directory and file paths
# Figure-out how to name our intermediate and output directories.
@@ -1510,7 +1523,7 @@ GUIEXECMD = $(link32) $(guilflags) -out:$@ $(baselibs) $(tcllibs) $(tklibs) RESCMD = $(rc32) -fo $@ -r -i "$(GENERICDIR)" -i "$(TMP_DIR)" \
$(TCL_INCLUDES) \
/DDEBUG=$(DEBUG) -d UNCHECKED=$(UNCHECKED) \
- /DCOMMAVERSION=$(DOTVERSION:.=,),0 \
+ /DCOMMAVERSION=$(RCCOMMAVERSION) \
/DDOTVERSION=\"$(DOTVERSION)\" \
/DVERSION=\"$(VERSION)\" \
/DSUFX=\"$(SUFX)\" \
|