set -e
rm -f templates/*.pot
+
+# Extract strings from all the Perl code
+xgettext --keyword=_ --from-code=utf-8 -o templates/messages.pot -L Perl *.{pm,pl}
+
+# ...from the database
+perl ../intl/make-season-pot.pl > templates/seasons.pot
+
+# ...and from all the TT templates
for FILE in templates/*.tmpl; do
echo $FILE...
perl -I../intl ../intl/make-pot.pl $FILE | msguniq > $FILE.pot