From d36a9eef2bd3da01c4985f6cda7b8419bbf11bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 7 Apr 2015 18:42:13 +0200 Subject: [PATCH] Ensure IPFS-BUILD-OPTIONS build dependency is created If the file doesn't exist, make will conclude that the missing prerequisite should trigger a rebuild of the binaries. --- test/bin/checkflags | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/bin/checkflags b/test/bin/checkflags index a246a82c3..e78e54835 100755 --- a/test/bin/checkflags +++ b/test/bin/checkflags @@ -14,9 +14,11 @@ shift shift FLAG_MSGS="$@" +test -f $FLAG_FILE || touch $FLAG_FILE + # Use x in front of tested values as flags could be # interpreted by "test" to be for itself. -if test x"$FLAG_VALS" != x"$(cat "$FLAG_FILE" 2>/dev/null)" +if test x"$FLAG_VALS" != x"$(cat "$FLAG_FILE")" then echo "$FLAG_MSGS" echo "$FLAG_VALS" >"$FLAG_FILE"