[Xfce4-commits] <xfce4-dev-tools:master> Use printf instead of echo -n.

Benedikt Meurer noreply at xfce.org
Sun Dec 19 12:04:01 CET 2010


Updating branch refs/heads/master
         to 4dc82ec2af7cab940cd700be6cb041468dc86338 (commit)
       from 20e7901a9fef7ea229fa3c55f8875509c795c391 (commit)

commit 4dc82ec2af7cab940cd700be6cb041468dc86338
Author: Benedikt Meurer <benedikt.meurer at googlemail.com>
Date:   Sun Dec 19 11:49:21 2010 +0100

    Use printf instead of echo -n.
    
    /bin/sh does not support the -n option for echo. Use printf instead,
    which is independent of the shell.

 scripts/xdt-autogen.in.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/xdt-autogen.in.in b/scripts/xdt-autogen.in.in
index 2d14ef8..a2ef933 100644
--- a/scripts/xdt-autogen.in.in
+++ b/scripts/xdt-autogen.in.in
@@ -2,7 +2,7 @@
 #
 # $Id$
 #
-# Copyright (c) 2002-2006
+# Copyright (c) 2002-2010
 #         The Xfce development team. All rights reserved.
 #
 # Written for Xfce by Benedikt Meurer <benny at xfce.org>.
@@ -93,7 +93,7 @@ EOF
     exit 1
   fi
 
-  test "x$configure_ac_file" != "x" && echo -n "$configure_ac_file "
+  test "x$configure_ac_file" != "x" && printf "%s" "$configure_ac_file "
 
   subdirs=`parse_configure_subdirs ${configure_ac_file}`
   for subdir in $subdirs; do
@@ -114,7 +114,7 @@ lookup_configure_ac_in_files()
     configure_ac_in_file="$1/configure.in.in";
   fi
 
-  test "x$configure_ac_in_file" != "x" && echo -n "$configure_ac_in_file "
+  test "x$configure_ac_in_file" != "x" && printf "%s" "$configure_ac_in_file "
 
   subdirs=`parse_configure_subdirs ${configure_ac_in_file}`
   for subdir in $subdirs; do



More information about the Xfce4-commits mailing list