summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2002-12-20 17:16:32 (UTC)
committer cniehaus <cniehaus>2002-12-20 17:16:32 (UTC)
commitfdcb16419ebc646875a1c2cc4e9f623af502a31d (patch) (unidiff)
tree1aa8f60e413f5cd40a7492997c13952309720bdf
parentb7f0fe02a2b5b8d8adbcad338eff0cdb173364ad (diff)
downloadopie-fdcb16419ebc646875a1c2cc4e9f623af502a31d.zip
opie-fdcb16419ebc646875a1c2cc4e9f623af502a31d.tar.gz
opie-fdcb16419ebc646875a1c2cc4e9f623af502a31d.tar.bz2
Thanks to Chris /me learned another sh-thing :)
Diffstat (more/less context) (show whitespace changes)
-rwxr-xr-xi18n/status.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18n/status.sh b/i18n/status.sh
index b669bf2..125d8a1 100755
--- a/i18n/status.sh
+++ b/i18n/status.sh
@@ -4,15 +4,12 @@ foo=$1
4if [ x${arg}x = xx ] 4if [ x${arg}x = xx ]
5then 5then
6 arg=. 6 arg=.
7 foo="all" 7 foo="all"
8fi 8fi
9 9
10echo "Status of $foo"
11echo
12
13#general figures 10#general figures
14echo "Status of $foo" 11echo "Status of $foo"
15echo 12echo
16 13
17echo "number of strings: " 14echo "number of strings: "
18strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l` 15strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l`
@@ -21,12 +18,14 @@ echo "unfinished: "
21unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l` 18unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l`
22echo $unfi", that means" `expr \( $strs - $unfi \) \* 100 / $strs`% "are done" 19echo $unfi", that means" `expr \( $strs - $unfi \) \* 100 / $strs`% "are done"
23echo "obsolete: " 20echo "obsolete: "
24obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l` 21obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l`
25echo $obso `expr \( $strs - $obso \) \* 100 / $strs`% 22echo $obso `expr \( $strs - $obso \) \* 100 / $strs`%
26 23
24if [ "foo" = "all" ]
25then
27#from here on we will only look at the core-parts. All numbers have to be 0% if 26#from here on we will only look at the core-parts. All numbers have to be 0% if
28#the specific language will be in the official release. 27#the specific language will be in the official release.
29echo 28echo
30echo "Core:" 29echo "Core:"
31core_today=`grep translation $arg/today.ts | grep type=\"unfinished\" | wc -l` 30core_today=`grep translation $arg/today.ts | grep type=\"unfinished\" | wc -l`
32core_todo=`grep translation $arg/todolist.ts | grep type=\"unfinished\" | wc -l` 31core_todo=`grep translation $arg/todolist.ts | grep type=\"unfinished\" | wc -l`
@@ -41,6 +40,7 @@ _libopie=`grep translation $arg/libopie.ts | wc -l`
41 40
42echo "Today:" $core_today", that means" `expr $core_today \* 100 / $_core_today`% "needs to be done" 41echo "Today:" $core_today", that means" `expr $core_today \* 100 / $_core_today`% "needs to be done"
43echo "Datebook:" $core_datebook", that means" `expr $core_datebook \* 100 / $_core_datebook`% "needs to be done" 42echo "Datebook:" $core_datebook", that means" `expr $core_datebook \* 100 / $_core_datebook`% "needs to be done"
44echo "Todo:" $core_todo", that means" `expr $core_todo \* 100 / $_core_todo`% "needs to be done" 43echo "Todo:" $core_todo", that means" `expr $core_todo \* 100 / $_core_todo`% "needs to be done"
45echo "Addressbook:" $core_addressbook", that means" `expr $core_addressbook \* 100 / $_core_addressbook`% "needs to be done" 44echo "Addressbook:" $core_addressbook", that means" `expr $core_addressbook \* 100 / $_core_addressbook`% "needs to be done"
46echo "libopie:" $libopie", that means" `expr $libopie \* 100 / $_libopie`% "needs to be done" 45echo "libopie:" $libopie", that means" `expr $libopie \* 100 / $_libopie`% "needs to be done"
46fi