diff options
-rw-r--r-- | tools/makeHeader.tcl | 1 | ||||
-rw-r--r-- | win/Makefile.in | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/tools/makeHeader.tcl b/tools/makeHeader.tcl index 17526e0..e20e336 100644 --- a/tools/makeHeader.tcl +++ b/tools/makeHeader.tcl @@ -108,6 +108,7 @@ namespace eval makeHeader { proc updateTemplateFile {headerFile scriptLines} { set f [open $headerFile "r+"] try { + chan configure $f -translation {auto lf} set content [split [chan read -nonewline $f] "\n"] updateTemplate content [stripSurround $scriptLines] chan seek $f 0 diff --git a/win/Makefile.in b/win/Makefile.in index 856a21c..e71c5f3 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -1109,6 +1109,16 @@ genstubs: "$(GENERIC_DIR_NATIVE)" \ "$(GENERIC_DIR_NATIVE)/tclOO.decls" +$(GENERIC_DIR)/tclOOScript.h: $(TOOL_DIR)/tclOOScript.tcl + @echo "Warning: tclOOScript.h may be out of date." + @echo "Developers may want to run \"make genscript\" to regenerate." + @echo "This warning can be safely ignored, do not report as a bug!" + +genscript: + $(TCL_EXE) "$(ROOT_DIR_NATIVE)/tools/makeHeader.tcl" \ + "$(ROOT_DIR_NATIVE)/tools/tclOOScript.tcl" \ + "$(GENERIC_DIR_NATIVE)/tclOOScript.h" + # # This target creates the HTML folder for Tcl & Tk and places it in # DISTDIR/html. It uses the tcltk-man2html.tcl tool from the Tcl group's tool @@ -1137,7 +1147,7 @@ html-tk: $(TCLSH) .PHONY: install-doc install-private-headers test test-tcl runtest shell .PHONY: gdb depend cleanhelp clean distclean packages install-packages .PHONY: test-packages clean-packages distclean-packages genstubs html -.PHONY: html-tcl html-tk +.PHONY: html-tcl html-tk genscript .PHONY: tclzipfile # DO NOT DELETE THIS LINE -- make depend depends on it. |