From: Marco Costalba Date: Sat, 20 Jul 2013 12:05:04 +0000 (+0200) Subject: Yet another attempt at signature-build X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=7b0b4637208cc2c97b67f873e8ef194051307e2c;p=fairystockfish.git Yet another attempt at signature-build This one should work on all flavours of sed Suggested by by Louis Zulli No functional change. --- diff --git a/src/Makefile b/src/Makefile index f8d65cc..86693ab 100644 --- a/src/Makefile +++ b/src/Makefile @@ -447,8 +447,7 @@ profile-build: embed-signature: @echo "Running benchmark for getting the signature ..." @$(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 + @sed -i'' -f sign.txt misc.cpp @rm sign.txt signature-build: build embed-signature