Change build date to commit date in version string
Use build date only when there is no commit.
This commit is contained in:
1 parent
b9a2cd51f6
commit
62a89679f0
2 files changed
+12
-10
No files matched your search
@@ -2,7 +2,8 @@ include premake.make
|
||||
|
||||
# git commit hash and version for this build
|
||||
COMMIT-HASH != git log 2>/dev/null | sed -e '1s/^commit //;q'
|
||||
COMMIT := "static const char* commit = \"$(COMMIT-HASH)\";"
|
||||
COMMITDATE != git log 2>/dev/null | sed -ne '3p' | sed -e 's/^Date: //'
|
||||
COMMIT := "const char* commit = \"$(COMMIT-HASH), $(COMMITDATE)\";"
|
||||
VERSION := "static const char* version = \"$(MAJOR).$(MINOR).$(PATCH)\";"
|
||||
|
||||
# some important install locations
|
||||
|
||||
Reference in new issue
Block a user