#!/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
# 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'