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.
Tor Arne Vestbø committed
Apr 7, 2015 at 18:42 UTC
d36a9eef2bd3da01c4985f6cda7b8419bbf11bee
1 file changed
+3
-1
test/bin/checkflags
+3
-1
@@ -14,9 +14,11 @@ shift
14
shift
15
FLAG_MSGS="$@"
16
17
+test -f $FLAG_FILE || touch $FLAG_FILE
18
+
19
# Use x in front of tested values as flags could be
20
# interpreted by "test" to be for itself.
19
-if test x"$FLAG_VALS" != x"$(cat "$FLAG_FILE" 2>/dev/null)"
21
+if test x"$FLAG_VALS" != x"$(cat "$FLAG_FILE")"
22
then
23
echo "$FLAG_MSGS"
24
echo "$FLAG_VALS" >"$FLAG_FILE"