#!/bin/sh # Compile teTeX for Slackware: CWD=`pwd` export fontcache=/var/cache/fonts export vartexfonts=$fontcache mkdir -p /var/cache/fonts/pk /var/cache/fonts/source /var/cache/fonts/tfm chmod 1777 /var/cache/fonts /var/cache/fonts/pk \ /var/cache/fonts/source /var/cache/fonts/tfm mkdir -p /usr/share/texmf ( cd /usr/share/texmf ; umask 000 ; tar xzvf $CWD/teTeX-texmf-0.9-990309.tar.gz ) ( cd /usr/share/texmf ; chown -R root.root * ) tar xzvf teTeX-src-0.9-990309.tar.gz cd teTeX-0.9 ./configure --prefix=/usr/share/texmf \ --datadir=/usr/share \ --disable-multiplatform \ --with-ps=gs \ --enable-ipc \ --with-etex make all vartexfonts=/var/cache/fonts make install strip if echo $PATH | fgrep /usr/share/texmf/bin ; then echo good > /dev/null else PATH=$PATH:/usr/share/texmf/bin fi # ... make links to all binaries in /usr/bin for the final package. # Let's start with these defaults: texconfig confall texconfig dvips paper letter texconfig xdvi us # These *might* be useful... texconfig mode ljfour #texconfig xdvi a4 texconfig dvips mode ljfour #texconfig dvips paper A4 texconfig dvips printcmd - texconfig dvips add bjc600 texconfig dvips add stcolor texconfig dvips add deskjet texconfig dvips add ljet4 texconfig dvips -P bjc600 mode canonbjc texconfig dvips -P stcolor mode epstylus texconfig dvips -P deskjet mode deskjet texconfig dvips -P ljet4 mode ljfour texconfig font options appendonlydir varfonts texconfig font ro texconfig rehash # Now, package the /usr/share/texmf/ tree. The tetex.tgz file will need # an installation script to add /usr/share/texmf/bin to the $PATH and # /usr/share/texmf/man to the $MANPATH. Package tex_doc.tgz and # tex_bin.tgz seperately. # Exactly *how* to package it is left as an exercise for the reader. :) # Hint: 'man makepkg'