Package: cataclysm-dda / 0.C+git20190228.faafa3a-2

dont_use_git_version.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: Prevent the git commit from being used as version string

--- a/Makefile
+++ b/Makefile
@@ -799,7 +799,6 @@
 .PHONY: version json-verify
 version:
 	@( VERSION_STRING=$(VERSION) ; \
-            [ -e ".git" ] && GITVERSION=$$( git describe --tags --always --dirty --match "[0-9A-Z]*.[0-9A-Z]*" ) && VERSION_STRING=$$GITVERSION ; \
             [ -e "$(SRC_DIR)/version.h" ] && OLDVERSION=$$(grep VERSION $(SRC_DIR)/version.h|cut -d '"' -f2) ; \
             if [ "x$$VERSION_STRING" != "x$$OLDVERSION" ]; then echo "#define VERSION \"$$VERSION_STRING\"" | tee $(SRC_DIR)/version.h ; fi \
          )