% aunpack.ins  --  installation driver for the ALaTeX system
%
%   Copyright 1996      Matt Swift <swift@bu.edu>.
%                       All rights reserved.
%
%   This file is part of the ALaTeX system.  Please see the file
%   0areadme.txt for further information.
%
%   All correspondence regarding ALaTeX should go to 
%   Matt Swift <swift@bu.edu>, not the LaTeX maintainers.
%
%   This program is free software; you can redistribute it and/or modify
%   it under the terms of the GNU General Public License as published by
%   the Free Software Foundation; either version 2 of the License, or
%   (at your option) any later version.
%
%   This program is distributed in the hope that it will be useful,
%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%   GNU General Public License for more details.
%
%   You should have received a copy of the GNU General Public License
%   along with this program; if not, write to the Free Software
%   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%
\def\batchfile{aunpack.ins}

\let\documentclass\undefined
\input ltdirchk.dtx
\input testdist.dtx
\input docstrip.dtx

\let\OriginalAsk=\Ask
\def\Ask#1#2{%
  \OriginalAsk{#1}{#2}%
  \global\let\Ask\OriginalAsk
  \Ask\noprompt{%
  By default you will be asked this question for every file.^^J%
  If you enter `y' now, I will asssume `y' for all future questions^^J%
  without prompting.}%
   \ifx\y\noprompt\gdef\Ask##1##2{\def##1{y}}\else
      \ifx\yes\noprompt\gdef\Ask##1##2{\def##1{y}}\fi\fi}
           
\testdistribution{amanifst.txt}{Missing distribution files.}{%
   The above files are missing from your ALaTeX distribution.
^^JYou should be able to get the files from the same source as
^^Jthe rest of the distribution.  If you can't, then complain!
^^JThe full list of ALaTeX distributed files is in amanifst.txt.
^^JMore information about the installation is in ainstall.txt.
^^JPress <RETURN> to continue, or X<RETURN> to exit.
}

\Msg{**********************************************}
\Msg{*}
\Msg{* Welcome to the Installation routine of}
\Msg{*}
\Msg{* \space\space\space\space ALaTeX\space 1.0}
\Msg{*}
\Msg{**********************************************}
\Msg{}
\Msg{}

\keepsilent

\preamble

Copyright 1995-1996 Matt Swift <swift@bu.edu>.  All rights reserved.

This file is part of the ALaTeX system.  If you modify it, please 
change the definition of \string\fileinfo.

All correspondence regarding ALaTeX should go to Matt Swift
<swift@bu.edu>, not the LaTeX maintainers.

This file has been generated from the sources listed above.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

\endpreamble

\def\Lbatchinput#1{{\batchinput{#1}}} % to avoid changing preambles
                    % by included batchfiles we just enclose \batchinput
                    % in brackets since \preamble decls are local

\generate{
	\file{alatex.ltx}{\from{alatex.dtx}{alatex}}
	\file{metaclas.cfg}{\from{alatex.dtx}{metaclass}}
	 }

\testdistribution{aunpcked.txt}{Missing unpacked files.}{%
   The above files should have been unpacked by this installation.
^^JIf they are missing, then this means that something is wrong.
^^JRead ainstall.txt to find out what to do now.
^^JThe list of files which should have been unpacked is in aunpcked.txt.
^^JPress <RETURN> to continue, or X<RETURN> to exit.
}

\Msg{}
\Msg{********************************************************************}
\Msg{*}
\Msg{*  The patch to the LaTeX kernel and the standard ALaTeX metaclass}
\Msg{*  have been created.}
\Msg{*}
\Msg{*  To create the ALaTeX format, you must}
\Msg{*  now run iniTeX on alatex.ltx to generate alatex.fmt.}
\Msg{*}
\Msg{*  To use the new format and the standard metaclass,}
\Msg{*  place them in a standard TeX path.}
\Msg{*}
\Msg{*  If you use the Unix web2c distribution of TeX, you may wish to}
\Msg{*  create a link from `alatex' to `virtex', and define}
\Msg{*  TEXINPUTS.alatex to have the same value as TEXINPUTS.latex in the}
\Msg{*  file texmf.cnf (both of these should have the same value as}
\Msg{*  TEXINPUTS.latex2e).  On other platforms, you must do something else}
\Msg{*  to use the ALaTeX format.}
\Msg{*}
\Msg{*  Documentation may be produced by running}
\Msg{*  LaTeX on alatex.tex.}
\Msg{*}
\Msg{*******************************************************************}
\Msg{}

\endinput
