diff options
-rwxr-xr-x | Master/tlpkg/bin/tl-update-messages | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/tlpkg/bin/tl-update-messages b/Master/tlpkg/bin/tl-update-messages index c656b84be1c..9ef038e99ec 100755 --- a/Master/tlpkg/bin/tl-update-messages +++ b/Master/tlpkg/bin/tl-update-messages @@ -19,13 +19,17 @@ mydir=`cd \`dirname $0\` && /bin/pwd` Master=`cd $mydir/../.. && /bin/pwd` transdir=$Master/tlpkg/translations -tmpfile=tlpkg/translations/shortdesc.pl +tmpfile=$Master/tlpkg/translations/shortdesc.pl cd $Master || exit 1 cp $transdir/messages.pot $transdir/messages.prev sed -n 's/^shortdesc \(.*\)/__("\1");/p' \ - tlpkg/tlpsrc/scheme-*.tlpsrc tlpkg/tlpsrc/collection-*.tlpsrc >$tmpfile + tlpkg/tlpsrc/scheme-*.tlpsrc \ + tlpkg/tlpsrc/collection-*.tlpsrc \ + >$tmpfile +# cat install-tl >>$tmpfile +# # rely on file extensions for source language identification xgettext -o tlpkg/translations/messages.pot \ --copyright-holder="TeX Live Team" \ @@ -43,12 +47,11 @@ xgettext -o tlpkg/translations/messages.pot \ $tmpfile 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 +if cmp -s $tmpa $tmpb; then echo "$0: no msg changes." mv messages.prev messages.pot rm -f $tmpa $tmpb @@ -57,7 +60,7 @@ fi rm -f $tmpfile $tmpa $tmpb messages.prev # here we come only if there have been changes -for i in *.po ; do +for i in *.po; do printf "$i " msgmerge --backup=none --no-fuzzy-matching --update $i messages.pot done |