#!/bin/sh -x
# $Id: regen.sh 5360 2011-02-22 04:28:19Z verm $

find ../src -type f|sed "s|^../src/||" |egrep "\\.h$|\\.cpp$" |sort > files
xgettext --files-from files  --directory=../src --output aegisub.pot --c++ -k_
rm files
for i in `cat LINGUAS`; do msgmerge -N $i.po aegisub.pot > tmp; mv tmp $i.po; done
