Use msgmerge to regenerate all *.po files against the new mc.pot with the

line numbers.
This commit is contained in:
Pavel Roskin 2005-08-02 04:36:33 +00:00
parent e132a00192
commit 82fcec6544

View File

@ -13,6 +13,7 @@ DOMAIN=mc
COPYRIGHT_HOLDER="Free Software Foundation, Inc." COPYRIGHT_HOLDER="Free Software Foundation, Inc."
XGETTEXT_OPTIONS="--keyword=_ --keyword=N_ --keyword=gettext_ui" XGETTEXT_OPTIONS="--keyword=_ --keyword=N_ --keyword=gettext_ui"
XGETTEXT=xgettext XGETTEXT=xgettext
MSGMERGE=msgmerge
files=`find . -name '*.[ch]' | xargs $XGETTEXT $XGETTEXT_OPTIONS --output=- | \ files=`find . -name '*.[ch]' | xargs $XGETTEXT $XGETTEXT_OPTIONS --output=- | \
sed -ne '/^#:/{s/#://;s/:[0-9]*/\n/g;s/ //g;p;}' | sort -u | grep -v 'regex.c'` sed -ne '/^#:/{s/#://;s/:[0-9]*/\n/g;s/ //g;p;}' | sort -u | grep -v 'regex.c'`
@ -22,7 +23,7 @@ $XGETTEXT --default-domain=$DOMAIN --directory=. \
--copyright-holder="$COPYRIGHT_HOLDER" --output=po/mc.pot.new $files --copyright-holder="$COPYRIGHT_HOLDER" --output=po/mc.pot.new $files
for file in po/*.po; do for file in po/*.po; do
cp -f $file $file.new $MSGMERGE --output=$file.new $file po/mc.pot.new
done done
# Location of the snapshot directory # Location of the snapshot directory