#!/bin/sh 

#  Create r38.tex

man=../manual
man2=../manual2

rm -f r38.tmp

cat $man2/prolog1.tex > r38.tmp
cat $man2/title.tex >> r38.tmp

# Original manual sections

cat $man/abstract.tex >> r38.tmp
cat $man/acknowl.tex >> r38.tmp
cat $man/intro.tex >> r38.tmp
cat $man/progstr.tex >> r38.tmp
cat $man/exprn.tex >> r38.tmp
cat $man/list.tex >> r38.tmp
cat $man/statemnt.tex >> r38.tmp
cat $man/command.tex >> r38.tmp
cat $man/oper.tex >> r38.tmp
cat $man/solve.tex >> r38.tmp
cat $man/oper2.tex >> r38.tmp
cat $man/structr.tex >> r38.tmp
cat $man/polyrat.tex >> r38.tmp
cat $man/subst.tex >> r38.tmp
cat $man/io.tex >> r38.tmp
cat $man/inter.tex >> r38.tmp
cat $man/matrix.tex >> r38.tmp
cat $man/proc.tex >> r38.tmp
cat $man/rememb.tex >> r38.tmp
cat $man2/user2.tex >> r38.tmp
# cat $man/user.tex >> r38.tmp
cat $man/symbolic.tex >> r38.tmp
cat $man/rlisp88.tex >> r38.tmp
cat $man/rlispref.tex >> r38.tmp
cat $man/hephys.tex >> r38.tmp
cat $man/util.tex >> r38.tmp
cat $man/maintain.tex >> r38.tmp

# Now part 2.

cat $man2/prolog2.tex >> r38.tmp
cat $man2/algint.tex >> r38.tmp
cat $man2/applysym.tex >> r38.tmp
cat $man2/arnum.tex >> r38.tmp
cat $man2/assist.tex >> r38.tmp
cat $man2/atensor.tex >> r38.tmp
cat $man2/avector.tex >> r38.tmp
cat $man2/boolean.tex >> r38.tmp
cat $man2/cali.tex >> r38.tmp
cat $man2/camal.tex >> r38.tmp
cat $man2/cgb.tex >> r38.tmp
cat $man2/changevr.tex >> r38.tmp
cat $man2/compact.tex >> r38.tmp
# cat $man2/contfr.tex >> r38.tmp   superceded by rataprx.
cat $man2/crack.tex >> r38.tmp
cat $man2/cvit.tex >> r38.tmp
cat $man2/defint.tex >> r38.tmp
cat $man2/desir.tex >> r38.tmp
cat $man2/dfpart.tex >> r38.tmp
cat $man2/dummy.tex >> r38.tmp
cat $man2/eds.tex >> r38.tmp
cat $man2/excalc.tex >> r38.tmp
cat $man2/fide.tex >> r38.tmp
cat $man2/fps.tex >> r38.tmp
#cat $man2/fps.tex >> r38.tmp
#cat $man2/fide.tex >> r38.tmp
cat $man2/gentran.tex >> r38.tmp
cat $man2/geometry.tex >> r38.tmp
cat $man2/gnuplot.tex >> r38.tmp
cat $man2/groebner.tex >> r38.tmp
cat $man2/ideals.tex >> r38.tmp
cat $man2/ineq.tex >> r38.tmp
cat $man2/invbase.tex >> r38.tmp
cat $man2/laplace.tex >> r38.tmp
cat $man2/lie.tex >> r38.tmp
cat $man2/limits.tex >> r38.tmp
cat $man2/linalg.tex >> r38.tmp
cat $man2/mathml.tex >> r38.tmp
cat $man2/modsr.tex >> r38.tmp
cat $man2/mrvlimit.tex >> r38.tmp
cat $man2/ncpoly.tex >> r38.tmp
cat $man2/normform.tex >> r38.tmp
cat $man2/numeric.tex >> r38.tmp
cat $man2/odesolve.tex >> r38.tmp
# cat $man2/odesolv1.tex >> r38.tmp
cat $man2/orthovec.tex >> r38.tmp
cat $man2/physop.tex >> r38.tmp
cat $man2/pm.tex >> r38.tmp
cat $man2/qsum.tex >> r38.tmp
cat $man2/randpoly.tex >> r38.tmp
cat $man2/rataprx.tex >> r38.tmp
cat $man2/reacteqn.tex >> r38.tmp
cat $man2/redlog.tex >> r38.tmp
cat $man2/reset.tex >> r38.tmp
cat $man2/residue.tex >> r38.tmp
cat $man2/rlfi.tex >> r38.tmp
cat $man2/roots.tex >> r38.tmp
cat $man2/rsolve.tex >> r38.tmp
#cat $man2/rsolve.tex >> r38.tmp
#cat $man2/roots.tex >> r38.tmp
cat $man2/scope.tex >> r38.tmp
cat $man2/sets.tex >> r38.tmp
cat $man2/sparse.tex >> r38.tmp
cat $man2/spde.tex >> r38.tmp
cat $man2/specfn.tex >> r38.tmp
cat $man2/specfn2.tex >> r38.tmp
cat $man2/sum.tex >> r38.tmp
cat $man2/susy2.tex >> r38.tmp
cat $man2/symmetry.tex >> r38.tmp
cat $man2/taylor.tex >> r38.tmp
cat $man2/tps.tex >> r38.tmp
cat $man2/tri.tex >> r38.tmp
cat $man2/trigsimp.tex >> r38.tmp
cat $man2/wu.tex >> r38.tmp
cat $man2/xcolor.tex >> r38.tmp
cat $man2/xideal.tex >> r38.tmp
#cat $man2/xcolor.tex >> r38.tmp
#cat $man2/xideal.tex >> r38.tmp
#cat $man2/wu.tex >> r38.tmp
cat $man2/zeilberg.tex >> r38.tmp
cat $man2/ztrans.tex >> r38.tmp

cat $man2/sl.tex >> r38.tmp

cat $man2/tail1.tex >> r38.tmp

cat $man/appenda.tex >> r38.tmp

cat $man2/tail2.tex >> r38.tmp

# expand r38.tmp > ,tmp
# rm r38.tmp
# sed 's/  *$//g' ,tmp > r38.tmp
# rm ,tmp

perl conv.pl

rm r38.tmp

