\NeedsTeXFormat{LaTeX2e}%
\def\batchfile{dialogl.ins}
\input docstrip.tex
\preamble
\endpreamble

\keepsilent

%    Fix up catcodes of the upper 128 characters just in case someone
%    has an early release of LaTeX2e. (pre June 1994 patch-level 2)
{\makeatletter
\def\do{\global\catcode\count@\@tempa \advance\count@\@ne
  \ifnum\count@>\@cclv \expandafter\@gobble\fi \do}%
\count@=128 \chardef\@tempa=12 \do}

\csname newtoks\endcsname\filesmsg
\def\dofile#1#2#3{\generateFile{#1}{t}{\from{#2}{#3}}%
  \filesmsg\expandafter{\the\filesmsg \Msg{* \space\space#1}}}

\dofile{dialog.sty}{dialog.dtx}{2e}
\dofile{menus.sty}{menus.dtx}{2e}
\dofile{grabhedr.sty}{grabhedr.dtx}{2e}
%    Listout.tex incorporates copies of grabhedr.sty, dialog.sty,
%    menus.sty with certain inconvenient lines removed, so that a single
%    version of listout.tex will run equally well under plain TeX, LaTeX
%    209, or LaTeX2e. (And it runs slightly faster as it doesn't need to
%    find those files at run-time).
\generateFile{listout.tex}{t}{%
  \from{grabhedr.dtx}{}%
  \from{dialog.dtx}{}%
  \from{menus.dtx}{}%
  \from{listout.dtx}{}%
}%
\filesmsg\expandafter{\the\filesmsg \Msg{* \space\space listout.tex}}

\ifToplevel{
\Msg{******************************************************************}
\Msg{*}
\Msg{* To finish the installation you need to move the following files}
\Msg{* to a LaTeX input files area (the name of this area will vary}
\Msg{* depending on your system):}
\Msg{*}
\the\filesmsg
\Msg{*}
\Msg{******************************************************************}
}

\endinput
