1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-02 09:39:36 +00:00

Drop grep and tr dependency in Makefile

Use only sed to get the bench signature.

No functional change.
This commit is contained in:
Marco Costalba 2013-07-15 21:39:06 +02:00
parent 46fdb14b2f
commit 05e31c5e5f

View file

@ -446,7 +446,7 @@ profile-build:
embed-signature:
@echo "Running benchmark for getting the signature ..."
@$(SIGNBENCH) 2>&1 | grep 'Nodes searched' | grep -o ": .*" | tr -d ': ' > sign.txt
@$(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
@rm sign.txt