mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
2000-05-07 Kenneth Christiansen <kenneth@gnome.dk>
* update.sh: Updated update.sh to support merging, --help, easier porting to new packages, et al
This commit is contained in:
parent
49bdb76186
commit
c4e33ce31a
@ -1,3 +1,9 @@
|
||||
2000-05-07 Kenneth Christiansen <kenneth@gnome.dk>
|
||||
|
||||
* update.sh: Updated update.sh to support
|
||||
merging, --help, easier porting to new
|
||||
packages, et al
|
||||
|
||||
2000-05-07 Valek Filippov <frob@df.ru>
|
||||
|
||||
* ru.po: updated russian translation.
|
||||
|
39
po/update.sh
39
po/update.sh
@ -1,8 +1,39 @@
|
||||
#!/bin/sh
|
||||
|
||||
xgettext --default-domain=mc --directory=.. \
|
||||
PACKAGE="mc"
|
||||
|
||||
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 \
|
||||
&& test ! -f mc.po \
|
||||
|| ( rm -f ./mc.pot \
|
||||
&& mv mc.po ./mc.pot )
|
||||
&& test ! -f $PACKAGE.po \
|
||||
|| ( rm -f ./$PACKAGE.pot \
|
||||
&& mv $PACKAGE.po ./$PACKAGE.pot );
|
||||
|
||||
else
|
||||
|
||||
xgettext --default-domain=$PACKAGE --directory=.. \
|
||||
--add-comments --keyword=_ --keyword=N_ \
|
||||
--files-from=./POTFILES.in \
|
||||
&& test ! -f $PACKAGE.po \
|
||||
|| ( rm -f ./PACKAGE.pot \
|
||||
&& mv $PACKAGE.po ./$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;
|
||||
|
||||
fi;
|
||||
|
Loading…
Reference in New Issue
Block a user