Don't needlessly use "echo -e"
authorMartin Storsjo <martin@martin.st>
Wed, 6 Jul 2011 13:41:44 +0000 (16:41 +0300)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 11 Jul 2011 00:47:02 +0000 (20:47 -0400)
The -e parameter to echo isn't recognized by echo in POSIX sh,
but isn't needed when no escaped characters need to be
interpreted.

This fixes building glib with a mingw cross compiler on Mac OS X.

https://bugzilla.gnome.org/show_bug.cgi?id=654085

gio/Makefile.am
glib/Makefile.am
gmodule/Makefile.am
gobject/Makefile.am

index 7bd6618..77b1a84 100644 (file)
@@ -24,7 +24,7 @@ uninstall-ms-lib:
        $(uninstall_ms_lib_cmd)
 
 gio.def: gio.symbols
-       $(AM_V_GEN) (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gio.symbols | sed -e '/^$$/d' -e 's/^/     /' -e 's/G_GNUC_[^ ]*//g' | sort) > gio.def.tmp && \
+       $(AM_V_GEN) (echo EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gio.symbols | sed -e '/^$$/d' -e 's/^/        /' -e 's/G_GNUC_[^ ]*//g' | sort) > gio.def.tmp && \
          mv gio.def.tmp gio.def
 
 if OS_LINUX
index f74f78f..22680b8 100644 (file)
@@ -56,7 +56,7 @@ AM_CPPFLAGS =                                 \
        -DPCRE_STATIC
 
 glib.def: glib.symbols
-       $(AM_V_GEN) (echo -e EXPORTS; $(CPP) -P -DG_OS_WIN32 - <$(srcdir)/glib.symbols | sed -e '/^$$/d' -e 's/^/       /') > glib.def
+       $(AM_V_GEN) (echo EXPORTS; $(CPP) -P -DG_OS_WIN32 - <$(srcdir)/glib.symbols | sed -e '/^$$/d' -e 's/^/  /') > glib.def
 
 if OS_LINUX
 if HAVE_GNUC_VISIBILITY
index cebfcb4..4eb5ed7 100644 (file)
@@ -8,7 +8,7 @@ AM_CPPFLAGS =                           \
        -DG_DISABLE_DEPRECATED
 
 gmodule.def: gmodule.symbols
-       $(AM_V_GEN) (echo -e EXPORTS; $(CPP) -P - <$(srcdir)/gmodule.symbols | sed -e '/^$$/d' -e 's/^/ /') > gmodule.def
+       $(AM_V_GEN) (echo EXPORTS; $(CPP) -P - <$(srcdir)/gmodule.symbols | sed -e '/^$$/d' -e 's/^/    /') > gmodule.def
 
 EXTRA_DIST +=                          \
                makefile.msc.in         \
index af090d6..10b0e2f 100644 (file)
@@ -22,7 +22,7 @@ AM_CPPFLAGS =                                         \
        -DGOBJECT_COMPILATION
 
 gobject.def: gobject.symbols
-       $(AM_V_GEN) (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gobject.symbols | $(SED) -e '/^$$/d' -e 's/^/      /' -e 's/G_GNUC_[^ ]*//g' | sort) > gobject.def
+       $(AM_V_GEN) (echo EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gobject.symbols | $(SED) -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g' | sort) > gobject.def
 
 if OS_LINUX
 if HAVE_GNUC_VISIBILITY