mirror of
https://github.com/hashcat/hashcat.git
synced 2025-06-26 09:52:37 +00:00
Makefile: fix sed on OSX
sed on OSX doesn't have -r so default to the usage of GNU sed
This commit is contained in:
parent
b58f7a4675
commit
75a38b2e2e
@ -63,6 +63,9 @@ FIND := find
|
|||||||
INSTALL := install
|
INSTALL := install
|
||||||
RM := rm
|
RM := rm
|
||||||
SED := sed
|
SED := sed
|
||||||
|
ifeq ($(UNAME),Darwin)
|
||||||
|
SED := gsed
|
||||||
|
endif
|
||||||
|
|
||||||
##
|
##
|
||||||
## Cross compiler paths
|
## Cross compiler paths
|
||||||
@ -81,7 +84,7 @@ CC_WIN_64 := x86_64-w64-mingw32-gcc
|
|||||||
COMPTIME := $(shell date +%s)
|
COMPTIME := $(shell date +%s)
|
||||||
|
|
||||||
VERSION_EXPORT := $Format:%D$
|
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|')
|
VERSION_TAG := $(shell test -d .git && git describe --tags --dirty=+ || echo "$(VERSION_EXPORT)"|cut -d, -f2|$(SED) -r 's|.* (\w+/)?([^ ]+)|\2|')
|
||||||
|
|
||||||
##
|
##
|
||||||
## Compiler flags
|
## Compiler flags
|
||||||
|
Loading…
Reference in New Issue
Block a user