\def\batchfile{index.ins}
\input docstrip.tex

\generateFile{index.sty}{t}{\from{index.dtx}{style}}

\generateFile{sample.tex}{t}{\from{index.dtx}{sample}}

\endinput
