Skip to content

Commit

Permalink
copy DOTVERSION in win/makefile.vc from configure.in
Browse files Browse the repository at this point in the history
  • Loading branch information
oehhar committed Sep 24, 2012
1 parent d9406a8 commit 3dc6938
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
7 changes: 7 additions & 0 deletions tdbcsqlite3/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2012-09-24 Harald Oehlmann <[email protected]>

* tdbcsqlite3/win/makefile.vc: Get DOTVERSION from file configure.in.
* tdbcsqlite3/win/nmakehelp.c: Copied from tcl Checkin [8be494c5ee]:
Let "nmakehlp -V" start searching digits after the found match
(nijtmans).

2012-08-17 Jan Nijtmans <[email protected]>

* win/nmakehlp.c: Add "-V<num>" option, in order to be able
Expand Down
13 changes: 12 additions & 1 deletion tdbcsqlite3/win/makefile.vc
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,18 @@ PROJECT = tdbcsqlite
#PROJECT_REQUIRES_TK=1
!include "rules.vc"

DOTVERSION = 1.0b17
# nmakehelp -V <file> <tag> will search the file for tag, skips until a
# number and returns all character until a character not in [0-9.ab]
# is read.

!if [echo REM = This file is generated from Makefile.vc > versions.vc]
!endif
# get project version from row "AC_INIT([tdbcsqlite3], [1.0b17])"
!if [echo DOTVERSION = \>> versions.vc] \
&& [nmakehlp -V ..\configure.in tdbcsqlite3 >> versions.vc]
!endif
!include "versions.vc"

VERSION = $(DOTVERSION:.=)
STUBPREFIX = $(PROJECT)stub

Expand Down
3 changes: 2 additions & 1 deletion tdbcsqlite3/win/nmakehlp.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,10 @@ GetVersionFromFile(
p = strstr(szBuffer, match);
if (p != NULL) {
/*
* Skip to first digit.
* Skip to first digit after the match.
*/

p += strlen(match);
while (*p && !isdigit(*p)) {
++p;
}
Expand Down

0 comments on commit 3dc6938

Please sign in to comment.