diff options
author | davygrvy <davygrvy@pobox.com> | 2003-12-23 02:38:23 (GMT) |
---|---|---|
committer | davygrvy <davygrvy@pobox.com> | 2003-12-23 02:38:23 (GMT) |
commit | 58ceccd0d10f897051e279a41bf9dc3e0481fdf8 (patch) | |
tree | 5c6acfb6a807edceeba46c7a42382600847a38ca | |
parent | 0c65818d79305e541929ca935669c1db63a3ae3f (diff) | |
download | tcl-58ceccd0d10f897051e279a41bf9dc3e0481fdf8.zip tcl-58ceccd0d10f897051e279a41bf9dc3e0481fdf8.tar.gz tcl-58ceccd0d10f897051e279a41bf9dc3e0481fdf8.tar.bz2 |
VERSION macro now set by reading tcl.h for it.
-rw-r--r-- | win/makefile.vc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/win/makefile.vc b/win/makefile.vc index 7e308ae..f7eaa8d 100644 --- a/win/makefile.vc +++ b/win/makefile.vc @@ -12,7 +12,7 @@ # Copyright (c) 2001-2002 David Gravereaux. # #------------------------------------------------------------------------------ -# RCS: @(#) $Id: makefile.vc,v 1.113 2003/11/10 22:55:48 dgp Exp $ +# RCS: @(#) $Id: makefile.vc,v 1.114 2003/12/23 02:38:23 davygrvy Exp $ #------------------------------------------------------------------------------ !if "$(MSVCDIR)" == "" @@ -159,7 +159,18 @@ PROJECT = tcl !include "rules.vc" STUBPREFIX = $(PROJECT)stub -DOTVERSION = 8.5 + +!if [nmakehlp -g ../generic/tcl.h TCL_VERSION] == 85 +DOTVERSION = 8.5 +!elseif [nmakehlp -g ../generic/tcl.h TCL_VERSION] == 86 +DOTVERSION = 8.6 +!elseif [nmakehlp -g ../generic/tcl.h TCL_VERSION] == 90 +DOTVERSION = 9.0 +!elseif [nmakehlp -g ../generic/tcl.h TCL_VERSION] == 0 +MSG =^ +Can't get version string from ../generic/tcl.h +!error $(MSG) +!endif VERSION = $(DOTVERSION:.=) DDEDOTVERSION = 1.3 |