\input docstrip \askforoverwritefalse \keepsilent \preamble \endpreamble \usedir{tex/latex/amsrefs} \generate{% \file{amsrefs.sty}{\from{amsrefs.dtx}{pkg}} \file{amsbst.sty}{\from{amsrefs.dtx}{bst}} } \endbatchfile