#
# This is file `tbprepare',
# generated on 2002/10/10 at 04:43 with the docstrip utility.
#
# The original source files were:
#
# tbookshl.dtx  (with options: `tbprepare')
#
#======================================================================
#    tbprepare - Part of the tbook Program
#    Copyright 2002 Torsten Bronger <bronger@users.sourceforge.net>
#
#  This program may be distributed and/or modified under the
#  conditions of the LaTeX Project Public License, either version 1.2
#  of this license or (at your option) any later version.
#  The latest version of this license is in
#    http://www.latex-project.org/lppl.txt
#  and version 1.2 or later is part of all distributions of LaTeX
#  version 1999/12/01 or later.
#
#  This file may only be distributed together with a copy of the tbook
#  base system. You may however distribute the tbook base system
#  without such generated files.
#
#  The program tbook consists of all files listed in manifest.txt.
#======================================================================
#
# By calling this batch file, all files
# necessary to use tbook are copied into
# the current directory.

if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ] ; then
  echo "tbprepare 1.4" ;
  echo "(2002/08/27)" ;
  echo "usage: tbprepare document-name" ;
  echo "Prepares the current directory for document-name.xml" ;
  echo " document-name       name of the tbook document (without the .xml extension!)" ;
  echo "for further information see tbookman.pdf or the man pages." ;
  exit 0 ;
fi

if [ -a "$1.xml" ] ; then
  echo "tbprepare: Nothing done.  $1.xml already exists." ;
  exit 1 ;
fi

TBLIBDIR=/usr/share/xml/tbook
install $TBLIBDIR/makedummy ./makepdfs
install $TBLIBDIR/makedummy ./makewebs
install $TBLIBDIR/makedummy ./makeepss
install $TBLIBDIR/makedummy ./makeidx
install $TBLIBDIR/makedummy ./makebib
install $TBLIBDIR/makedummy ./makeeqns
install $TBLIBDIR/makedummy ./makeclean
install $TBLIBDIR/makedummy ./makepage

echo Use $1.xml as a template for your document.
echo Have fun!
cp $TBLIBDIR/tbtmplte.xml $1.xml;

#
# End of file `tbprepare'.

