author | cniehaus <cniehaus> | 2002-12-20 16:58:39 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-12-20 16:58:39 (UTC) |
commit | b7f0fe02a2b5b8d8adbcad338eff0cdb173364ad (patch) (unidiff) | |
tree | 47aae8d70ab4e166a8b879633c74a8b3f99b8835 | |
parent | 1417713572e0c7fe186b88048edf4365364a2815 (diff) | |
download | opie-b7f0fe02a2b5b8d8adbcad338eff0cdb173364ad.zip opie-b7f0fe02a2b5b8d8adbcad338eff0cdb173364ad.tar.gz opie-b7f0fe02a2b5b8d8adbcad338eff0cdb173364ad.tar.bz2 |
as nobody read this nobody will notice my stupid bug
-rwxr-xr-x | i18n/status.sh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/i18n/status.sh b/i18n/status.sh index 2eef724..b669bf2 100755 --- a/i18n/status.sh +++ b/i18n/status.sh | |||
@@ -1,41 +1,40 @@ | |||
1 | #/bin/sh | 1 | #/bin/sh |
2 | arg=$1 | 2 | arg=$1 |
3 | foo=$1 | 3 | foo=$1 |
4 | if [ x${arg}x = xx ] | 4 | if [ x${arg}x = xx ] |
5 | then | 5 | then |
6 | arg=. | 6 | arg=. |
7 | foo="all" | 7 | foo="all" |
8 | fi | 8 | fi |
9 | 9 | ||
10 | echo "Status of $foo" | 10 | echo "Status of $foo" |
11 | echo | 11 | echo |
12 | 12 | ||
13 | #general figures | 13 | #general figures |
14 | echo "Status of $foo" | 14 | echo "Status of $foo" |
15 | echo | 15 | echo |
16 | 16 | ||
17 | >>>>>>> 1.4 | ||
18 | echo "number of strings: " | 17 | echo "number of strings: " |
19 | strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l` | 18 | strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l` |
20 | echo $strs | 19 | echo $strs |
21 | echo "unfinished: " | 20 | echo "unfinished: " |
22 | unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l` | 21 | unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l` |
23 | echo $unfi", that means" `expr \( $strs - $unfi \) \* 100 / $strs`% "are done" | 22 | echo $unfi", that means" `expr \( $strs - $unfi \) \* 100 / $strs`% "are done" |
24 | echo "obsolete: " | 23 | echo "obsolete: " |
25 | obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l` | 24 | obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l` |
26 | echo $obso `expr \( $strs - $obso \) \* 100 / $strs`% | 25 | echo $obso `expr \( $strs - $obso \) \* 100 / $strs`% |
27 | 26 | ||
28 | #from here on we will only look at the core-parts. All numbers have to be 0% if | 27 | #from here on we will only look at the core-parts. All numbers have to be 0% if |
29 | #the specific language will be in the official release. | 28 | #the specific language will be in the official release. |
30 | echo | 29 | echo |
31 | echo "Core:" | 30 | echo "Core:" |
32 | core_today=`grep translation $arg/today.ts | grep type=\"unfinished\" | wc -l` | 31 | core_today=`grep translation $arg/today.ts | grep type=\"unfinished\" | wc -l` |
33 | core_todo=`grep translation $arg/todolist.ts | grep type=\"unfinished\" | wc -l` | 32 | core_todo=`grep translation $arg/todolist.ts | grep type=\"unfinished\" | wc -l` |
34 | core_addressbook=`grep translation $arg/addressbook.ts | grep type=\"unfinished\" | wc -l` | 33 | core_addressbook=`grep translation $arg/addressbook.ts | grep type=\"unfinished\" | wc -l` |
35 | core_datebook=`grep translation $arg/datebook.ts | grep type=\"unfinished\" | wc -l` | 34 | core_datebook=`grep translation $arg/datebook.ts | grep type=\"unfinished\" | wc -l` |
36 | libopie=`grep translation $arg/libopie.ts | grep type=\"unfinished\" | wc -l` | 35 | libopie=`grep translation $arg/libopie.ts | grep type=\"unfinished\" | wc -l` |
37 | _core_today=`grep translation $arg/today.ts | wc -l` | 36 | _core_today=`grep translation $arg/today.ts | wc -l` |
38 | _core_todo=`grep translation $arg/todolist.ts | wc -l` | 37 | _core_todo=`grep translation $arg/todolist.ts | wc -l` |
39 | _core_addressbook=`grep translation $arg/addressbook.ts | wc -l` | 38 | _core_addressbook=`grep translation $arg/addressbook.ts | wc -l` |
40 | _core_datebook=`grep translation $arg/datebook.ts | wc -l` | 39 | _core_datebook=`grep translation $arg/datebook.ts | wc -l` |
41 | _libopie=`grep translation $arg/libopie.ts | wc -l` | 40 | _libopie=`grep translation $arg/libopie.ts | wc -l` |