openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0c317c42e8b444d7808f17e345a4354d7bd3670d
parent a3158c2bc62258e2191eec8bbe05e3270adbe43c
Author: dankert <devnull@localhost>
Date:   Sun,  1 Mar 2009 13:13:08 +0100

Bugfix: Vergleichen der Sprach-Dateien.

Diffstat:
doc/examples/maintenance/compare-lang.sh | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/doc/examples/maintenance/compare-lang.sh b/doc/examples/maintenance/compare-lang.sh @@ -22,11 +22,13 @@ fi cat $1|egrep "^;" -v|while read line do - #echo "Zeile:" - anfline=`echo $line|sed s/=.*/=/` - #echo "$anfline" # Output the line itself. - #echo Hat `cat $2|grep "$anfline"` - if [ "`cat $2|grep \"$anfline\"`" == "" ]; then + #echo "Zeile: $line" + anfline=`echo $line|cut --delimiter== -f 1` + #echo "Key: $anfline" # Output the line itself. + #echo Hat `cat $2|egrep "$anfline\\s?="` + count=`cat $2|egrep "^$anfline\\\\s?="|wc -l` + #echo "Count=$count" + if [ $count -eq "0" ]; then echo $line #echo ";not in $2: $anfline" fi