summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-11-27 23:24:56 +0000
committerKarl Berry <karl@freefriends.org>2018-11-27 23:24:56 +0000
commit55961f8f90b77ac6e2f999b21acef86d2c1018cf (patch)
treef9bb2bd183118b433a16b103f6ccc1c51884d4fb /Master
parentba6c8067b06aab22748d17dd915ace7b659fe334 (diff)
(tmpfile): make temp shortdesc.pl absolute so it
can be removed. git-svn-id: svn://tug.org/texlive/trunk@49262 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-messages13
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