diff options
Diffstat (limited to 'Master/tlpkg/libexec/ctan2tds')
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 40c5377a45f..6c9b5249fd8 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -2031,6 +2031,17 @@ $standardsource='\.(bat|c|drv|dtx|fea|fdd|ins|sfd)$|configure.*|install-sh'; ); $standardins='\.ins$'; +# if no .ins is present, but a .dtx is present, return a pattern for it +# (or them); else return the empty string. +# +sub specialins { + return ""; + + my ($package) = $_; + my @ins = `find $RAW_DIR/$packagedir -name $standardins -type f`; + warn "specialins: found ins @ins"; +} + # ltxtable.tex in carlisle uses the {filecontents} environment to write # ltxtable.sty. Unfortunately if the file exists anywhere in the input # tree, it won't be written, and of course TL already has it installed. @@ -2557,7 +2568,7 @@ for (@ARGV) { $whichformat = $specialfmt{$package} || $standardfmt; $whichdocformat = $specialdocfmt{$package} || $standarddocfmt; - $inspatt = $specialins{$package} || $standardins; + $inspatt = $specialins{$package} || &specialins($package) || $standardins; $insrunner = $specialinsrunner{$package} || $standardinsrunner; $Foundry = $specialfoundry{$package} || $standardfoundry; |