summaryrefslogtreecommitdiffstats
path: root/win/Makefile.in
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-11-23 21:33:14 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-11-23 21:33:14 (GMT)
commit9e52c62db68eb5312db3378faa921f3dfaa35e41 (patch)
tree704b2ca47cc3774069ea9e886f9a90a6f0ce5880 /win/Makefile.in
parent693c2744f3e699094b37a2cf2222cb4cb069efc5 (diff)
downloadtcl-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.in3
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