From a7f2efc4502e9eee3328502c9f7be0a3d87beb46 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 30 Mar 2018 16:30:48 +0200 Subject: [PATCH] build: Make DBus code generation more portable The $'...' quoting syntax is a Bash extension and might not be available in other Bourne Shell compatible shells: https://www.gnu.org/software/bash/manual/html_node/Major-Differences-From-The-Bourne-Shell.html#Major-Differences-From-The-Bourne-Shell https://bugzilla.gnome.org/show_bug.cgi?id=734630 --- libsecret/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsecret/Makefile.am b/libsecret/Makefile.am index 0157b3f..1d1c489 100644 --- a/libsecret/Makefile.am +++ b/libsecret/Makefile.am @@ -89,10 +89,10 @@ temp-dbus-generated.c: $(DBUS_XML_DEFINITIONS) Makefile.am $(AM_V_GEN) gdbus-codegen --interface-prefix org.freedesktop.Secret. \ --generate-c-code temp-dbus-generated --c-namespace SecretGen $< secret-dbus-generated.c: temp-dbus-generated.c Makefile.am - $(AM_V_GEN) sed -e $$'1i\\\n#define GLIB_DISABLE_DEPRECATION_WARNINGS' \ - -e 's/secret_gen_/_secret_gen_/g' -e 's/type-/type/g' \ + $(AM_V_GEN) { echo '#define GLIB_DISABLE_DEPRECATION_WARNINGS'; \ + sed -e 's/secret_gen_/_secret_gen_/g' -e 's/type-/type/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 secret-dbus-generated.h: temp-dbus-generated.c Makefile.am $(AM_V_GEN) sed -e 's/secret_gen_/_secret_gen_/g' -e 's/type-/type/g' \ temp-dbus-generated.h > secret-dbus-generated.h