\def\batchfile{install}
\def\filename{paper}

{\immediate\openin15 docstrip.tex
\ifeof 15
\typeout{***********************************************}
\typeout{* Sorry can not find the file `docstrip.tex'. *}
\typeout{***********************************************}
\expandafter\aftergroup\csname @@end\expandafter\endcsname
\expandafter\aftergroup\csname end\expandafter\endcsname \fi}

\input docstrip.tex

\preamble

Copyright (C) 1993, 1998 by wenzel_matiaske@notes.uni-paderborn.de

You are not allowed to distribute this file without the
original source \filename.dtx. For distribution of the 
sources see the copyright notice in the file \filename.dtx.

\endpreamble

\keepsilent

\Msg{*** Generating the document class files ***}

\generateFile{paper.cls}{t}{\from{paper.dtx}{paper}}
\generateFile{paper.sty}{t}{\from{paper.dtx}{paper.sty}}
\generateFile{journal.cls}{t}{\from{paper.dtx}{journal}}
\generateFile{journal.sty}{t}{\from{paper.dtx}{journal.sty}}

\Msg{*** Generating the documentation driver ***}

\generateFile{paper.drv}{t}{\from{paper.dtx}{driver}}

\ifToplevel{
\Msg{***********************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* files into a directory searched by TeX:}
\Msg{*}
\Msg{* \space\space paper.cls, paper.sty}
\Msg{* \space\space journal.cls, journal.sty}
\Msg{*}
\Msg{* To produce the documentation run the files ending with}
\Msg{* `.drv' through LaTeX.}
\Msg{*}
\Msg{* Happy TeXing}
\Msg{***********************************************************}
}

\endinput

