2000-02-28 03:35:39 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2000-05-14 05:37:03 +08:00
|
|
|
PACKAGE="gimp-script-fu"
|
|
|
|
|
|
|
|
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 ..."
|
|
|
|
|
|
|
|
xgettext --default-domain=$PACKAGE --directory=.. \
|
|
|
|
--add-comments --keyword=_ --keyword=N_ \
|
|
|
|
--files-from=./POTFILES.in \
|
|
|
|
&& ./script-fu-xgettext \
|
|
|
|
../plug-ins/script-fu/scripts/*.scm \
|
|
|
|
../plug-ins/gap/sel-to-anim-img.scm \
|
|
|
|
../plug-ins/webbrowser/web-browser.scm \
|
|
|
|
>> gimp-script-fu.po \
|
|
|
|
&& test ! -f $PACKAGE.po \
|
|
|
|
|| ( rm -f ./$PACKAGE.pot \
|
|
|
|
&& mv $PACKAGE.po ./$PACKAGE.pot );
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
xgettext --default-domain=$PACKAGE --directory=.. \
|
2000-02-28 03:35:39 +08:00
|
|
|
--add-comments --keyword=_ --keyword=N_ \
|
|
|
|
--files-from=./POTFILES.in \
|
2000-03-24 22:54:59 +08:00
|
|
|
&& ./script-fu-xgettext \
|
|
|
|
../plug-ins/script-fu/scripts/*.scm \
|
|
|
|
../plug-ins/gap/sel-to-anim-img.scm \
|
2000-03-29 05:06:39 +08:00
|
|
|
../plug-ins/webbrowser/web-browser.scm \
|
2000-03-24 22:54:59 +08:00
|
|
|
>> gimp-script-fu.po \
|
2000-05-14 05:37:03 +08:00
|
|
|
&& test ! -f $PACKAGE.po \
|
|
|
|
|| ( rm -f ./$PACKAGE.pot \
|
|
|
|
&& mv $PACKAGE.po ./$PACKAGE.pot );
|
|
|
|
|
|
|
|
echo "Building the $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;
|
|
|
|
|
|
|
|
msgfmt --statistics $1.po
|
|
|
|
|
|
|
|
fi;
|