\input docstrip

\askforoverwritefalse

\keepsilent

\preamble
\endpreamble

% Remove \endinput from postamble

\usepostamble\empty

\generate{
    \usedir{bibtex/bst/ams}
    \file{amsrn.bst}{\from{amsxport.dtx}{bst,sort,plain}}
    \file{amsru.bst}{\from{amsxport.dtx}{bst,plain}}
    \file{amsra.bst}{\from{amsxport.dtx}{bst,sort,alpha}}
    \file{amsry.bst}{\from{amsxport.dtx}{bst,sort,alpha,y2k}}
    \file{amsrs.bst}{\from{amsxport.dtx}{bst,sort,short}}
    \usedir{bibtex/bib/ams}
    \file{amsj.bib} {\from{amsxport.dtx}{abbrevs}}
}

\endbatchfile
