mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Fix signature-build under OSX
On OS X when you use -i an extension for the in-place substitution a backup files is required. http://stackoverflow.com/questions/4247068/sed-command-failing-on-mac-but-works-on-linux So rewrite to make sed flushing sign.txt in one go and avoid using -i option. Reported by Louis Zulli No functional change.
This commit is contained in:
parent
1a8f63a896
commit
a5b5a91512
1 changed files with 3 additions and 3 deletions
|
@ -446,9 +446,9 @@ profile-build:
|
|||
|
||||
embed-signature:
|
||||
@echo "Running benchmark for getting the signature ..."
|
||||
@$(SIGNBENCH) 2>&1 | sed -n 's/Nodes searched : \(.*\)/\1/p' > sign.txt
|
||||
@sed -i -e 's,^,/static const string Version/s/"\\(.*\\)"/"sig-,1' -e 's,$$,"/1,1' sign.txt
|
||||
@sed -i -f sign.txt misc.cpp
|
||||
@$(SIGNBENCH) 2>&1 | sed -n 's/Nodes searched : \(.*\)/\/string Version\/s\/"\\(.*\\)"\/"sig-\1"\//p' > sign.txt
|
||||
@sed -f sign.txt misc.cpp > misc2.cpp
|
||||
@mv misc2.cpp misc.cpp
|
||||
@rm sign.txt
|
||||
|
||||
signature-build: build embed-signature
|
||||
|
|
Loading…
Add table
Reference in a new issue