#!/bin/sh # $Id$ # Get the mptopdf files out of the context zip. We distribute mptopdf # as a separate package, since it can be used with LaTeX. See # description in mptopdf.tlpsrc for details. tlbindir=`cd \`dirname $0\` && cd ../bin && pwd` PATH=$tlbindir:$PATH # tlpfiles # Get files of our mptopdf package, ignoring top-level directory # and ignoring the man pages in TL locations. files=`tlpfiles mptopdf | sed 's,[^/]*/,,' | grep -v doc/man` if test -z "$files"; then echo "$0: tlpfiles for mptopdf failed." >&2 exit 1 fi # We will extract them from the current context release. ctan=/home/ftp/mirror/rsync.tex.ac.uk/CTAN context_zip=/home/ftp/mirror/www.pragma-ade.nl/context/latest/cont-tmf.zip if unzip -tq $context_zip; then :; else echo "$0: unzip -t failed on:" >&2 ls -l $context_zip >&2 exit 1 fi # Working directory. workdir=/home/ftp/tex/mptopdf cd $workdir || exit 1 rm -rf $workdir.prev mkdir $workdir.prev mv * $workdir.prev unzip -q $context_zip $files ls -lt | head -3