author | simon <simon> | 2002-12-17 13:45:19 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-17 13:45:19 (UTC) |
commit | 1e0289c2367b411fe9c4c34aff11988dc77c0f54 (patch) (unidiff) | |
tree | 5c01b69f905629a1b579148a684c2f6d4db48b9c /i18n/status.sh | |
parent | 49a8bda7be0e3f3a476f664f43753d85448cb483 (diff) | |
download | opie-1e0289c2367b411fe9c4c34aff11988dc77c0f54.zip opie-1e0289c2367b411fe9c4c34aff11988dc77c0f54.tar.gz opie-1e0289c2367b411fe9c4c34aff11988dc77c0f54.tar.bz2 |
- update by Carsten
-rwxr-xr-x | i18n/status.sh | 8 |
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,8 +1,14 @@ | |||
1 | #/bin/sh | 1 | #/bin/sh |
2 | arg=$1 | 2 | arg=$1 |
3 | foo=$1 | ||
3 | if [ x${arg}x = xx ] | 4 | if [ x${arg}x = xx ] |
4 | then | 5 | then |
5 | arg=. | 6 | arg=. |
7 | foo="all" | ||
6 | fi | 8 | fi |
9 | |||
10 | echo "Status of $foo" | ||
11 | echo | ||
12 | |||
7 | echo "number of strings: " | 13 | echo "number of strings: " |
8 | strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l` | 14 | strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l` |
@@ -10,5 +16,5 @@ echo $strs | |||
10 | echo "unfinished: " | 16 | echo "unfinished: " |
11 | unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l` | 17 | unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l` |
12 | echo $unfi `expr \( $strs - $unfi \) \* 100 / $strs`% | 18 | echo $unfi", that means" `expr \( $strs - $unfi \) \* 100 / $strs`% "are done" |
13 | echo "obsolete: " | 19 | echo "obsolete: " |
14 | obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l` | 20 | obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l` |