docstripprovides the macro \batchinput, which calls a separate ins file. This file can be in a different directory with, say:
\batchinput{../contrib/xx.ins}
and they are generated, but in the same directory as the master ins. However, I want them to be generated in the same directory as the dtx/ins files. I've tried
\def\WriteToDir{../contrib/}
But then I get
! I can't write on file `../contrib/xx.ldf'.
Edit ... because TeXLive doesn't allow paths beginning with two dots.
I know \BaseDirectory, but this is intended for specifing the root directory of the TEX hierarchy (locally, by administrators).
How can I tell docstrip the files must be generated in the same directory as the dtx/ins files? Edit In other words, I wonder if these ins files can be run without having to set the path of the corresponding files (only the ins one).
openout_any=a tex file.ins; use at your own risk. – egreg Jun 22 '12 at 17:00insfiles, intead of using a masterins. – Javier Bezos Jun 22 '12 at 17:02insfile to the "local" root directory, so that allinsfiles are in subdirectories (baseandcontrib). Not very elegant, imo, but it works. – Javier Bezos Jun 22 '12 at 17:49