From bd6d22d890be8b2a52644c0c344b9c1ff7b0fbe4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 9 Dec 2017 14:46:32 +0100 Subject: [PATCH] Avoid trailing spaces in auto-generated build/cmake/setup.h.in Tweak the sed command to ensure that "\1" in it refers only to the name of the preprocessor symbol being defined, without all the spaces after it. --- build/update-setup-h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/update-setup-h b/build/update-setup-h index 7154bb4c68..5f8b05c3dd 100755 --- a/build/update-setup-h +++ b/build/update-setup-h @@ -43,7 +43,7 @@ cat_common_options_for() # The setup.h.in template for cmake needs special processing cmd="$cmd | sed -e '/^\/\//d' \ -e 's@ *//.*\$@@' \ - -e 's/# *define \(.\+\) \+\(1\|0\) *\$/#cmakedefine01 \1/'" + -e 's/# *define \([^ ]\+\) \+\(1\|0\) *\$/#cmakedefine01 \1/'" fi eval $cmd