#!/bin/rc #$Id: get_mk_install.rc,v 1.2 2012/01/13 18:03:39 tlaronde Exp $ # C) 2012 Thierry Laronde # # All rights reserved and no warranty! Run it at your risks! # fn read{ $1=`{awk '{print;exit}'} } # Stop if error # flag +e cat <LISEZ.MOI case * hget http://downloads.kergis.com/README >README } echo 'Hget''ting (silently) the bundle...' hget http://downloads.kergis.com/kertex_bundle.tar >kertex_bundle.tar test -s kertex_bundle.tar || { echo 'Getting the bundle failed...' exit 1 } echo 'Extracting the source chunks...' tar xf kertex_bundle.tar echo 'Extracting each source...' for (src in knuth etex bibtex ams adobe kertex_M kertex_T risk_comp) { tar xzf $src^_*.tar.gz rm $src^_*.tar.gz } echo 'Compiling kertex_M...' @{ cd kertex_M cd `{ape/psh ../risk_comp/sys/posix/sh/rkconfig} echo make 'SAVE_SPACE=YES' | ape/psh } echo 'Compiling kertex_T...' cd kertex_T cd `{ape/psh ../risk_comp/sys/posix/sh/rkconfig} echo make 'SAVE_SPACE=YES' | ape/psh echo -n 'Do you want to install kerTeX here now? [Yn] ' read ans switch ($ans) { case y Y yes YES case * echo make pkg | ape/psh echo 'I have built the package here: `{pwd}/PKG.tar' exit 0 } # We are installing... # echo make local_install | ape/psh echo -n 'Do you want to generate the dumps and the fonts now? [Yn] ' read ans switch ($ans) { case y Y yes YES . which_kertex $KERTEX_SHELL $KERTEX_BINDIR/adm/pkg_core install case * echo 'You can generate them later running: adm/pkg_core' } exit 0