mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Yet another attempt at signature-build
This one should work on all flavours of sed Suggested by by Louis Zulli No functional change.
This commit is contained in:
@@ -447,8 +447,7 @@ profile-build:
|
|||||||
embed-signature:
|
embed-signature:
|
||||||
@echo "Running benchmark for getting the signature ..."
|
@echo "Running benchmark for getting the signature ..."
|
||||||
@$(SIGNBENCH) 2>&1 | sed -n 's/Nodes searched : \(.*\)/\/string Version\/s\/"\\(.*\\)"\/"sig-\1"\//p' > sign.txt
|
@$(SIGNBENCH) 2>&1 | sed -n 's/Nodes searched : \(.*\)/\/string Version\/s\/"\\(.*\\)"\/"sig-\1"\//p' > sign.txt
|
||||||
@sed -f sign.txt misc.cpp > misc2.cpp
|
@sed -i'' -f sign.txt misc.cpp
|
||||||
@mv misc2.cpp misc.cpp
|
|
||||||
@rm sign.txt
|
@rm sign.txt
|
||||||
|
|
||||||
signature-build: build embed-signature
|
signature-build: build embed-signature
|
||||||
|
|||||||
Reference in New Issue
Block a user