diff options
-rwxr-xr-x | Master/tlpkg/libexec/mptopdf-extract | 11 |
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 |