author | kergoth <kergoth> | 2003-08-09 15:23:37 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-08-09 15:23:37 (UTC) |
commit | 0799b67a825c8ec00e57a63e5a5d55fd26bb2337 (patch) (side-by-side diff) | |
tree | 418a6198021568b1b6dbe4178a938e6fe975c2c8 /i18n/status_individual.sh | |
parent | b97ae670792c4b9e35fbe89f1e40d59786afdabb (diff) | |
download | opie-0799b67a825c8ec00e57a63e5a5d55fd26bb2337.zip opie-0799b67a825c8ec00e57a63e5a5d55fd26bb2337.tar.gz opie-0799b67a825c8ec00e57a63e5a5d55fd26bb2337.tar.bz2 |
Merge from BRANCH_1_0.
-rwxr-xr-x | i18n/status_individual.sh | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/i18n/status_individual.sh b/i18n/status_individual.sh index 349767d..0cbaae3 100755 --- a/i18n/status_individual.sh +++ b/i18n/status_individual.sh @@ -9,14 +9,32 @@ if [ "x${arg}x" = "xx" ]; then exit fi if [ "${arg}" = "todo" ]; then if [ "x$2"x = "xx" ]; then echo "missing second argument" exit fi - for i in $2/*.ts; do echo $i - `grep translation "$i" | grep type=\"unfinished\" | wc -l` | grep -v ' 0' ; done + for i in $2/*.ts; do + echo $i - `grep translation "$i" | grep type=\"unfinished\" | wc -l` | grep -v ' 0' ; + done exit fi +if [ "${arg}" = "overview" ]; then + if [ "x$2"x = "xx" ]; then + echo "missing second argument" + exit + fi + + strs=`find $2 -path './unmaintained' -prune -o -path './en' -prune -o -path './xx' -prune -o -name "*.ts" -exec grep 'translation' {} \; | wc -l` + unfi=`find $2 -path './unmaintained' -prune -o -path './en' -prune -o -path './xx' -prune -o -name "*.ts" -exec grep 'type=\"unfinished\"' {} \; | wc -l` + obso=`find $2 -path './unmaintained' -prune -o -path './en' -prune -o -path './xx' -prune -o -name "*.ts" -exec grep 'type=\"obsolete\"' {} \; | wc -l` + printf "\n%12s %5s\n" "Total:" ${strs} + printf "%12s %5s %s\n" "Unfinished:" ${unfi} "[`expr \( ${strs} - ${unfi} \) \* 100 / ${strs}`% done]" + printf "%12s %5s %s\n\n" "Obsolete:" ${obso} "[`expr ${obso} \* 100 / ${strs}`%]" + exit +fi + + for i in $1/*.ts; do echo $i - `grep translation "$i" | grep type=\"unfinished\" | wc -l` ; done |