%%
%% This docstrip .ins file makes it possible to unpack a docstrip
%% file using initex. This would enable a doc format LaTeX distribution 
%% to be bootstrapped just from the web (2c) sources for TeX, and the
%% LaTeX files. It saves building plain.fmt :-)
%%
%%  David Carlisle 1993/10/23
%%
\catcode`\Z=\catcode`\% 
\ifnum1=\catcode`\{{\egroup\else
  \catcode`\Z=9
Z
Z  \catcode`\{=1  \catcode`\}=2 
Z  \catcode`\#=6  \catcode`\^=7
Z  \catcode`\@=11 \catcode`\^^L=13
Z  \let\bgroup={  \let\egroup=}
Z
Z  \dimendef\z@=10 \z@=0pt \chardef\@ne=1 \countdef\m@ne=22 \m@ne=-1
Z
Z  \def\wlog{\immediate\write\m@ne} \def\space{ }
Z
Z  \count10=22 % allocates \count registers 23, 24, ...
Z  \count15=9 % allocates \toks registers 10, 11, ...
Z  \count16=-1 % allocates input streams 0, 1, ...
Z  \count17=-1 % allocates output streams 0, 1, ...
Z
Z  \def\alloc@#1#2#3{\advance\count1#1\@ne#2#3\count1#1\relax}
Z
Z  \def\newcount{\alloc@0\countdef} \def\newtoks{\alloc@5\toksdef}
Z  \def\newread{\alloc@6\chardef}   \def\newwrite{\alloc@7\chardef}
Z
Z  \def\newif#1{%
Z    \@if\def#1{true}{\let#1\iftrue}\@if\def#1{false}{\let#1\iffalse}%
Z    \@if\relax#1{false}}
Z
Z  \def\@if#1#2#3{%
Z    \expandafter#1\csname\expandafter\@gobblethree\string#2#3\endcsname}
Z  \def\@gobblethree#1#2#3{}
Z
Z  \def\loop#1\repeat{\def\body{#1}\iterate}
Z  \def\iterate{\body \let\next\iterate \else\let\next\relax\fi \next}
Z  \let\repeat\fi
Z
Z  \def\empty{}
Z
Z  \def\tracingall{\tracingcommands2 \tracingstats2 
Z    \tracingpages1 \tracingoutput1 \tracinglostchars1 
Z    \tracingmacros2 \tracingparagraphs1 \tracingrestores1 
Z    \showboxbreadth 10000 \showboxdepth 10000 \errorstopmode
Z    \errorcontextlines 10000 \tracingonline1 }
Z
\bgroup}\fi\catcode`\Z=11


\def\batchfile{latex2e.ins}

\input dircheck.dtx
\input testdist.dtx
\input docstrip.dtx


\testdistribution{manifest.l2e}{Missing distribution files.}{%
   The above files are missing from your LaTeX2e 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 LaTeX2e distributed files is in manifest.l2e.
^^JMore information about the installation is in install.l2e.
^^JPress <RETURN> to continue, or X<RETURN> to exit.
}


\keepsilent


\preamble

Copyright (C) 1993 by LaTeX3 project.  All rights reserved.
For additional copyright information see further down in this file.

This file is part of the LaTeX2e system.
----------------------------------------

 This system 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.


IMPORTANT NOTICE:

For error reports in case of UNCHANGED versions see readme files.

Please do not request updates from us directly.  Distribution is
done through Mail-Servers and TeX organizations.

You are not allowed to change this file.

You are allowed to distribute this file under the condition that
it is distributed together with all files mentioned in 00readme.l2e.

If you receive only some of these files from someone, complain!

You are NOT ALLOWED to distribute this file alone.  You are NOT
ALLOWED to take money for the distribution or use of either this
file or a changed version, except for a nominal charge for copying
etc.
\endpreamble



\generateFile{oldlfont.sty}{t}{%
  \from{oldlfont.dtx}{package}
}

\generateFile{newlfont.sty}{t}{%
  \from{newlfont.dtx}{package}
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\generateFile{ltboxes.ltx}{t}{%
  \from{ltboxes.dtx}{}
}

\generateFile{ltoutput.ltx}{t}{%
  \from{ltoutput.dtx}{2ekernel}
}

% \generateFile{fltrace.sty}{t}{%       %%% not yet finished
%  \from{ltoutput.dtx}{fltrace,trace}
% }

\generateFile{flafter.sty}{t}{%
  \from{ltoutput.dtx}{flafter,trace}
}



\generateFile{latex2e.ltx}{t}{%
  \from{dircheck.dtx}{initex,2ekernel,dircheck}
  \from{lplain.dtx}{}
  \from{latex.dtx}{code}
  \from{docclass.dtx}{}
  \from{lhyphen.dtx}{2ekernel}
  \from{dump.dtx}{code}
}


\generateFile{ltxcheck.tex}{t}{%
  \from{dircheck.dtx}{ltxcheck}}



%%%%%%%%%%%%%%%%% CUSTOMISABLE FILES

\keepsilent

\preamble

Copyright (C) 1993 by LaTeX3 project.  All rights reserved.


This file is part of the LaTeX2e system.
----------------------------------------

This is a generated file.  

No permission is granted to modify this file.

To customize the hyphenation tables used in LaTeX2e, install a file with
the name lhyphen.cfg. If the .cfg file can be found it will be
automatically used and this file will be ignored. See documentation
for details.

\endpreamble


\generateFile{lhyphen.ltx}{t}{%
  \from{lhyphen.dtx}{default}
}


\preamble

Copyright (C) 1993 Frank Mittelbach and Rainer Schoepf.
All rights reserved.

This file is part of the LaTeX2e system.
----------------------------------------

This is a generated file.  

No permission is granted to modify this file.

To customize the font definition used in LaTeX2e, install a file with
the name fontdef.cfg. If the .cfg file can be found it will be
automatically used and this file will be ignored. See documentation
for details.

We recommend that you copy the relevant portions of the original
source file into a private .dtx and produce the .cfg from that source.

\endpreamble


\generateFile{fontdef.ltx}{t}{
     \from{fontdef.dtx}{main}}


\preamble

Copyright (C) 1993 by LaTeX3 project.  All rights reserved.

This file is part of the LaTeX2e system.
----------------------------------------

This is a generated file. 

No permission is granted to modify this file.

To customize the preloads used in LaTeX2e, install a file with the
name preload.cfg. If the .cfg file can be found it will be
automatically used and this file will be ignored. See documentation
for details.

\endpreamble


\generateFile{preload.ltx}{t}{%
  \from{preload.dtx}{preload,cm,xpt,tex}}



%%%%%%%%%%%%%%%%% DOCUMENTATION FILES


\preamble

Copyright (C) 1993 by LaTeX3 project.  All rights reserved.
For additional copyright information see further down in this file.

This file is part of the LaTeX2e system.
----------------------------------------

Permission is granted to modify this file for producing a different
layout. However, no permission is granted to distribute a modified
version of this file under its original name.

Please note that you can customize the layout of the documentation
without changing any source file by supplying a configuration file
named ltxdoc.cfg. If this file can be found it will automatically be
read in by the ltxdoc class.

\endpreamble

\generateFile{preload.drv}{t}{%
  \from{preload.dtx}{driver}}

\generateFile{oldlfont.drv}{t}{%
  \from{oldlfont.dtx}{driver}
}

\generateFile{newlfont.drv}{t}{%
  \from{newlfont.dtx}{driver}
}

\generateFile{fontdef.drv}{t}{%
  \from{fontdef.dtx}{driver}}


\generateFile{latex2e.drv}{t}{%
  \from{dump.dtx}{driver}
}



%%%%%%%%%%%%%%%%%%%%%%%%%%%% OTHER PACKAGES


\batchinput{classes.ins}

\batchinput{letter.ins}

\batchinput{slides.ins}

\batchinput{latexsym.ins}

\batchinput{cmfonts.ins}

\batchinput{latex209.ins}

\batchinput{docstrip.ins}


\testdistribution{unpacked.l2e}{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 install.l2e to find out what to do now.
^^JThe list of files which should have been unpacked is in unpacked.l2e.
^^JPress <RETURN> to continue, or X<RETURN> to exit.
}

\Msg{}
\Msg{***********************************}
\Msg{*}
\Msg{*  Now run INITEX on latex2e.ltx}
\Msg{*}
\Msg{***********************************}
\Msg{}

\endinput

