summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/ctan2tds
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/ctan2tds')
-rwxr-xr-xMaster/tlpkg/bin/ctan2tds342
1 files changed, 173 insertions, 169 deletions
diff --git a/Master/tlpkg/bin/ctan2tds b/Master/tlpkg/bin/ctan2tds
index f06e7119a93..46a4406f83c 100755
--- a/Master/tlpkg/bin/ctan2tds
+++ b/Master/tlpkg/bin/ctan2tds
@@ -118,6 +118,7 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw
'cmbright', "&MAKEflatten",
'cmcyr', "&MAKEflatten",
'cmll', "&MAKEflatten",
+ 'colortab', "die 'skipping, nosell license'",
'comicsans', "die 'skipping, Comic Sans is nonfree'",
'concmath', "&MAKEconcmath",
'context', "&MAKEcontext",
@@ -453,6 +454,7 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw
'wasy2', "&MAKEflatten",
'wntamil', "die 'skipping, nonfree license'",
'wordcount', "&MAKEwordcount",
+ 'wsuipa', "&MAKEflatten",
'xbase', "die 'renamed to xpackages'",
'xecjk', "&MAKEcopy",
'xecyr', "&MAKEcopy",
@@ -505,33 +507,6 @@ chdir $startdir || die "chdir($startdir) failed: $!"; # back to raw
);
-# needs special TeX program to run the doc.
-%specialTEX = (
- 'arabtex', 'tex',
- 'barr', 'latex',
- 'beamer', 'pdflatex',
- 'bytefield', 'pdflatex',
- 'esint-type1', 'pdftex',
- 'euro-ce', 'tex',
- 'floatrow', 'latex',
- 'genealogy', 'tex',
- 'insbox', 'tex',
- 'iso10303', 'pdflatex',
- 'mfpic', 'tex',
- 'mpattern', 'true', # requires running mpp, but it's not executable and
- # anyway it's just a test file. ignore it.
- 'ofs', 'csplain',
- 'pdfscreen', 'pdflatex',
- 'pdfslide', 'pdflatex',
- 'pl-qx', 'platex',
- 'subfig', 'pdflatex',
- 'texsis', 'tex',
- 'typespec', 'tex',
- 'wasy2', 'tex',
- 'webeq', 'pdflatex',
-);
-
-
$standardsource='\.fdd|\.dtx|\.ins|\.c$|Makefile|configure.*|install-sh|\.drv';
%specialsource= (
'FAQ-en', 'NULL',
@@ -736,6 +711,150 @@ $standardsourcefmt='latex';
$standardfmt='latex';
+# packages which need special .tex/.sty files installed
+$standardtex='\.(cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$';
+%specialtex= (
+ 'FAQ-en', 'NULL',
+ 'abbr', '\.tex',
+ 'abstyles', 'apreambl.tex', # not a4c.sty
+ 'ae', '\.fd$|\.sty',
+ 'apa', '\.apa|\.cls', # not endfloat.cfg
+ 'apacite', '\.apc|' . $standardtex,
+ 'arabtex', '\.tex|' . $standardtex,
+ 'babelbib', '\.bdf|\.sty',
+ 'bangtex', 'bangfont\.tex|' . $standardtex,
+ 'bardiag', '\.bar|\.sty|\.cfg',
+ 'barr', 'diagxy.tex',
+ 'base', 'idx.tex|lablst.tex|latexbug.tex|lablst.tex|docstrip.tex|nfssfont.tex|sample2e.tex|small2e.tex|testpage.tex|ltxcheck.tex|\.cfg|\.fd$|\.cls|\.clo|\.ltx|\.sty|\.def|^\.',
+ 'bbold', 'bbold.sty|\.fd', # no fonttabl.sty
+ 'bclogo', '[^c]\.tex|\.eps|' . $standardtex, # not bclogo-doc.tex
+ 'bghyphen', '\.tex',
+ 'blockdraw_mp','NULL', # skip .sty's
+ 'breqn', '\.sty|\.sym',
+ 'calxxxx', 'cal.*\.tex',
+ 'captcont', '\.sty|[^c]\.cfg', # omit ltxdoc.cfg, would be system-wide
+ 'carlisle', '\.sty|\.ltx',
+ 'chemstyle', '\.jdf|' . $standardtex,
+ 'cirth', 'num\.tex',
+ 'clock', '\.sty|clock\.tex',
+ 'cmap', '\.cmap|' . $standardtex,
+ 'codepage', '\.sty|\.tex',
+ 'contour', '\.cfg|\.sty|\.cnt',
+ 'ctib', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$|ctib\.tex',
+ 'custbib', '\.mbs|\.tex',
+ 'custom-bib', '\.mbs|\.tex',
+ 'cyrillic', '\.tex|\.sty|\.fd$|\.def',
+ 'dehyph-exptl','de.*\.tex|\.pat',
+ 'dialogl', '\.sty|listouti\.tex',
+ 'din1505', 'NULL', # no tex files, only natbib.cfg, would be system-wide
+ 'disser', '\.rtx|' . $standardtex,
+ 'dlfltxb', '\.sty', # no sample.cfg
+ 'ean', 'ean[0-9]*\.tex',
+ 'easy', 'easy.*\.sty', # no mydoc.sty
+ 'ecv', '\.sty|\.cls|\.ldf', # no docstrip.cfg, else system-wide
+ 'edmac', 'edmac.tex|edstanza.tex|\.sty',
+ 'eijkhout', '\.tex',
+ 'epsf', 'epsf.(tex|sty)',
+ 'epslatex-fr', 'NULL',
+ 'esint-type1', 'esint.tex',
+ 'europecv', 'EuropeFlag|europasslogo|\.cls|\.def',
+ 'fancytooltips','fancytipmark\..*|' . $standardtex,
+ 'fltpoint', '\.sty|\.tex',
+ 'fontch', '\.tex',
+ 'footnpag', 'footnpag\.sty',
+ 'fragments', '\.tex|' . $standardtex,
+ 'frankenstein','\.(sto|stq)|' . $standardtex,
+ 'genmisc', '\.sty|\.tex',
+ 'geometry', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$', # not cfg
+ 'ginpenc', '\.gie|\.sty',
+ 'hfoldsty', '\.sty|\.fd|\.cpa',
+ 'hyper', '\.sty|\.hyp',
+ 'hyplain', '(hyrules|hy.*plain|hylang)\..*',
+ 'ibygrk', 'iby4extr.tex|ibycus4.tex|ibycusps.tex|pssetiby.tex|setiby4.tex|tlgsqq.tex|version4.tex|' . $standardtex,
+ 'insbox', 'insbox.tex',
+ 'interactiveworkbook', 'NULL', # done in POSTinteractiveworkbook
+ 'iso10303', 'a.*tex|b.*tex|e.*tex|stp.*tex|\.sty|\.4ht',
+ 'isodate', '\.idf|\.sty',
+ 'isodoc', 'iso.*\.sty', # not mystyle.sty, etc.
+ 'jadetex', '\.ltx|\.def|\.tex|\.ini|\.sty',
+ 'karnaugh', 'kvmacros.tex',
+ 'kastrup', 'binhex.tex|' . $standardtex,
+ 'keystroke', 'keystroke_.*|\.sty',
+ 'kuvio', '\.tex|\.sty',
+ 'latex-course','NULL', # keep doc together
+ 'lettre', '\.ins|\.cls',
+ 'manjutex', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$|manju.tex',
+ 'mathdots', 'mathdots\.tex|' . $standardtex,
+ 'metatex', 'metatex.tex',
+ 'mff', '\.sty|mf[^f].*\.tex',
+ 'mfpic', 'mfpic.tex|mfpic.sty|mfppatch.tex',
+ 'midnight', '\.tex',
+ 'mathabx', 'mathabx\.(dcl|tex)|' . $standardtex,
+ 'mathdots', '\.mld|' . $standardtex,
+ 'misc', '\.sty|\.ltx|\.cls',
+ 'mkpattern', 'mkpatter.tex',
+ 'mpman-ru', 'NULL', # doc package
+ 'msg', "-msg\.tex" . $standardtex,
+ 'nag', '\.nag|' . $standardtex,
+ 'nddiss', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$',
+ 'notes', '[^s]\.(eps|pdf|png)|' . $standardtex, # not notes.pdf
+ 'ntheorem', '\.sty|\.std',
+ 'ofs', '^ofs\.tex|ofsdef\.tex|ofs-.*\.tex|\.sty|a.*\.tex|.*fn\.tex',
+ 'patch', '\.tex',
+ 'pdf-trans', 'pdf-trans.tex',
+ 'pdfcprot', '\.cpa|\.sty',
+ 'pdfscreen', 'overlay.*pdf|but.*pdf|left.*pdf|right\.pdf|pdfscreen.sty',
+ 'pdfslide', '\.jpg|\.sty|\.clo|\.cfg|meta.*\.pdf',
+ 'petri-nets', 'pnets\.tex|pntext\.tex|\.sty|pndraw\.tex|pnversion\.tex|\.sty|pndraw\.tex',
+ 'pictex', '\.sty|\.tex',
+ 'plgraph', '\.tex',
+ 'plnfss', '\.tex|\.pfd',
+ 'powerdot', '\.ps|' . $standardtex,
+ 'ppchtex', 'm.*tex|m.*sty',
+ 'prosper', '\.ps|\.eps|\.sty|\.cls',
+ 'pstricks', 'pst-*\.tex',
+ 'pst-bspline', 'pst-bspline\.(tex|sty)',
+ 'pst-cox', 'pst-cox(coor|eterp)\.tex',
+ 'pst-geo', 'pst-map.*\.tex|pst-map.*\.sty',
+ 'pst-infixplot', 'infix-RPN\.tex|pst-infixplot\.tex',
+ 'qobitree', 'qobitree.tex',
+ 'r_und_s', '\.tex|\.sty',
+ 'realcalc', 'realcalc.tex',
+ 'resumemac', 'resumemac.tex',
+ 'revtex', '\.sty|\.cls|\.rtx',
+ 'rlepsf', 'rlepsf.tex',
+ 'seminar', '\.bug|\.bg2|\.cls|\.sty|2up.tex',
+ 'shapepar', '\.sty', # not def
+ 'showexpl', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$', # not cfg
+ 'splitindex', 'splitindex\.tex|' . $standardtex,
+ 'spotcolor', 'spotcolor.*\.tex|' . $standardtex,
+ 'startex', '\.tex',
+ 'subfig', '\.sty|[^c]\.cfg', # omit ltxdoc.cfg, would be system-wide
+ 'subfigure', '\.sty|[^c]\.cfg', # omit ltxdoc.cfg, would be system-wide
+ 'syntax', 'syntax\.tex',
+ 'taylor', 'diagrams.tex',
+ 'tex-ewd', 'dotnot.tex',
+ 'texsis', '\.txs|TXS.*tex|texsis.tex',
+ 'ticket', '\.tdf|' . $standardtex,
+ 'tools', '\.cfg|\.sty|\.clo|\.cls|\.def|\.fd$|.?\.tex|^\.tex$',
+ 'translator', '\.dict|translator-language-mappings.tex|' . $standardtex,
+ 'tugboat-plain','\.cmn|' . $standardtex,
+ 'universa', '\.fd|uni\.sty', # not unidoc.sty
+ 'variations', '^variations\.tex|' . $standardtex, # not docvariations.tex
+ 'varisize', '\.tex',
+ 'vaucanson-g', '\.(def|tex)|' . $standardtex,
+ 'vertex', 'vertex\.tex|' . $standardtex,
+ 'vhistory', '\.sty', # not hyperref.cfg
+ 'wasy2', 'wasyfont\.tex',
+ 'wordcount', '\.tex',
+ 'xepersian', 'xepersian-mathsdigitspec\.tex|' . $standardtex,
+ 'xetexfontinfo','\.tex',
+ 'xlop', 'xlop\.(tex|sty)', # no manual.sty
+ 'xstring', 'xstring\.tex|' . $standardtex,
+ 'zefonts', '\.sty|\.fd',
+);
+
+
%specialdocfmt = (
'abbr', 'generic',
'abstyles', 'bibtex',
@@ -866,6 +985,7 @@ $standardfmt='latex';
'vertex', 'plain',
'voss-de', 'german',
'wasy2', 'fonts',
+ 'wsuipa', 'generic',
'xetexfontinfo','xetex',
'xltxtra', 'xelatex',
'xq', 'fonts',
@@ -918,147 +1038,30 @@ $standardinsrunner="latex -interaction=nonstopmode";
$standardmakeindex='\.ist';
-# packages which need special .tex/.sty files installed
-$standardtex='\.(cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$';
-%specialtex= (
- 'FAQ-en', 'NULL',
- 'abbr', '\.tex',
- 'abstyles', 'apreambl.tex', # not a4c.sty
- 'ae', '\.fd$|\.sty',
- 'apa', '\.apa|\.cls', # not endfloat.cfg
- 'apacite', '\.apc|' . $standardtex,
- 'arabtex', '\.tex|' . $standardtex,
- 'babelbib', '\.bdf|\.sty',
- 'bangtex', 'bangfont\.tex|' . $standardtex,
- 'bardiag', '\.bar|\.sty|\.cfg',
- 'barr', 'diagxy.tex',
- 'base', 'idx.tex|lablst.tex|latexbug.tex|lablst.tex|docstrip.tex|nfssfont.tex|sample2e.tex|small2e.tex|testpage.tex|ltxcheck.tex|\.cfg|\.fd$|\.cls|\.clo|\.ltx|\.sty|\.def|^\.',
- 'bbold', 'bbold.sty|\.fd', # no fonttabl.sty
- 'bclogo', '[^c]\.tex|\.eps|' . $standardtex, # not bclogo-doc.tex
- 'bghyphen', '\.tex',
- 'blockdraw_mp','NULL', # skip .sty's
- 'breqn', '\.sty|\.sym',
- 'calxxxx', 'cal.*\.tex',
- 'captcont', '\.sty|[^c]\.cfg', # omit ltxdoc.cfg, would be system-wide
- 'carlisle', '\.sty|\.ltx',
- 'chemstyle', '\.jdf|' . $standardtex,
- 'cirth', 'num\.tex',
- 'clock', '\.sty|clock\.tex',
- 'cmap', '\.cmap|' . $standardtex,
- 'codepage', '\.sty|\.tex',
- 'contour', '\.cfg|\.sty|\.cnt',
- 'ctib', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$|ctib\.tex',
- 'custbib', '\.mbs|\.tex',
- 'custom-bib', '\.mbs|\.tex',
- 'cyrillic', '\.tex|\.sty|\.fd$|\.def',
- 'dehyph-exptl','de.*\.tex|\.pat',
- 'dialogl', '\.sty|listouti\.tex',
- 'din1505', 'NULL', # no tex files, only natbib.cfg, would be system-wide
- 'disser', '\.rtx|' . $standardtex,
- 'dlfltxb', '\.sty', # no sample.cfg
- 'ean', 'ean[0-9]*\.tex',
- 'easy', 'easy.*\.sty', # no mydoc.sty
- 'ecv', '\.sty|\.cls|\.ldf', # no docstrip.cfg, else system-wide
- 'edmac', 'edmac.tex|edstanza.tex|\.sty',
- 'eijkhout', '\.tex',
- 'epsf', 'epsf.(tex|sty)',
- 'epslatex-fr', 'NULL',
- 'esint-type1', 'esint.tex',
- 'europecv', 'EuropeFlag|europasslogo|\.cls|\.def',
- 'fancytooltips','fancytipmark\..*|' . $standardtex,
- 'fltpoint', '\.sty|\.tex',
- 'fontch', '\.tex',
- 'footnpag', 'footnpag\.sty',
- 'fragments', '\.tex|' . $standardtex,
- 'frankenstein','\.(sto|stq)|' . $standardtex,
- 'genmisc', '\.sty|\.tex',
- 'geometry', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$', # not cfg
- 'ginpenc', '\.gie|\.sty',
- 'hfoldsty', '\.sty|\.fd|\.cpa',
- 'hyper', '\.sty|\.hyp',
- 'hyplain', '(hyrules|hy.*plain|hylang)\..*',
- 'ibygrk', 'iby4extr.tex|ibycus4.tex|ibycusps.tex|pssetiby.tex|setiby4.tex|tlgsqq.tex|version4.tex|' . $standardtex,
- 'insbox', 'insbox.tex',
- 'interactiveworkbook', 'NULL', # done in POSTinteractiveworkbook
- 'iso10303', 'a.*tex|b.*tex|e.*tex|stp.*tex|\.sty|\.4ht',
- 'isodate', '\.idf|\.sty',
- 'isodoc', 'iso.*\.sty', # not mystyle.sty, etc.
- 'jadetex', '\.ltx|\.def|\.tex|\.ini|\.sty',
- 'karnaugh', 'kvmacros.tex',
- 'kastrup', 'binhex.tex|' . $standardtex,
- 'keystroke', 'keystroke_.*|\.sty',
- 'kuvio', '\.tex|\.sty',
- 'latex-course','NULL', # keep doc together
- 'lettre', '\.ins|\.cls',
- 'manjutex', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$|manju.tex',
- 'mathdots', 'mathdots\.tex|' . $standardtex,
- 'metatex', 'metatex.tex',
- 'mff', '\.sty|mf[^f].*\.tex',
- 'mfpic', 'mfpic.tex|mfpic.sty|mfppatch.tex',
- 'midnight', '\.tex',
- 'mathabx', 'mathabx\.(dcl|tex)|' . $standardtex,
- 'mathdots', '\.mld|' . $standardtex,
- 'misc', '\.sty|\.ltx|\.cls',
- 'mkpattern', 'mkpatter.tex',
- 'mpman-ru', 'NULL', # doc package
- 'msg', "-msg\.tex" . $standardtex,
- 'nag', '\.nag|' . $standardtex,
- 'nddiss', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$',
- 'notes', '[^s]\.(eps|pdf|png)|' . $standardtex, # not notes.pdf
- 'ntheorem', '\.sty|\.std',
- 'ofs', '^ofs\.tex|ofsdef\.tex|ofs-.*\.tex|\.sty|a.*\.tex|.*fn\.tex',
- 'patch', '\.tex',
- 'pdf-trans', 'pdf-trans.tex',
- 'pdfcprot', '\.cpa|\.sty',
- 'pdfscreen', 'overlay.*pdf|but.*pdf|left.*pdf|right\.pdf|pdfscreen.sty',
- 'pdfslide', '\.jpg|\.sty|\.clo|\.cfg|meta.*\.pdf',
- 'petri-nets', 'pnets\.tex|pntext\.tex|\.sty|pndraw\.tex|pnversion\.tex|\.sty|pndraw\.tex',
- 'pictex', '\.sty|\.tex',
- 'plgraph', '\.tex',
- 'plnfss', '\.tex|\.pfd',
- 'powerdot', '\.ps|' . $standardtex,
- 'ppchtex', 'm.*tex|m.*sty',
- 'prosper', '\.ps|\.eps|\.sty|\.cls',
- 'pstricks', 'pst-*\.tex',
- 'pst-bspline', 'pst-bspline\.(tex|sty)',
- 'pst-cox', 'pst-cox(coor|eterp)\.tex',
- 'pst-geo', 'pst-map.*\.tex|pst-map.*\.sty',
- 'pst-infixplot', 'infix-RPN\.tex|pst-infixplot\.tex',
- 'qobitree', 'qobitree.tex',
- 'r_und_s', '\.tex|\.sty',
- 'realcalc', 'realcalc.tex',
- 'resumemac', 'resumemac.tex',
- 'revtex', '\.sty|\.cls|\.rtx',
- 'rlepsf', 'rlepsf.tex',
- 'seminar', '\.bug|\.bg2|\.cls|\.sty|2up.tex',
- 'shapepar', '\.sty', # not def
- 'showexpl', '\.sty|\.clo|\.ldf|\.cls|\.def|\.fd$', # not cfg
- 'splitindex', 'splitindex\.tex|' . $standardtex,
- 'spotcolor', 'spotcolor.*\.tex|' . $standardtex,
- 'startex', '\.tex',
- 'subfig', '\.sty|[^c]\.cfg', # omit ltxdoc.cfg, would be system-wide
- 'subfigure', '\.sty|[^c]\.cfg', # omit ltxdoc.cfg, would be system-wide
- 'syntax', 'syntax\.tex',
- 'taylor', 'diagrams.tex',
- 'tex-ewd', 'dotnot.tex',
- 'texsis', '\.txs|TXS.*tex|texsis.tex',
- 'ticket', '\.tdf|' . $standardtex,
- 'tools', '\.cfg|\.sty|\.clo|\.cls|\.def|\.fd$|.?\.tex|^\.tex$',
- 'translator', '\.dict|translator-language-mappings.tex|' . $standardtex,
- 'tugboat-plain','\.cmn|' . $standardtex,
- 'universa', '\.fd|uni\.sty', # not unidoc.sty
- 'variations', '^variations\.tex|' . $standardtex, # not docvariations.tex
- 'varisize', '\.tex',
- 'vaucanson-g', '\.(def|tex)|' . $standardtex,
- 'vertex', 'vertex\.tex|' . $standardtex,
- 'vhistory', '\.sty', # not hyperref.cfg
- 'wasy2', 'wasyfont\.tex',
- 'wordcount', '\.tex',
- 'xepersian', 'xepersian-mathsdigitspec\.tex|' . $standardtex,
- 'xetexfontinfo','\.tex',
- 'xlop', 'xlop\.(tex|sty)', # no manual.sty
- 'xstring', 'xstring\.tex|' . $standardtex,
- 'zefonts', '\.sty|\.fd',
+# needs special TeX program to run the doc.
+%specialTEX = (
+ 'arabtex', 'tex',
+ 'barr', 'latex',
+ 'beamer', 'pdflatex',
+ 'bytefield', 'pdflatex',
+ 'esint-type1', 'pdftex',
+ 'euro-ce', 'tex',
+ 'floatrow', 'latex',
+ 'genealogy', 'tex',
+ 'insbox', 'tex',
+ 'iso10303', 'pdflatex',
+ 'mfpic', 'tex',
+ 'mpattern', 'true', # requires running mpp, but it's not executable and
+ # anyway it's just a test file. ignore it.
+ 'ofs', 'csplain',
+ 'pdfscreen', 'pdflatex',
+ 'pdfslide', 'pdflatex',
+ 'pl-qx', 'platex',
+ 'subfig', 'pdflatex',
+ 'texsis', 'tex',
+ 'typespec', 'tex',
+ 'wasy2', 'tex',
+ 'webeq', 'pdflatex',
);
@@ -1349,7 +1352,8 @@ $standardclean = '\.head|\.tmp|\.dvi|\.log|\.out|\.aux|\.toc|\.lof|\.lot'
'lshort-spanish'=>'lshort-a5book.pdf', # a4 is enough
'mathexam' => 'sample.tex~',
'notes2bib' => "$standardclean|jawltxdoc.sty", # temp file for doc
- 'rsc' => "$standardclean|jawltxdoc.sty", # temp file for doc
+ 'rsc' => $standardclean . '|jawltxdoc.sty', # temp file for doc
+ 'wsuipa' => $standardclean . '|.*pk$', # premade pk files
);
# if a hash entry is matched here, README.TEXLIVE is created mentioning