diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-11-23 21:33:14 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-11-23 21:33:14 (GMT) |
commit | 9e52c62db68eb5312db3378faa921f3dfaa35e41 (patch) | |
tree | 704b2ca47cc3774069ea9e886f9a90a6f0ce5880 /win/Makefile.in | |
parent | 693c2744f3e699094b37a2cf2222cb4cb069efc5 (diff) | |
download | tcl-9e52c62db68eb5312db3378faa921f3dfaa35e41.zip tcl-9e52c62db68eb5312db3378faa921f3dfaa35e41.tar.gz tcl-9e52c62db68eb5312db3378faa921f3dfaa35e41.tar.bz2 |
2 minor improvements: Make sure tclUuid.h ends with newline; Fallback "unknown" if neither GIT, neither fossil is detected
Diffstat (limited to 'win/Makefile.in')
-rw-r--r-- | win/Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win/Makefile.in b/win/Makefile.in index c8b0bbe..7adb057 100644 --- a/win/Makefile.in +++ b/win/Makefile.in @@ -677,11 +677,12 @@ tclEvent.${OBJEXT}: tclEvent.c tclUuid.h $(TOP_DIR)/manifest.uuid: printf "git-" >$(TOP_DIR)/manifest.uuid - git rev-parse HEAD >>$(TOP_DIR)/manifest.uuid + (cd $(TOP_DIR); git rev-parse HEAD >>$(TOP_DIR)/manifest.uuid || printf "unknown" >$(TOP_DIR)/manifest.uuid) tclUuid.h: $(TOP_DIR)/manifest.uuid echo "#define TCL_VERSION_UUID \\" >$@ cat $(TOP_DIR)/manifest.uuid >>$@ + echo "" >>$@ # The following objects are part of the stub library and should not be built # as DLL objects but none of the symbols should be exported |