[tex-live] Docstrip woes

Heiko Oberdiek oberdiek at uni-freiburg.de
Wed Nov 26 13:00:39 CET 2008


On Wed, Nov 26, 2008 at 10:08:10AM +0000, Joseph Wright wrote:

> To create TDS-ready zip files, I have a short batch file set up on on
> Windows system.  Using MiKTeX, the following docstrip.cfg file
> 
> \immediate\write18{mkdir tds}
> \BaseDirectory{./tds}
> \UseTDS
> 
> allows me to unpack everything into <current dir>/tds/<whatever the ins
> says>.  However, if I try the same with TeXLive, I get:

> Generating file(s) ./tds/tex/latex/siunitx/siunitx.sty
> ! I can't write on file `./tds/tex/latex/siunitx/siunitx.sty'.
> <to be read again>

Probably the directory ./tds/tex/latex/siunitx does not exist.
For project `latex-tds' I am using the following docstrip.cfg
(part of CTAN:macros/latex/contrib/latex-tds/source-tds.zip):

% docstrip.cfg
% 2006/06/02 v1.0
% Copyright 2006 Heiko Oberdiek
%
% Configuration file for `docstrip' that enables the TDS installation
% feature and automatically creates missing directories.
%
% This file is part of project `latex-tds'.
%
% [... LPPL ...]
%
\BaseDirectory{texmf}
\UseTDS

\def\shell#{\immediate\write18}
\def\mkdir#1{\shell{mkdir -p #1}}

\let\saved at usedir\usedir
\def\usedir#1{%
  \mkdir{\basedir#1}%
  \saved at usedir{#1}%
}
\endinput

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


More information about the tex-live mailing list