Fix sed pattern on OS X
OS X apparently doesn't support \W. Thanks-to: Peter Olsson <peter.olsson@visionutveckling.se> FS-4528 --resolve
This commit is contained in:
parent
360544ee7f
commit
ebd3f4944c
|
@ -424,8 +424,8 @@ src/include/switch_version.h: src/include/switch_version.h.in Makefile build/pri
|
|||
xver="$$(./build/print_git_revision)"; \
|
||||
xhver="$$(./build/print_git_revision -h)"; \
|
||||
sed \
|
||||
-e "/#define *SWITCH_VERSION_REVISION\W/{s/\"\([^\"]*\)\"/\"\1$$xver\"/;}" \
|
||||
-e "/#define *SWITCH_VERSION_REVISION_HUMAN\W/{s/\"\([^\"]*\)\"/\"\1$$xhver\"/;}" \
|
||||
-e "/#define *SWITCH_VERSION_REVISION[^a-zA-Z0-9_]/{s/\"\([^\"]*\)\"/\"\1$$xver\"/;}" \
|
||||
-e "/#define *SWITCH_VERSION_REVISION_HUMAN[^a-zA-Z0-9_]/{s/\"\([^\"]*\)\"/\"\1$$xhver\"/;}" \
|
||||
$< > $@; \
|
||||
fi;
|
||||
|
||||
|
|
Loading…
Reference in New Issue