Revert "Yet another attempt at signature-build"
[stockfish] / src / Makefile
index 86693ab21e1a32f7b2ba8b8c0677fd2d03179006..f8d65ccb32eddc33395199087984a3145b784aa0 100644 (file)
@@ -447,7 +447,8 @@ 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 -i'' -f sign.txt misc.cpp
+       @sed -f sign.txt misc.cpp > misc2.cpp
+       @mv misc2.cpp misc.cpp
        @rm sign.txt
 
 signature-build: build embed-signature