diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-04-09 15:23:22 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-04-09 15:23:22 (GMT) |
commit | 5f873c0783342767b38a977bf2e3ebd8eb23f19f (patch) | |
tree | d73482034012a3ea838beca30d4a0af691c478e5 | |
parent | 8b6f1f2a55be3da5e528cfcd398cfe454911d52f (diff) | |
download | tcl-5f873c0783342767b38a977bf2e3ebd8eb23f19f.zip tcl-5f873c0783342767b38a977bf2e3ebd8eb23f19f.tar.gz tcl-5f873c0783342767b38a977bf2e3ebd8eb23f19f.tar.bz2 |
Add ability to regenerate tclOOScript.h to Win build
-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. |