#Author: Barry deFreese <bdefreese@debian.org>
#Description: Replaces echo -e with printf in clanlib scripts.
--- a/contrib/clanlib_make_datafile.sh
+++ b/contrib/clanlib_make_datafile.sh
@@ -23,9 +23,9 @@
     #echo "Datafile line:"
 
     if [ "$type" = "PCX (ZSoft IBM PC Paintbrush)" ]; then 
-	echo -e "\t$name = $filename (type=surface, x=0, y=0, width=$width, height=$height, tcol=0);"
+	printf "\t%s = %s (type=surface, x=0, y=0, width=%d, height=%s, tcol=0);" "$name" "$filename" "$width" "&height"
     else
-	echo -e "\t$name = $filename (type=surface, x=0, y=0, width=$width, height=$height);"
+	printf "\t%s = %s (type=surface, x=0, y=0, width=%d, height=%d);" "&name" "&filename" "&width" "&height"
     fi
 
 done
--- a/doc/clanlib_make_datafile.sh
+++ b/doc/clanlib_make_datafile.sh
@@ -23,9 +23,10 @@
     #echo "Datafile line:"
 
     if [ "$type" = "PCX (ZSoft IBM PC Paintbrush)" ]; then 
-	echo -e "\t$name = $filename (type=surface, x=0, y=0, width=$width, height=$height, tcol=0);"
+	printf "\t%s = %s (type=surface, x=0, y=0, width=%d, height=%d, tcol=0);" "$name" "$filename" "&width" "&height"
     else
-	echo -e "\t$name = $filename (type=surface, x=0, y=0, width=$width, height=$height);"
+	printf "\t$name = $filename (type=surface, x=0, y=0, width=$width, height=$height);"
+	printf "\t%s = %s (type=surface, x=0, y=0, width=%d, height=%d);" "$name" "$filename" "&width" "&height"
     fi
 
 done
