Marko Schütz
release is named cont-tfm.zip. Since I plan to make a NetBSD package for ConTeXt, I would very much like to have some release information in the name of the .zip-file:
apart from this: I think that it is advisable to keep older ConTeXt versions around, so you can easily switch between them. I usually install them in /opt/context/<versionnumber> with the follwoing shell-skript (linux). It needs a working tex environment (generating the format) and the cont-tfm.zip in the current dir. It takes only a few seconds to install the new ConTeXt version and I never forget anything. See "requirements" below. On your system you might have to change it a little bit. ================================================== #!/bin/sh # pg@levana.de (Patrick Gundlach), 3.1.03 # installes ConTeXt to /opt/context/<versionnumber> # requirements: directory /opt/context must exist # cont-tfm.zip in current dir # you need a working tex environment (pg: texlive) that # has a variable TEXMFCONTEXT in its search path OPTDIR=/opt #OPTDIR=/tmp PROG=context PROGARCHIVE=cont-tmf.zip TMPDIR=/tmp/install-$PROG.$$ STARTDIR=$PWD cmd() { echo "$ $1" eval "$1" ret=$? if [ $ret -ne 0 ] ;then echo "* returns $ret -> stop" echo "* removing $TMPDIR" cd $STARTDIR rm -rf $TMPDIR exit 1 fi } cmd "mkdir $TMPDIR" cmd "cp $PROGARCHIVE $TMPDIR/" cmd "cd $TMPDIR" cmd "unzip $PROGARCHIVE" cmd "cd tex/context/base/" cmd "contextversion=`grep contextversion context.tex | sed \"s/.*{\(.*\)}/\1/\" `" cmd "echo $contextversion" #cmd "mkdir $OPTDIR/$PROG/" cmd "mkdir $OPTDIR/$PROG/$contextversion" cmd "mkdir $OPTDIR/$PROG/$contextversion/texmf" cmd "mkdir $OPTDIR/$PROG/$contextversion/texmf/web2c" cmd "mkdir $OPTDIR/$PROG/$contextversion/bin" cmd "cd $TMPDIR" cmd "cp -pR $TMPDIR/* $OPTDIR/$PROG/$contextversion/texmf" cmd "mv $OPTDIR/$PROG/$contextversion/texmf/$PROGARCHIVE $OPTDIR/$PROG/$contextversion" cmd "cd $OPTDIR/$PROG/$contextversion/bin/" cmd "ln `type -p pdfetex` cont-en" cmd "ln `type -p mpost` metafun" cmd "ln -s ../texmf/context/perltk/texexec.pl texexec" cmd "ln -s ../texmf/context/perltk/texutil.pl texutil" cmd "cd $OPTDIR/$PROG/$contextversion/texmf/context/perltk/" cmd "chmod +x *.pl" cmd "texhash $OPTDIR/$PROG/$contextversion/texmf" cmd "cd $OPTDIR/$PROG/$contextversion/texmf/web2c" cmd "TEXMFCONTEXT=$OPTDIR/$PROG/$contextversion/texmf" export TEXMFCONTEXT cmd "../../bin/texexec --make --alone en metafun" cmd "texhash $OPTDIR/$PROG/$contextversion/texmf" cmd "rm -rf $TMPDIR" cd $STARTDIR #Das wars ============================================================ Patrick