#!/bin/sh
#
# Run this after initex has successfully compiled
#
# Look at the destination directory before running this
# and make sure that it is what you want
#
cp ./ctex/tex.pool /usr/local/lib/tex/tex.pool
TEXINPUTS=/usr/local/lib/tex/inputs; export TEXINPUTS
chmod 666 $TEXINPUTS/*.tex
chmod 666 $TEXINPUTS/*.sty
cp ./TeXmacros/*.tex $TEXINPUTS/.
cp ./TeXmacros/*.sty $TEXINPUTS/.
cp ./LaTeX/*.tex $TEXINPUTS/.
cp ./LaTeX/LaTeXmacros/*.tex $TEXINPUTS/.
cp ./LaTeX/LaTeXmacros/*.sty $TEXINPUTS/.
cp ./LaTeX/LaTeXslitex/*.tex $TEXINPUTS/.
cp ./LaTeX/LaTeXslitex/*.sty $TEXINPUTS/.
cp ../amsfonts/*.tex $TEXINPUTS/.
cp ../amsfonts/*.def $TEXINPUTS/.
chmod 444 $TEXINPUTS/*.tex
chmod 444 $TEXINPUTS/*.sty
chmod 444 $TEXINPUTS/*.def

