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 /unix | |
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 'unix')
-rw-r--r-- | unix/Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in index 6f51a0b..3447acb 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -1260,6 +1260,7 @@ tclBasic.o: $(GENERIC_DIR)/tclBasic.c $(COMPILEHDR) $(MATHHDRS) $(NREHDR) tclUuid.h: $(TOP_DIR)/manifest.uuid echo "#define TCL_VERSION_UUID \\" >$@ cat $(TOP_DIR)/manifest.uuid >>$@ + echo "" >>$@ tclBinary.o: $(GENERIC_DIR)/tclBinary.c $(CC) -c $(CC_SWITCHES) $(GENERIC_DIR)/tclBinary.c @@ -2231,7 +2232,7 @@ $(UNIX_DIR)/tclConfig.h.in: $(MAC_OSX_DIR)/configure $(TOP_DIR)/manifest.uuid: printf "git-" >$(TOP_DIR)/manifest.uuid - (cd $(TOP_DIR); 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) dist: $(UNIX_DIR)/configure $(UNIX_DIR)/tclConfig.h.in $(UNIX_DIR)/tcl.pc.in genstubs \ $(MAC_OSX_DIR)/configure $(TOP_DIR)/manifest.uuid dist-packages ${NATIVE_TCLSH} |