summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-17 13:45:19 (UTC)
committer simon <simon>2002-12-17 13:45:19 (UTC)
commit1e0289c2367b411fe9c4c34aff11988dc77c0f54 (patch) (unidiff)
tree5c01b69f905629a1b579148a684c2f6d4db48b9c
parent49a8bda7be0e3f3a476f664f43753d85448cb483 (diff)
downloadopie-1e0289c2367b411fe9c4c34aff11988dc77c0f54.zip
opie-1e0289c2367b411fe9c4c34aff11988dc77c0f54.tar.gz
opie-1e0289c2367b411fe9c4c34aff11988dc77c0f54.tar.bz2
- update by Carsten
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xi18n/status.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/i18n/status.sh b/i18n/status.sh
index 5cde18e..6f4b6e2 100755
--- a/i18n/status.sh
+++ b/i18n/status.sh
@@ -1,15 +1,21 @@
1#/bin/sh 1#/bin/sh
2arg=$1 2arg=$1
3foo=$1
3if [ x${arg}x = xx ] 4if [ x${arg}x = xx ]
4then 5then
5 arg=. 6 arg=.
7 foo="all"
6fi 8fi
9
10echo "Status of $foo"
11echo
12
7echo "number of strings: " 13echo "number of strings: "
8strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l` 14strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l`
9echo $strs 15echo $strs
10echo "unfinished: " 16echo "unfinished: "
11unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l` 17unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l`
12echo $unfi `expr \( $strs - $unfi \) \* 100 / $strs`% 18echo $unfi", that means" `expr \( $strs - $unfi \) \* 100 / $strs`% "are done"
13echo "obsolete: " 19echo "obsolete: "
14obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l` 20obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l`
15echo $obso `expr \( $strs - $obso \) \* 100 / $strs`% 21echo $obso `expr \( $strs - $obso \) \* 100 / $strs`%