1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-23 22:21:29 +00:00

Merge pull request #348 from anthraxx/master

fallback for Makefile version if its not a git checkout (tarball) (re…
This commit is contained in:
Jens Steube 2016-05-19 20:59:53 +02:00
commit 18a061897f
2 changed files with 3 additions and 1 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
src/Makefile export-subst

View File

@ -80,7 +80,8 @@ CC_WIN_64 := x86_64-w64-mingw32-gcc
##
COMPTIME := $(shell date +%s)
VERSION_TAG := $(shell git describe --tags --dirty=+)
VERSION_EXPORT := $Format:%D$
VERSION_TAG := $(shell test -d .git && git describe --tags --dirty=+ || echo "$(VERSION_EXPORT)"|cut -d, -f2|sed -r 's|.* (\w+/)?([^ ]+)|\2|')
##
## Compiler flags