~ubuntu-branches/ubuntu/saucy/gaupol/saucy-proposed

« back to all changes in this revision

Viewing changes to tools/update-translations

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2013-01-06 17:10:10 UTC
  • mfrom: (1.2.8)
  • mto: (10.2.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: package-import@ubuntu.com-20130106171010-kmlq0sy324jlp9zz
Tags: upstream-0.21
Import upstream version 0.21

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
 
# Update the PO template file and all existing PO-files with new strings.
 
3
# Update the pot-file and all existing po-files with new strings.
4
4
# Requires gettext and intltool.
5
5
 
6
6
DIRNAME=$(dirname "$0")
8
8
 
9
9
echo "Checking for missing source files..."
10
10
intltool-update -m &> /dev/null
11
 
[ -f missing ] && exit 1
 
11
[ -f missing ] && echo "Check po/missing!" && exit 1
12
12
 
13
13
echo "Updating gaupol.pot..."
14
 
intltool-update -p -g gaupol
 
14
intltool-update -p -g gaupol -x || exit 1
15
15
 
16
16
for FNAME in *.po; do
17
17
    echo "Updating $FNAME..."