m4/gst-feature.m4: Use printf instead of echo as "echo -e" isn't POSIX and doesn...
authorSebastian Dröge <slomo@circular-chaos.org>
Sat, 2 Feb 2008 06:56:20 +0000 (06:56 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Sat, 2 Feb 2008 06:56:20 +0000 (06:56 +0000)
Original commit message from CVS:
* m4/gst-feature.m4:
Use printf instead of echo as "echo -e" isn't POSIX and doesn't work
with strict POSIX shells like tcsh or dash and also not every platform
has a /bin/echo that supports it.

ChangeLog
m4/gst-feature.m4

index bedace9..55489aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-02  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       * m4/gst-feature.m4:
+       Use printf instead of echo as "echo -e" isn't POSIX and doesn't work
+       with strict POSIX shells like tcsh or dash and also not every platform
+       has a /bin/echo that supports it.
+
 2008-01-24  Stefan Kost  <ensonic@users.sf.net>
 
        * ChangeLog:
index 510d228..ed271b5 100644 (file)
@@ -255,31 +255,31 @@ dnl relies on GST_PLUGINS_ALL, GST_PLUGINS_SELECTED, GST_PLUGINS_YES,
 dnl GST_PLUGINS_NO, and BUILD_EXTERNAL
 AC_DEFUN([AG_GST_OUTPUT_PLUGINS], [
 
-echo "configure: *** Plug-ins without external dependencies that will be built:"
-( for i in $GST_PLUGINS_SELECTED; do /bin/echo -e '\t'$i; done ) | sort
-echo
+printf "configure: *** Plug-ins without external dependencies that will be built:\n"
+( for i in $GST_PLUGINS_SELECTED; do printf '\t'$i'\n'; done ) | sort
+printf "\n"
 
-echo "configure: *** Plug-ins without external dependencies that will NOT be built:"
+printf "configure: *** Plug-ins without external dependencies that will NOT be built:\n"
 ( for i in $GST_PLUGINS_ALL; do
     case $GST_PLUGINS_SELECTED in
       *$i*)
        ;;
       *)
-       /bin/echo -e '\t'$i
+       printf '\t'$i'\n'
        ;;
     esac
   done ) | sort
-echo
+printf "\n"
 
 if test "x$BUILD_EXTERNAL" = "xno"; then
-  echo "configure: *** No plug-ins with external dependencies will be built"
+  printf "configure: *** No plug-ins with external dependencies will be built\n"
 else
-  /bin/echo -n "configure: *** Plug-ins with dependencies that will be built:"
-  /bin/echo -e "$GST_PLUGINS_YES" | sort
-  /bin/echo
-  /bin/echo -n "configure: *** Plug-ins with dependencies that will NOT be built:"
-  /bin/echo -e "$GST_PLUGINS_NO" | sort
-  /bin/echo
+  printf "configure: *** Plug-ins with dependencies that will be built:"
+  printf "$GST_PLUGINS_YES\n" | sort
+  printf "\n"
+  printf "configure: *** Plug-ins with dependencies that will NOT be built:"
+  printf "$GST_PLUGINS_NO\n" | sort
+  printf "\n"
 fi
 ])