#!/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. # Get files of our mptopdf package, ignoring top-level directory. # And ignoring the man page until it is present in ConTeXt. files=`tlpfiles mptopdf | sed 's,[^/]*/,,' | grep -v doc/man` if test -z "$files"; then echo "$0: failed to get files for mptopdf." >&2 exit 1 fi # Add man page in cont-tmf location: files="$files doc/context/scripts/mkii/mptopdf.man" # Add w32 .exe stub too: files="$files scripts/context/stubs/mswin/mptopdf.exe" # 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/beta/cont-tmf.zip if test ! -s $context_zip; then echo "$0: no context zip:" >&2 ls -l $context_zip >&2 exit 1 fi # Working directory. workdir=/home/ftp/tex/mptopdf cd $workdir || exit 1 rm -rf * unzip $context_zip $files