\input docstrip \keepsilent \generate{\file{stack.sty}{\from{stack.dtx}{package}} \file{relinput.sty}{\from{stack.dtx}{test}}} \endbatchfile