\input docstrip

\askforoverwritefalse

\keepsilent

\preamble
\endpreamble

\usedir{tex/latex/amsrefs}

\generate{
    \file{textcmds.sty}{\from{textcmds.dtx}{pkg}}
}

\endbatchfile