diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-11-07 08:28:23 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-11-07 08:28:23 (GMT) |
| commit | 4d28a2a931e81acd27bc30639de483a7e9968988 (patch) | |
| tree | 6b25a19d6d781a66f0586011d77a8cd35cd03912 /win | |
| parent | c6300a7265e457702bf13456bfdccd02aa4a1a54 (diff) | |
| parent | 3ccad1d5014f9fb98c089fe19bb1fd04f7f8b0db (diff) | |
| download | tk-bug_2443069.zip tk-bug_2443069.tar.gz tk-bug_2443069.tar.bz2 | |
merge trunkbug_2443069
Diffstat (limited to 'win')
| -rw-r--r-- | win/Makefile.in | 6 | ||||
| -rw-r--r-- | win/nmakehlp.c | 9 |
2 files changed, 8 insertions, 7 deletions
diff --git a/win/Makefile.in b/win/Makefile.in index d9aafcc..787dc30 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -147,7 +147,7 @@ MAN2TCL = man2tcl$(EXEEXT) @SET_MAKE@ -# Setting the VPATH variable to a list of paths will cause the +# Setting the VPATH variable to a list of paths will cause the # makefile to look into these paths when resolving .c to .obj # dependencies. @@ -408,7 +408,7 @@ SHELL_ENV = \ TK_LIBRARY="$(ROOT_DIR_NATIVE)/library"; export TK_LIBRARY; \ PATH="$(TCL_BIN_DIR):$(PATH)"; export PATH; -# Main targets. The default target -- all -- builds the binaries, +# Main targets. The default target -- all -- builds the binaries, # performs any post processing on libraries or documents. all: binaries libraries doc @@ -483,7 +483,7 @@ install-binaries: binaries $(COPY) $$i "$(BIN_INSTALL_DIR)"; \ fi; \ done - @echo "Creating package index $(PKG_INDEX)"; + @echo "Creating package index $(PKG_INDEX)"; @$(RM) $(PKG_INDEX); @(\ echo "if {[catch {package present Tcl $(TCLVERSION)$(TCLPATCHL)}]} return";\ diff --git a/win/nmakehlp.c b/win/nmakehlp.c index d0edcf0..b1a1517 100644 --- a/win/nmakehlp.c +++ b/win/nmakehlp.c @@ -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; } @@ -630,11 +631,11 @@ SubstituteFile( } } #endif - + /* * Run the substitutions over each line of the input */ - + while (fgets(szBuffer, cbBuffer, fp) != NULL) { list_item_t *p = NULL; for (p = substPtr; p != NULL; p = p->nextPtr) { @@ -654,7 +655,7 @@ SubstituteFile( } printf(szBuffer); } - + list_free(&substPtr); } fclose(fp); |
