9 test -d "../.git" || errexit "Not a git repository"
10 test "$(git status --porcelain 2>/dev/null| grep '^[^ !?]' | wc -l)" == 0 || errexit "Index not clean: wont't commit"
13 test -z "$BINDIR" && errexit "Missing argument: BINDIR"
14 test -d "$BINDIR" || errexit "Not a directory: BINDIR '$BINDIR'"
15 echo "Updating .pot .po files from $BINDIR..."
16 for F in *.pot *.po; do
17 if [ -f "$BINDIR/$F" ]; then
20 errexit "Missing file $BINDIR/$F (touch CMakeLists.txt?)"
25 git commit -m 'Translation: updated .pot file'