%%% ====================================================================
%%%  @LaTeX-file{
%%%     author          = "American Mathematical Society",
%%%     version         = "1.2beta",
%%%     date            = "13-Oct-1994",
%%%     time            = "11:22:20 EDT",
%%%     filename        = "amslatex.ins",
%%%     copyright       = "Copyright (C) 1994 American Mathematical Society,
%%%                        all rights reserved.  Copying of this file is
%%%                        authorized only if either:
%%%                        (1) you make absolutely no changes to your copy,
%%%                        including name; OR
%%%                        (2) if you do make changes, you first rename it
%%%                        to some other name.",
%%%     address         = "American Mathematical Society,
%%%                        Technical Support,
%%%                        Electronic Products and Services,
%%%                        P. O. Box 6248,
%%%                        Providence, RI 02940,
%%%                        USA",
%%%     telephone       = "401-455-4080 or (in the USA and Canada)
%%%                        800-321-4AMS (321-4267)",
%%%     FAX             = "401-331-3842",
%%%     checksum        = "43067 97 368 3876",
%%%     email           = "tech-support@math.ams.org (Internet)",
%%%     codetable       = "ISO/ASCII",
%%%     keywords        = "latex, amslatex, ams-latex, installation",
%%%     supported       = "yes",
%%%     abstract        = "This is part of the AMS-\LaTeX{} distribution.
%%%                        It is an installation file that will generate
%%%                        loadable package and class files when run
%%%                        through \LaTeX{}.",
%%%     docstring       = "The checksum field above contains a CRC-16
%%%                        checksum as the first value, followed by the
%%%                        equivalent of the standard UNIX wc (word
%%%                        count) utility output of lines, words, and
%%%                        characters.  This is produced by Robert
%%%                        Solovay's checksum utility.",
%%%  }
%%% ====================================================================
\NeedsTeXFormat{LaTeX2e}% AMS-LaTeX 1.2 doesn't work with LaTeX 2.09
\def\batchfile{amslatex.ins}
\input docstrip.tex
\preamble
\endpreamble

\keepsilent

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

%    Enhancements for newtheorem; called by amsart/amsbook, but also
%    available separately.
\dofile{amsthm.sty}{amsthm.dtx}{}

\dofile{amstex.sty}{amstex.dtx}{}
\dofile{amsgen.sty}{amsgen.dtx}{}
\dofile{amsfonts.sty}{amsfonts.dtx}{}
\dofile{amssymb.sty}{amssymb.dtx}{}
\dofile{amstext.sty}{amstext.dtx}{}
\dofile{amsbsy.sty}{amsbsy.dtx}{}
\dofile{amscd.sty}{amscd.dtx}{}
\dofile{amsxtra.sty}{amsxtra.dtx}{}

%    `New improved' commands for ints and sums:
\dofile{amsintsm.sty}{amsintsm.dtx}{}

%    Make \ref produce always upright shape (formerly included by
%    default in amsart 1.1, now not default).
\dofile{romref.sty}{romref.dtx}{}

%    Document class amsart:
\dofile{amsart.cls}{amscls.dtx}{amsart}
%    Document class amsbook:
\dofile{amsbook.cls}{amscls.dtx}{amsbook}

%    Document class for printing AMS .dtx files:
\dofile{amsldoc.cls}{amsdtx.dtx}{amsldoc}
\dofile{amsdtx.cls}{amsdtx.dtx}{amsdtx}

\ifToplevel{
\Msg{******************************************************************}
\Msg{*}
\Msg{* To finish the installation you need to move the following files}
\Msg{* to a LaTeX input files area (whose exact name will vary}
\Msg{* depending on your system):}
\Msg{*}
\the\filesmsg
\Msg{*}
\Msg{* To produce the AMS-LaTeX user's guide, run amsldoc.tex through}
\Msg{* LaTeX.}
\Msg{*}
\Msg{******************************************************************}
}

\endinput
