| 1 | #!/bin/bash |
| 2 | |
| 3 | qtPath=/opt/qt5-static/5.3/linuxg64 |
| 4 | qtPath=/opt/qtstatic/5.3/linuxg64 |
| 5 | qtBin=$qtPath/bin |
| 6 | |
| 7 | qtlupdate=lupdate |
| 8 | qtlrelease=lrelease |
| 9 | qtlconvert=lconvert |
| 10 | |
| 11 | $qtlupdate $1 |
| 12 | |
| 13 | tslist=`ls po/*.ts` |
| 14 | for ts in $tslist |
| 15 | do |
| 16 | rm $ts |
| 17 | $qtlconvert -i ${ts%.*}.po -if po -o $ts -of ts |
| 18 | done |
| 19 | |
| 20 | $qtlrelease $1 |
| 21 | |
| 22 |