[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#480620: xutils-dev: bashism in /bin/sh script



tags 480620 + patch
thanks

Attached is a patch that could fix this issue.

-- 
Regards,
Andres
--- xutils-dev-7.4+3.old/imake/mdepend.cpp	2007-02-07 20:45:11.000000000 -0500
+++ xutils-dev-7.4+3/imake/mdepend.cpp	2008-12-01 15:53:11.000000000 -0500
@@ -46,17 +46,9 @@
 trap "rm -rf ${TMP}; exit 1" 1 2 15
 trap "rm -rf ${TMP}; exit 0" 1 2 13
 
-echo " \c" > $CPPCMD
-if [ `wc -c < $CPPCMD` -eq 1 ]
-then
-    c="\c"
-    n=
-else
-    c=
-    n="-n"
-fi
+printf " " > $CPPCMD
 
-echo $n "$c" >$ARGS
+printf "" >$ARGS
 
 files=
 makefile=
@@ -75,7 +67,7 @@
     else
 	case "$1" in
 	    -D*|-I*|-U*)
-		echo $n " '$1'$c" >> $ARGS
+		printf " '$1'" >> $ARGS
 		;;
 
 	    -g|-O)	# ignore so we can just pass $(CFLAGS) in

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: