author | cniehaus <cniehaus> | 2002-12-20 17:16:32 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-12-20 17:16:32 (UTC) |
commit | fdcb16419ebc646875a1c2cc4e9f623af502a31d (patch) (side-by-side diff) | |
tree | 1aa8f60e413f5cd40a7492997c13952309720bdf | |
parent | b7f0fe02a2b5b8d8adbcad338eff0cdb173364ad (diff) | |
download | opie-fdcb16419ebc646875a1c2cc4e9f623af502a31d.zip opie-fdcb16419ebc646875a1c2cc4e9f623af502a31d.tar.gz opie-fdcb16419ebc646875a1c2cc4e9f623af502a31d.tar.bz2 |
Thanks to Chris /me learned another sh-thing :)
-rwxr-xr-x | i18n/status.sh | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/i18n/status.sh b/i18n/status.sh index b669bf2..125d8a1 100755 --- a/i18n/status.sh +++ b/i18n/status.sh @@ -9,5 +9,2 @@ fi -echo "Status of $foo" -echo - #general figures @@ -26,21 +23,24 @@ echo $obso `expr \( $strs - $obso \) \* 100 / $strs`% -#from here on we will only look at the core-parts. All numbers have to be 0% if -#the specific language will be in the official release. -echo -echo "Core:" -core_today=`grep translation $arg/today.ts | grep type=\"unfinished\" | wc -l` -core_todo=`grep translation $arg/todolist.ts | grep type=\"unfinished\" | wc -l` -core_addressbook=`grep translation $arg/addressbook.ts | grep type=\"unfinished\" | wc -l` -core_datebook=`grep translation $arg/datebook.ts | grep type=\"unfinished\" | wc -l` -libopie=`grep translation $arg/libopie.ts | grep type=\"unfinished\" | wc -l` -_core_today=`grep translation $arg/today.ts | wc -l` -_core_todo=`grep translation $arg/todolist.ts | wc -l` -_core_addressbook=`grep translation $arg/addressbook.ts | wc -l` -_core_datebook=`grep translation $arg/datebook.ts | wc -l` -_libopie=`grep translation $arg/libopie.ts | wc -l` +if [ "foo" = "all" ] +then + #from here on we will only look at the core-parts. All numbers have to be 0% if + #the specific language will be in the official release. + echo + echo "Core:" + core_today=`grep translation $arg/today.ts | grep type=\"unfinished\" | wc -l` + core_todo=`grep translation $arg/todolist.ts | grep type=\"unfinished\" | wc -l` + core_addressbook=`grep translation $arg/addressbook.ts | grep type=\"unfinished\" | wc -l` + core_datebook=`grep translation $arg/datebook.ts | grep type=\"unfinished\" | wc -l` + libopie=`grep translation $arg/libopie.ts | grep type=\"unfinished\" | wc -l` + _core_today=`grep translation $arg/today.ts | wc -l` + _core_todo=`grep translation $arg/todolist.ts | wc -l` + _core_addressbook=`grep translation $arg/addressbook.ts | wc -l` + _core_datebook=`grep translation $arg/datebook.ts | wc -l` + _libopie=`grep translation $arg/libopie.ts | wc -l` -echo "Today:" $core_today", that means" `expr $core_today \* 100 / $_core_today`% "needs to be done" -echo "Datebook:" $core_datebook", that means" `expr $core_datebook \* 100 / $_core_datebook`% "needs to be done" -echo "Todo:" $core_todo", that means" `expr $core_todo \* 100 / $_core_todo`% "needs to be done" -echo "Addressbook:" $core_addressbook", that means" `expr $core_addressbook \* 100 / $_core_addressbook`% "needs to be done" -echo "libopie:" $libopie", that means" `expr $libopie \* 100 / $_libopie`% "needs to be done" + echo "Today:" $core_today", that means" `expr $core_today \* 100 / $_core_today`% "needs to be done" + echo "Datebook:" $core_datebook", that means" `expr $core_datebook \* 100 / $_core_datebook`% "needs to be done" + echo "Todo:" $core_todo", that means" `expr $core_todo \* 100 / $_core_todo`% "needs to be done" + echo "Addressbook:" $core_addressbook", that means" `expr $core_addressbook \* 100 / $_core_addressbook`% "needs to be done" + echo "libopie:" $libopie", that means" `expr $libopie \* 100 / $_libopie`% "needs to be done" +fi |