Yet another attempt at signature-build
authorMarco Costalba <mcostalba@gmail.com>
Sat, 20 Jul 2013 12:05:04 +0000 (14:05 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 20 Jul 2013 12:05:04 +0000 (14:05 +0200)
This one should work on all flavours of sed

Suggested by by Louis Zulli

No functional change.

src/Makefile

index f8d65ccb32eddc33395199087984a3145b784aa0..86693ab21e1a32f7b2ba8b8c0677fd2d03179006 100644 (file)
@@ -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