| 1 | pushd ~/scm/trac/trac-0.12dev |
|---|
| 2 | svn up |
|---|
| 3 | python setup.py extract_messages |
|---|
| 4 | python setup.py update_catalog -l pt_BR |
|---|
| 5 | make check compile locale=pt_BR |
|---|
| 6 | |
|---|
| 7 | make stats-pt_BR 1>x 2>&1 |
|---|
| 8 | make stats-pot 1>y 2>&1 |
|---|
| 9 | TRAD=`cat x | cut -f 2 -d ' '` |
|---|
| 10 | ORIG=`cat y | grep stats | cut -f 5 -d ' '` |
|---|
| 11 | PORC=`echo "scale=2; ($TRAD / $ORIG) * 100" | bc | sed 's/\.\([0-9]*\)//'` |
|---|
| 12 | echo "Commit Message:" |
|---|
| 13 | read MSG |
|---|
| 14 | if ! [ "$MSG"x == ""x ]; then |
|---|
| 15 | #echo "l10n/pt_BR: $MSG ($PORC%)" |
|---|
| 16 | echo "Execute:" |
|---|
| 17 | echo "svn commit -m \"l10n/pt_BR: $MSG ($PORC%)\" trac/locale/pt_BR/LC_MESSAGES/messages.po" |
|---|
| 18 | else |
|---|
| 19 | echo "Re-execute e digite uma mensagem de commit" |
|---|
| 20 | fi |
|---|