diff options
author | Norbert Preining <preining@logic.at> | 2009-09-02 00:27:14 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-09-02 00:27:14 +0000 |
commit | e44648c105aa16ec4ba4e96ef0a9b989e48e479f (patch) | |
tree | 3a1e2ee7739dbfa85c5b04bd2a1e27b18c9fb36f /Master | |
parent | 9777f79c33a6ed56eae05e50f335d61d334e7e30 (diff) |
update .po and .pot only if there are real changes
git-svn-id: svn://tug.org/texlive/trunk@14991 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-messages | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/tlpkg/bin/tl-update-messages b/Master/tlpkg/bin/tl-update-messages index 33e1d6217da..7cb05beeb0b 100755 --- a/Master/tlpkg/bin/tl-update-messages +++ b/Master/tlpkg/bin/tl-update-messages @@ -11,6 +11,7 @@ Master=`cd $mydir/../.. && pwd` transdir=$Master/tlpkg/translations cd $Master || exit 1 +cp $transdir/messages.pot $transdir/messages.prev xgettext -o tlpkg/translations/messages.pot -L Perl \ --copyright-holder="TeX Live Team" \ --package-name="TeX Live" \ @@ -22,6 +23,20 @@ xgettext -o tlpkg/translations/messages.pot -L Perl \ texmf/scripts/texlive/tlmgrgui/*.pl cd $transdir || exit 1 + +tmpa=`mktemp` +tmpb=`mktemp` +sed /POT-Creation-Date:/d <messages.prev >$tmpa +sed /POT-Creation-Date:/d <messages.pot >$tmpb +if cmp -s $tmpa $tmpb ; then + echo "$0: no msg changes." + mv messages.prev messages.pot + rm -f $tmpa $tmpb + exit 0 +fi +rm -f $tmpa $tmpb + +# here we come only if there have been changes for i in *.po ; do printf "$i " msgmerge --backup=none --update $i messages.pot |