[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    l10n/scripts
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2006-02-13 9:13:53
Message-ID: 1139822033.070654.8631.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 508953 by goutte:

$( ) is nopt part of sh, so replace it with ` `
(Also remove the trailing ; \ of each of those lines)


 M  +11 -11    check_gui_texts  


--- trunk/l10n/scripts/check_gui_texts #508952:508953
@@ -132,49 +132,49 @@
 	mmmm=$guielement; \
 	if [ "$3" != "1" ]; then echo "$guielement"; fi; \
 	# Escape characters that have a meaning for egrep
-	guielement=$(echo $guielement | sed 's/[\^\$\+\*\?]/\\&/g; s/^/\^/'); \
+	guielement=`echo $guielement | sed 's/[\^\$\+\*\?]/\\&/g; s/^/\^/'`
 	found=no; \
 	# Try to search an exact match
 	for f in $where; do \
 		file=$appdir/$f; \
 		if [ $appdir = templates ]; then file=${file}t; fi; \
         	cat $file | tr -d '&' > $TMPFILE-1; \
-		result=$(egrep -n "$guielement" $TMPFILE-1); \
+		result=`egrep -n "$guielement" $TMPFILE-1`
 		if [ $? -eq 0 ]; then \
 			found=yes; \
-			line=$(echo $result | sed 's/^\([^:]*\):.*$/\1/'); \
+			line=`echo $result | sed 's/^\([^:]*\):.*$/\1/'`
 			echo -n $mmmm\#\# >> $TMPFILE-msgs; \
 			if [ $appdir = templates ]; then \
 				echo "  Found in $file"; \
 			else \
-				head -n $(expr $line + 1) $file | tail -n 1 | tr -d '&' > $TMPFILE-3; \
-				echo "$(cat $TMPFILE-3)" >> $TMPFILE-msgs; \
+				head -n `expr $line + 1` $file | tail -n 1 | tr -d '&' > $TMPFILE-3
+				echo "`cat $TMPFILE-3`" >> $TMPFILE-msgs
 				if [ "$3" != "1" ]; then \
 					recode utf-8..iso-8859-1 $TMPFILE-3; \
-					echo "  Found in $file: $(cat $TMPFILE-3)"; \
+					echo "  Found in $file: `cat $TMPFILE-3`"
 				fi; \
 			fi; \
 		fi; \
 	done; \
 	# Try to search an approximative match
 	if [ $found = no ]; then \
-		guielement=$(echo $guielement | sed 's/^\^msgid "//; s/"$//'); \
-		guielement=$(echo $guielement | sed 's/  */ */g; s/^/\^msgid "/; s/[:.! ]*$/[:.! ]*"/'); \
+		guielement=`echo $guielement | sed 's/^\^msgid "//; s/"$//'`
+		guielement=`echo $guielement | sed 's/  */ */g; s/^/\^msgid "/; s/[:.! ]*$/[:.! ]*"/'`
 		for f in $where; do \
 			file=$appdir/$f; \
 			if [ $appdir = templates ]; then file=${file}t; fi; \
         		cat $file | tr -d '&' > $TMPFILE-1; \
-			result=$(egrep -i -n "$guielement" $TMPFILE-1); \
+			result=`egrep -i -n "$guielement" $TMPFILE-1`
 			if [ $? -eq 0 ]; then \
 				found=yes; \
 				echo -n $mmmm\#\# >> $TMPFILE-msgs; \
-				line=$(echo $result | sed 's/^\([^:]*\):.*$/\1/'); \
+				line=`echo $result | sed 's/^\([^:]*\):.*$/\1/'`
 				if [ $appdir = templates ]; then \
 					head -n $line $file | tail -n 1 | tr -d '&' > $TMPFILE-3; \
 					echo "  Found something similar in $file:"
 					sed "s/^/    /" $TMPFILE-3; \
 				else \
-					head -n $(expr $line + 1) $file | tail -n 2 | tr -d '&' > $TMPFILE-3; \
+					head -n `expr $line + 1` $file | tail -n 2 | tr -d '&' > $TMPFILE-3
 					grep msgstr $TMPFILE-3 >> $TMPFILE-msgs; \
 					if [ "$3" != "1" ]; then \
 						recode utf-8..iso-8859-1 $TMPFILE-3; \
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic