build: Use $-quoted string to escape newline

BSD sed doesn't like escaping a literal newline character with a
backslash. Instead, use a $-quoted string to escape the newline as \n.

https://bugzilla.gnome.org/show_bug.cgi?id=734630
This commit is contained in:
Philip Chimento 2016-02-16 21:55:20 -08:00 committed by Stef Walter
parent 99a2e6ad3e
commit 4d7b190b67

View File

@ -89,8 +89,7 @@ temp-dbus-generated.c: $(DBUS_XML_DEFINITIONS) Makefile.am
$(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.Secret. \ $(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.Secret. \
--generate-c-code temp-dbus-generated --c-namespace SecretGen $< --generate-c-code temp-dbus-generated --c-namespace SecretGen $<
secret-dbus-generated.c: temp-dbus-generated.c Makefile.am secret-dbus-generated.c: temp-dbus-generated.c Makefile.am
$(AM_V_GEN) sed -e '1i\ $(AM_V_GEN) sed -e $$'1i\\\n#define GLIB_DISABLE_DEPRECATION_WARNINGS' \
#define GLIB_DISABLE_DEPRECATION_WARNINGS' \
-e 's/secret_gen_/_secret_gen_/g' -e 's/type-/type/g' \ -e 's/secret_gen_/_secret_gen_/g' -e 's/type-/type/g' \
-e 's/temp-dbus-generated.h/secret-dbus-generated.h/g' \ -e 's/temp-dbus-generated.h/secret-dbus-generated.h/g' \
temp-dbus-generated.c > secret-dbus-generated.c temp-dbus-generated.c > secret-dbus-generated.c