author | cniehaus <cniehaus> | 2002-12-13 21:30:06 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-12-13 21:30:06 (UTC) |
commit | d09bfeb9e60ec5bc86e0143029c08e431c733f60 (patch) (unidiff) | |
tree | 65b959191e9d43e251f010999e7310a291aca44d /i18n/status.sh | |
parent | 00dc21e103b2b36954b42bf90b08f4f6739814a3 (diff) | |
download | opie-d09bfeb9e60ec5bc86e0143029c08e431c733f60.zip opie-d09bfeb9e60ec5bc86e0143029c08e431c733f60.tar.gz opie-d09bfeb9e60ec5bc86e0143029c08e431c733f60.tar.bz2 |
Thanks to Chri Fishbach now this script is a lot better. Thanks
-rwxr-xr-x | i18n/status.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/i18n/status.sh b/i18n/status.sh index 315f9dd..5cde18e 100755 --- a/i18n/status.sh +++ b/i18n/status.sh | |||
@@ -1,8 +1,15 @@ | |||
1 | #/bin/sh | 1 | #/bin/sh |
2 | arg=$1 | 2 | arg=$1 |
3 | if [ x${arg}x = xx ] | ||
4 | then | ||
5 | arg=. | ||
6 | fi | ||
3 | echo "number of strings: " | 7 | echo "number of strings: " |
4 | grep translation $arg/*.ts | wc -l | 8 | strs=`find $arg -name "*.ts" -exec cat {} \; | grep translation | wc -l` |
9 | echo $strs | ||
5 | echo "unfinished: " | 10 | echo "unfinished: " |
6 | grep translation $arg/*.ts | grep type=\"unfinished\" | wc -l | 11 | unfi=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"unfinished\" | wc -l` |
12 | echo $unfi `expr \( $strs - $unfi \) \* 100 / $strs`% | ||
7 | echo "obsolete: " | 13 | echo "obsolete: " |
8 | grep translation $arg/*.ts | grep type=\"obsolete\" | wc -l | 14 | obso=`find $arg -name "*.ts" -exec cat {} \; | grep translation | grep type=\"obsolete\" | wc -l` |
15 | echo $obso `expr \( $strs - $obso \) \* 100 / $strs`% | ||