summaryrefslogtreecommitdiff
path: root/Master/tlpkg/libexec/mptopdf-extract
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-07-06 20:37:41 +0000
committerKarl Berry <karl@freefriends.org>2016-07-06 20:37:41 +0000
commit7b810d02229f8858edfc0ad3dcb31d486f7cac7f (patch)
treec9c5f303ba545b8dc2d292f671cd60bd76c88e74 /Master/tlpkg/libexec/mptopdf-extract
parent257e240d1440f847d71bb47619bdc83966a62b5c (diff)
do an unzip -t
git-svn-id: svn://tug.org/texlive/trunk@41644 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/libexec/mptopdf-extract')
-rwxr-xr-xMaster/tlpkg/libexec/mptopdf-extract11
1 files changed, 5 insertions, 6 deletions
diff --git a/Master/tlpkg/libexec/mptopdf-extract b/Master/tlpkg/libexec/mptopdf-extract
index ea27181b167..2c5e4a26909 100755
--- a/Master/tlpkg/libexec/mptopdf-extract
+++ b/Master/tlpkg/libexec/mptopdf-extract
@@ -17,11 +17,9 @@ fi
# We will extract them from the current context release.
ctan=/home/ftp/mirror/rsync.tex.ac.uk/CTAN
-#context_zip=$ctan/macros/context/current/cont-tmf.zip
-# eventually ...
context_zip=/home/ftp/mirror/www.pragma-ade.com/context/current/cont-tmf.zip
-if test ! -s $context_zip; then
- echo "$0: no context zip:" >&2
+if unzip -tq $context_zip; then :; else
+ echo "$0: unzip -t failed on:" >&2
ls -l $context_zip >&2
exit 1
fi
@@ -29,5 +27,6 @@ fi
# Working directory.
workdir=/home/ftp/tex/mptopdf
cd $workdir || exit 1
-rm -rf *
-unzip $context_zip $files
+mv * $workdir.prev
+unzip -q $context_zip $files
+ls -lt | head -3