1 #!/bin/sh 2 3 find imiptools imipweb -type f -name '*.py' | xargs xgettext -d imip-agent --no-location 4 5 sed "s/SOME DESCRIPTIVE TITLE/Translations for imip-agent/" imip-agent.po \ 6 | sed "s/YEAR THE PACKAGE'S COPYRIGHT HOLDER/2015 Paul Boddie <paul@boddie.org.uk>/" \ 7 | sed "s/FIRST AUTHOR <EMAIL@ADDRESS>, YEAR/Paul Boddie <paul@boddie.org.uk>, 2015/" \ 8 | sed "s/PACKAGE VERSION/`hg id | cut -d ' ' -f 1`/" \ 9 | sed "s/PACKAGE/imip-agent/" \ 10 > imip-agent.pot 11 12 for FILENAME in messages/*.po ; do 13 msgmerge --update "$FILENAME" imip-agent.pot 14 done