gimp/po-script-fu/update.sh

38 lines
1.1 KiB
Bash
Raw Normal View History

2000-02-27 19:35:39 +00:00
#!/bin/sh
2001-09-27 15:34:48 +00:00
PACKAGE="gimp14-script-fu"
PATH="$PATH:.."
if [ "x$1" = "x--help" ]; then
echo Usage: ./update.sh langcode
echo --help display this help and exit
echo
echo Examples of use:
echo ./update.sh ----- just creates a new pot file from the source
echo ./update.sh da -- created new pot file and updated the da.po file
elif [ "x$1" = "x" ]; then
echo "Building the $PACKAGE.pot ..."
intltool-update --gettext-package $PACKAGE --pot \
&& ./script-fu-xgettext \
../plug-ins/script-fu/scripts/*.scm \
../plug-ins/gap/sel-to-anim-img.scm \
../plug-ins/webbrowser/web-browser.scm >> $PACKAGE.pot
else
2000-08-26 12:52:38 +00:00
echo "Building the $PACKAGE.pot ..."
intltool-update --gettext-package $PACKAGE --pot \
&& ./script-fu-xgettext \
../plug-ins/script-fu/scripts/*.scm \
../plug-ins/gap/sel-to-anim-img.scm \
../plug-ins/webbrowser/web-browser.scm >> $PACKAGE.pot
echo "Now merging $1.po with $PACKAGE.pot, and creating an updated $1.po ..."
mv $1.po $1.po.old && msgmerge $1.po.old $PACKAGE.pot -o $1.po && rm $1.po.old;
2000-10-27 09:30:50 +00:00
msgfmt --statistics $1.po -o /dev/null
fi;