File: tx-sync.sh

package info (click to toggle)
quassel 1%3A0.14.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,628 kB
  • sloc: cpp: 88,730; perl: 15,837; sql: 1,295; xml: 263; sh: 231; makefile: 16
file content (19 lines) | stat: -rwxr-xr-x 486 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
set -u
quasselsrc=/usr/src/quassel
localpobranch=i18n-tx-sync
remote=origin
branch=master

pushd "$quasselsrc" && ( 
  currb=$(git name-rev --name-only HEAD)
  git checkout -q $localpobranch && (
    git pull -q --no-edit $remote $branch &&
    pushd po/ &&
    ./update-pot.sh &&
    git commit -qm 'Update quassel.pot' ${quasselsrc}/po/quassel.pot
    popd &&
    "$quasselsrc"/po/pull-from-transifex.sh -f &&
    git push -q
  ); git checkout -q "$currb"
); popd