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