[Swfdec] libswfdec/Makefile.am

Benjamin Otte company at kemper.freedesktop.org
Thu Jan 17 09:23:28 PST 2008


 libswfdec/Makefile.am |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 81a5772da620b6f02edc6b4df67895fdcf2b2739
Author: Benjamin Otte <otte at gnome.org>
Date:   Thu Jan 17 18:22:29 2008 +0100

    The god of portability says: don't use echo -e
    
    It's the same god that gave us dash btw.

diff --git a/libswfdec/Makefile.am b/libswfdec/Makefile.am
index 78cdf62..4f2d438 100644
--- a/libswfdec/Makefile.am
+++ b/libswfdec/Makefile.am
@@ -362,10 +362,10 @@ swfdec_as_strings.h: swfdec_as_strings.c
 	( cd $(srcdir) && echo "/* This is a generated file. See swfdec_as_strings.c for details. */" \
 	  && echo "#ifndef _SWFDEC_AS_STRINGS_H_" \
 	  && echo "#define _SWFDEC_AS_STRINGS_H_" \
-	  && echo -e "\nextern const char swfdec_as_strings[];\n" \
+	  && echo "extern const char swfdec_as_strings[];" \
 	  && grep "  SWFDEC_AS_CONSTANT_STRING" swfdec_as_strings.c \
 	  | sed "s/.*(\"\(.*\)\").*/\1/" \
 	  | $(AWK) '{ if ($$0 == "") name = "EMPTY"; else if ($$0 == ",") name = "COMMA"; else if ($$0 == "/") name = "SLASH"; else name = $$0; gsub("[^a-zA-Z0-9\\$$]","_",name); print "#define SWFDEC_AS_STR_" name " &swfdec_as_strings[" x + 1 "]"; x = x + length ($$0) + 2 }' \
-	  && echo -e "\n#endif" ) > xgen-sas \
+	  && echo "#endif" ) > xgen-sas \
 	&& (cmp -s xgen-sas swfdec_as_strings.h || cp xgen-sas swfdec_as_strings.h ) \
 	&& rm -f xgen-sas


More information about the Swfdec mailing list