qa: Remove dead code
[quassel.git] / scripts / tx-sync.sh
1 #!/usr/bin/env bash
2 set -u
3 quasselsrc=/usr/src/quassel
4 localpobranch=i18n-tx-sync
5 remote=origin
6 branch=master
7
8 pushd "$quasselsrc" && ( 
9   currb=$(git name-rev --name-only HEAD)
10   git checkout -q $localpobranch && (
11     git pull -q --no-edit $remote $branch &&
12     pushd po/ &&
13     ./update-pot.sh &&
14     git commit -qm 'Update quassel.pot' ${quasselsrc}/po/quassel.pot
15     popd &&
16     "$quasselsrc"/po/pull-from-transifex.sh -f &&
17     git push -q
18   ); git checkout -q "$currb"
19 ); popd