From 1a4cd03424ed7ecd19ffbed9abacca8069cc065b Mon Sep 17 00:00:00 2001 From: Martin Schröder Date: Sat, 15 Mar 2008 18:07:39 +0000 Subject: Resurrect the last known-good version of i386-linux: svn cp -r 6968 svn://username:password@tug.org/texlive/trunk/Master/bin/i386-linux . git-svn-id: svn://tug.org/texlive/trunk@6975 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/i386-linux/a2ping | 1 + Master/bin/i386-linux/afm2pl | Bin 0 -> 68072 bytes Master/bin/i386-linux/afm2tfm | Bin 0 -> 75400 bytes Master/bin/i386-linux/aleph | Bin 0 -> 408352 bytes Master/bin/i386-linux/allcm | 118 + Master/bin/i386-linux/allec | 1 + Master/bin/i386-linux/allneeded | 46 + Master/bin/i386-linux/amstex | 1 + Master/bin/i386-linux/bbox | Bin 0 -> 6856 bytes Master/bin/i386-linux/bg5+latex | 1 + Master/bin/i386-linux/bg5+pdflatex | 1 + Master/bin/i386-linux/bg5conv | Bin 0 -> 3344 bytes Master/bin/i386-linux/bg5latex | 43 + Master/bin/i386-linux/bg5pdflatex | 43 + Master/bin/i386-linux/bibtex | Bin 0 -> 119444 bytes Master/bin/i386-linux/bibtex8 | Bin 0 -> 144376 bytes Master/bin/i386-linux/cef5conv | Bin 0 -> 4696 bytes Master/bin/i386-linux/cef5latex | 43 + Master/bin/i386-linux/cef5pdflatex | 43 + Master/bin/i386-linux/cefconv | Bin 0 -> 4592 bytes Master/bin/i386-linux/ceflatex | 43 + Master/bin/i386-linux/cefpdflatex | 43 + Master/bin/i386-linux/cefsconv | Bin 0 -> 4708 bytes Master/bin/i386-linux/cefslatex | 43 + Master/bin/i386-linux/cefspdflatex | 43 + Master/bin/i386-linux/cfftot1 | Bin 0 -> 291500 bytes Master/bin/i386-linux/cslatex | 1 + Master/bin/i386-linux/csplain | 1 + Master/bin/i386-linux/ctangle | Bin 0 -> 75948 bytes Master/bin/i386-linux/ctie | Bin 0 -> 57608 bytes Master/bin/i386-linux/ctxtools | 2 + Master/bin/i386-linux/cweave | Bin 0 -> 103500 bytes Master/bin/i386-linux/detex | Bin 0 -> 65844 bytes Master/bin/i386-linux/devnag | Bin 0 -> 23040 bytes Master/bin/i386-linux/disdvi | Bin 0 -> 9352 bytes Master/bin/i386-linux/dmp | Bin 0 -> 65832 bytes Master/bin/i386-linux/dt2dv | Bin 0 -> 27552 bytes Master/bin/i386-linux/dv2dt | Bin 0 -> 9120 bytes Master/bin/i386-linux/dvi2fax | 41 + Master/bin/i386-linux/dvi2tty | Bin 0 -> 16980 bytes Master/bin/i386-linux/dvibook | Bin 0 -> 20372 bytes Master/bin/i386-linux/dviconcat | Bin 0 -> 18112 bytes Master/bin/i386-linux/dvicopy | Bin 0 -> 88272 bytes Master/bin/i386-linux/dvidvi | Bin 0 -> 14816 bytes Master/bin/i386-linux/dvihp | 130 + Master/bin/i386-linux/dvilj | Bin 0 -> 84516 bytes Master/bin/i386-linux/dvilj2p | Bin 0 -> 84836 bytes Master/bin/i386-linux/dvilj4 | Bin 0 -> 90820 bytes Master/bin/i386-linux/dvilj4l | Bin 0 -> 90820 bytes Master/bin/i386-linux/dvilj6 | 1 + Master/bin/i386-linux/dvipdfm | Bin 0 -> 348384 bytes Master/bin/i386-linux/dvipdfmx | Bin 0 -> 662056 bytes Master/bin/i386-linux/dvipdft | 130 + Master/bin/i386-linux/dvipng | Bin 0 -> 787020 bytes Master/bin/i386-linux/dvipos | Bin 0 -> 79204 bytes Master/bin/i386-linux/dvips | Bin 0 -> 624408 bytes Master/bin/i386-linux/dvired | 98 + Master/bin/i386-linux/dviselect | Bin 0 -> 20224 bytes Master/bin/i386-linux/dvitodvi | Bin 0 -> 24468 bytes Master/bin/i386-linux/dvitomp | Bin 0 -> 74536 bytes Master/bin/i386-linux/dvitype | Bin 0 -> 78660 bytes Master/bin/i386-linux/e2pall | 1 + Master/bin/i386-linux/ebb | Bin 0 -> 194332 bytes Master/bin/i386-linux/ebong | 390 + Master/bin/i386-linux/eplain | 1 + Master/bin/i386-linux/epsffit | Bin 0 -> 7816 bytes Master/bin/i386-linux/epstopdf | 1 + Master/bin/i386-linux/etex | 1 + Master/bin/i386-linux/exatools | 2 + Master/bin/i386-linux/extconv | Bin 0 -> 3344 bytes Master/bin/i386-linux/extractres | 96 + Master/bin/i386-linux/fixdlsrps | 54 + Master/bin/i386-linux/fixfmps | 21 + Master/bin/i386-linux/fixmacps | 95 + Master/bin/i386-linux/fixpsditps | 25 + Master/bin/i386-linux/fixpspps | 58 + Master/bin/i386-linux/fixscribeps | 19 + Master/bin/i386-linux/fixtpps | 28 + Master/bin/i386-linux/fixwfwps | 33 + Master/bin/i386-linux/fixwpps | 31 + Master/bin/i386-linux/fixwwps | 20 + Master/bin/i386-linux/fmtutil | 901 ++ Master/bin/i386-linux/fmtutil-sys | 29 + Master/bin/i386-linux/fontinst | 16 + Master/bin/i386-linux/gbklatex | 43 + Master/bin/i386-linux/gbkpdflatex | 43 + Master/bin/i386-linux/getafm | 358 + Master/bin/i386-linux/getnonfreefonts | 1 + Master/bin/i386-linux/getnonfreefonts-sys | 1 + Master/bin/i386-linux/gftodvi | Bin 0 -> 80220 bytes Master/bin/i386-linux/gftopk | Bin 0 -> 66340 bytes Master/bin/i386-linux/gftype | Bin 0 -> 66184 bytes Master/bin/i386-linux/giftopng | 4 + Master/bin/i386-linux/gsftopk | Bin 0 -> 66044 bytes Master/bin/i386-linux/hbf2gf | Bin 0 -> 74256 bytes Master/bin/i386-linux/ht | 7 + Master/bin/i386-linux/htcontext | 7 + Master/bin/i386-linux/htlatex | 9 + Master/bin/i386-linux/htmex | 9 + Master/bin/i386-linux/httex | 9 + Master/bin/i386-linux/httexi | 10 + Master/bin/i386-linux/includeres | 46 + Master/bin/i386-linux/info | Bin 0 -> 122960 bytes Master/bin/i386-linux/infokey | Bin 0 -> 19640 bytes Master/bin/i386-linux/install-info | Bin 0 -> 21188 bytes Master/bin/i386-linux/jadetex | 1 + Master/bin/i386-linux/kpseaccess | Bin 0 -> 4072 bytes Master/bin/i386-linux/kpsepath | 1 + Master/bin/i386-linux/kpsereadlink | Bin 0 -> 3992 bytes Master/bin/i386-linux/kpsestat | Bin 0 -> 4556 bytes Master/bin/i386-linux/kpsetool | 118 + Master/bin/i386-linux/kpsewhere | 63 + Master/bin/i386-linux/kpsewhich | Bin 0 -> 200425 bytes Master/bin/i386-linux/kpsexpand | 1 + Master/bin/i386-linux/lacheck | Bin 0 -> 48128 bytes Master/bin/i386-linux/lambda | 1 + Master/bin/i386-linux/lamed | 1 + Master/bin/i386-linux/latex | 1 + Master/bin/i386-linux/luatex | Bin 0 -> 3549040 bytes Master/bin/i386-linux/luatools | 2 + Master/bin/i386-linux/mag | Bin 0 -> 4388 bytes Master/bin/i386-linux/makeglossaries | 1 + Master/bin/i386-linux/makeindex | Bin 0 -> 117848 bytes Master/bin/i386-linux/makeinfo | Bin 0 -> 175928 bytes Master/bin/i386-linux/makempx | Bin 0 -> 58132 bytes Master/bin/i386-linux/makempy | 2 + Master/bin/i386-linux/mex | 1 + Master/bin/i386-linux/mf | Bin 0 -> 239396 bytes Master/bin/i386-linux/mf-nowin | Bin 0 -> 234864 bytes Master/bin/i386-linux/mft | Bin 0 -> 87092 bytes Master/bin/i386-linux/mk4ht | 346 + Master/bin/i386-linux/mkindex | 39 + Master/bin/i386-linux/mkjobtexmf | 799 ++ Master/bin/i386-linux/mkocp | 6 + Master/bin/i386-linux/mkofm | 3 + Master/bin/i386-linux/mktexfmt | 1 + Master/bin/i386-linux/mktexlsr | 163 + Master/bin/i386-linux/mktexmf | 139 + Master/bin/i386-linux/mktexpk | 264 + Master/bin/i386-linux/mktextfm | 152 + Master/bin/i386-linux/mllatex | 1 + Master/bin/i386-linux/mltex | 1 + Master/bin/i386-linux/mmafm | Bin 0 -> 178312 bytes Master/bin/i386-linux/mmpfb | Bin 0 -> 236116 bytes Master/bin/i386-linux/mpost | Bin 0 -> 331056 bytes Master/bin/i386-linux/mpstools | 2 + Master/bin/i386-linux/mpto | Bin 0 -> 7104 bytes Master/bin/i386-linux/mptopdf | 2 + Master/bin/i386-linux/mtxtools | 2 + Master/bin/i386-linux/musixflx | Bin 0 -> 13888 bytes Master/bin/i386-linux/newer | Bin 0 -> 4684 bytes Master/bin/i386-linux/odvicopy | Bin 0 -> 92176 bytes Master/bin/i386-linux/odvips | 1 + Master/bin/i386-linux/odvitype | Bin 0 -> 78660 bytes Master/bin/i386-linux/ofm2opl | 1 + Master/bin/i386-linux/omega | Bin 0 -> 419744 bytes Master/bin/i386-linux/omfonts | Bin 0 -> 130080 bytes Master/bin/i386-linux/opl2ofm | 1 + Master/bin/i386-linux/otangle | Bin 0 -> 40128 bytes Master/bin/i386-linux/otfinfo | Bin 0 -> 376096 bytes Master/bin/i386-linux/otftotfm | Bin 0 -> 672604 bytes Master/bin/i386-linux/otp2ocp | Bin 0 -> 70052 bytes Master/bin/i386-linux/outocp | Bin 0 -> 53524 bytes Master/bin/i386-linux/ovf2ovp | 1 + Master/bin/i386-linux/ovp2ovf | 1 + Master/bin/i386-linux/oxdvi | 1 + Master/bin/i386-linux/patgen | Bin 0 -> 29420 bytes Master/bin/i386-linux/pdfclose | Bin 0 -> 6580 bytes Master/bin/i386-linux/pdfcrop | 1 + Master/bin/i386-linux/pdfcslatex | 1 + Master/bin/i386-linux/pdfcsplain | 1 + Master/bin/i386-linux/pdfetex | 1 + Master/bin/i386-linux/pdfjadetex | 1 + Master/bin/i386-linux/pdflatex | 1 + Master/bin/i386-linux/pdfmex | 1 + Master/bin/i386-linux/pdfopen | Bin 0 -> 7284 bytes Master/bin/i386-linux/pdftex | Bin 0 -> 1175876 bytes Master/bin/i386-linux/pdfthumb | 29 + Master/bin/i386-linux/pdftools | 2 + Master/bin/i386-linux/pdftosrc | Bin 0 -> 416580 bytes Master/bin/i386-linux/pdfxmltex | 1 + Master/bin/i386-linux/perltex | 1 + Master/bin/i386-linux/pfb2pfa | Bin 0 -> 6200 bytes Master/bin/i386-linux/physe | 1 + Master/bin/i386-linux/phyzzx | 1 + Master/bin/i386-linux/pk2bm | Bin 0 -> 8840 bytes Master/bin/i386-linux/pkfix | 1 + Master/bin/i386-linux/pktogf | Bin 0 -> 62588 bytes Master/bin/i386-linux/pktype | Bin 0 -> 58248 bytes Master/bin/i386-linux/pltotf | Bin 0 -> 45384 bytes Master/bin/i386-linux/pooltype | Bin 0 -> 15992 bytes Master/bin/i386-linux/ppower4 | 1 + Master/bin/i386-linux/ps2eps | 1 + Master/bin/i386-linux/ps2frag | 11 + Master/bin/i386-linux/ps2pk | Bin 0 -> 152768 bytes Master/bin/i386-linux/ps4pdf | 133 + Master/bin/i386-linux/psbook | Bin 0 -> 10440 bytes Master/bin/i386-linux/pslatex | 46 + Master/bin/i386-linux/psmerge | 85 + Master/bin/i386-linux/psnup | Bin 0 -> 17020 bytes Master/bin/i386-linux/psresize | Bin 0 -> 15484 bytes Master/bin/i386-linux/psselect | Bin 0 -> 11240 bytes Master/bin/i386-linux/pstopdf | 2 + Master/bin/i386-linux/pstops | Bin 0 -> 15804 bytes Master/bin/i386-linux/rlxtools | 2 + Master/bin/i386-linux/rubibtex | 110 + Master/bin/i386-linux/rumakeindex | 77 + Master/bin/i386-linux/runtools | 2 + Master/bin/i386-linux/showchar | 118 + Master/bin/i386-linux/simpdftex | 570 + Master/bin/i386-linux/sjisconv | Bin 0 -> 3360 bytes Master/bin/i386-linux/sjislatex | 43 + Master/bin/i386-linux/sjispdflatex | 43 + Master/bin/i386-linux/t1ascii | Bin 0 -> 20232 bytes Master/bin/i386-linux/t1asm | Bin 0 -> 24840 bytes Master/bin/i386-linux/t1binary | Bin 0 -> 19720 bytes Master/bin/i386-linux/t1disasm | Bin 0 -> 24040 bytes Master/bin/i386-linux/t1dotlessj | Bin 0 -> 229576 bytes Master/bin/i386-linux/t1lint | Bin 0 -> 186916 bytes Master/bin/i386-linux/t1mac | Bin 0 -> 31464 bytes Master/bin/i386-linux/t1reencode | Bin 0 -> 227960 bytes Master/bin/i386-linux/t1testpage | Bin 0 -> 208372 bytes Master/bin/i386-linux/t1unmac | Bin 0 -> 25832 bytes Master/bin/i386-linux/t4ht | Bin 0 -> 70260 bytes Master/bin/i386-linux/tangle | Bin 0 -> 79156 bytes Master/bin/i386-linux/tcdialog | Bin 0 -> 118904 bytes Master/bin/i386-linux/tex | Bin 0 -> 263748 bytes Master/bin/i386-linux/tex4ht | Bin 0 -> 128820 bytes Master/bin/i386-linux/texconfig | 1439 +++ Master/bin/i386-linux/texconfig-dialog | 495 + Master/bin/i386-linux/texconfig-sys | 32 + Master/bin/i386-linux/texcount | 1 + Master/bin/i386-linux/texdoc | 206 + Master/bin/i386-linux/texdoctk | 1 + Master/bin/i386-linux/texexec | 2 + Master/bin/i386-linux/texfont | 2 + Master/bin/i386-linux/texhash | 1 + Master/bin/i386-linux/texi2dvi | 836 ++ Master/bin/i386-linux/texi2html | 17536 ++++++++++++++++++++++++++++ Master/bin/i386-linux/texi2pdf | 19 + Master/bin/i386-linux/texindex | Bin 0 -> 14664 bytes Master/bin/i386-linux/texlinks | 322 + Master/bin/i386-linux/texlua | 1 + Master/bin/i386-linux/texmfstart | 2580 ++++ Master/bin/i386-linux/texsis | 1 + Master/bin/i386-linux/textools | 2 + Master/bin/i386-linux/texutil | 2 + Master/bin/i386-linux/tftopl | Bin 0 -> 74356 bytes Master/bin/i386-linux/thumbpdf | 1 + Master/bin/i386-linux/tie | Bin 0 -> 8648 bytes Master/bin/i386-linux/tmftools | 2 + Master/bin/i386-linux/tpic2pdftex | 407 + Master/bin/i386-linux/ttf2afm | Bin 0 -> 71100 bytes Master/bin/i386-linux/ttf2pk | Bin 0 -> 199388 bytes Master/bin/i386-linux/ttf2tfm | Bin 0 -> 217400 bytes Master/bin/i386-linux/ttftotype42 | Bin 0 -> 236416 bytes Master/bin/i386-linux/updmap | 1402 +++ Master/bin/i386-linux/updmap-sys | 30 + Master/bin/i386-linux/utf8mex | 1 + Master/bin/i386-linux/vftovp | Bin 0 -> 86748 bytes Master/bin/i386-linux/vpe | 1 + Master/bin/i386-linux/vptovf | Bin 0 -> 56616 bytes Master/bin/i386-linux/weave | Bin 0 -> 94856 bytes Master/bin/i386-linux/wordcount.sh | 72 + Master/bin/i386-linux/xdvi | 46 + Master/bin/i386-linux/xdvi-xaw.bin | Bin 0 -> 706636 bytes Master/bin/i386-linux/xdvipdfmx | Bin 0 -> 1117544 bytes Master/bin/i386-linux/xdvizilla | 134 + Master/bin/i386-linux/xelatex | 1 + Master/bin/i386-linux/xetex | Bin 0 -> 7953180 bytes Master/bin/i386-linux/xmltex | 1 + Master/bin/i386-linux/xmltools | 2 + 272 files changed, 32270 insertions(+) create mode 120000 Master/bin/i386-linux/a2ping create mode 100755 Master/bin/i386-linux/afm2pl create mode 100755 Master/bin/i386-linux/afm2tfm create mode 100755 Master/bin/i386-linux/aleph create mode 100755 Master/bin/i386-linux/allcm create mode 120000 Master/bin/i386-linux/allec create mode 100755 Master/bin/i386-linux/allneeded create mode 120000 Master/bin/i386-linux/amstex create mode 100755 Master/bin/i386-linux/bbox create mode 120000 Master/bin/i386-linux/bg5+latex create mode 120000 Master/bin/i386-linux/bg5+pdflatex create mode 100755 Master/bin/i386-linux/bg5conv create mode 100755 Master/bin/i386-linux/bg5latex create mode 100755 Master/bin/i386-linux/bg5pdflatex create mode 100755 Master/bin/i386-linux/bibtex create mode 100755 Master/bin/i386-linux/bibtex8 create mode 100755 Master/bin/i386-linux/cef5conv create mode 100755 Master/bin/i386-linux/cef5latex create mode 100755 Master/bin/i386-linux/cef5pdflatex create mode 100755 Master/bin/i386-linux/cefconv create mode 100755 Master/bin/i386-linux/ceflatex create mode 100755 Master/bin/i386-linux/cefpdflatex create mode 100755 Master/bin/i386-linux/cefsconv create mode 100755 Master/bin/i386-linux/cefslatex create mode 100755 Master/bin/i386-linux/cefspdflatex create mode 100755 Master/bin/i386-linux/cfftot1 create mode 120000 Master/bin/i386-linux/cslatex create mode 120000 Master/bin/i386-linux/csplain create mode 100755 Master/bin/i386-linux/ctangle create mode 100755 Master/bin/i386-linux/ctie create mode 100755 Master/bin/i386-linux/ctxtools create mode 100755 Master/bin/i386-linux/cweave create mode 100755 Master/bin/i386-linux/detex create mode 100755 Master/bin/i386-linux/devnag create mode 100755 Master/bin/i386-linux/disdvi create mode 100755 Master/bin/i386-linux/dmp create mode 100755 Master/bin/i386-linux/dt2dv create mode 100755 Master/bin/i386-linux/dv2dt create mode 100755 Master/bin/i386-linux/dvi2fax create mode 100755 Master/bin/i386-linux/dvi2tty create mode 100755 Master/bin/i386-linux/dvibook create mode 100755 Master/bin/i386-linux/dviconcat create mode 100755 Master/bin/i386-linux/dvicopy create mode 100755 Master/bin/i386-linux/dvidvi create mode 100755 Master/bin/i386-linux/dvihp create mode 100755 Master/bin/i386-linux/dvilj create mode 100755 Master/bin/i386-linux/dvilj2p create mode 100755 Master/bin/i386-linux/dvilj4 create mode 100755 Master/bin/i386-linux/dvilj4l create mode 120000 Master/bin/i386-linux/dvilj6 create mode 100755 Master/bin/i386-linux/dvipdfm create mode 100755 Master/bin/i386-linux/dvipdfmx create mode 100755 Master/bin/i386-linux/dvipdft create mode 100755 Master/bin/i386-linux/dvipng create mode 100755 Master/bin/i386-linux/dvipos create mode 100755 Master/bin/i386-linux/dvips create mode 100755 Master/bin/i386-linux/dvired create mode 100755 Master/bin/i386-linux/dviselect create mode 100755 Master/bin/i386-linux/dvitodvi create mode 100755 Master/bin/i386-linux/dvitomp create mode 100755 Master/bin/i386-linux/dvitype create mode 120000 Master/bin/i386-linux/e2pall create mode 100755 Master/bin/i386-linux/ebb create mode 100755 Master/bin/i386-linux/ebong create mode 120000 Master/bin/i386-linux/eplain create mode 100755 Master/bin/i386-linux/epsffit create mode 120000 Master/bin/i386-linux/epstopdf create mode 120000 Master/bin/i386-linux/etex create mode 100755 Master/bin/i386-linux/exatools create mode 100755 Master/bin/i386-linux/extconv create mode 100755 Master/bin/i386-linux/extractres create mode 100755 Master/bin/i386-linux/fixdlsrps create mode 100755 Master/bin/i386-linux/fixfmps create mode 100755 Master/bin/i386-linux/fixmacps create mode 100755 Master/bin/i386-linux/fixpsditps create mode 100755 Master/bin/i386-linux/fixpspps create mode 100755 Master/bin/i386-linux/fixscribeps create mode 100755 Master/bin/i386-linux/fixtpps create mode 100755 Master/bin/i386-linux/fixwfwps create mode 100755 Master/bin/i386-linux/fixwpps create mode 100755 Master/bin/i386-linux/fixwwps create mode 100755 Master/bin/i386-linux/fmtutil create mode 100755 Master/bin/i386-linux/fmtutil-sys create mode 100755 Master/bin/i386-linux/fontinst create mode 100755 Master/bin/i386-linux/gbklatex create mode 100755 Master/bin/i386-linux/gbkpdflatex create mode 100755 Master/bin/i386-linux/getafm create mode 120000 Master/bin/i386-linux/getnonfreefonts create mode 100644 Master/bin/i386-linux/getnonfreefonts-sys create mode 100755 Master/bin/i386-linux/gftodvi create mode 100755 Master/bin/i386-linux/gftopk create mode 100755 Master/bin/i386-linux/gftype create mode 100755 Master/bin/i386-linux/giftopng create mode 100755 Master/bin/i386-linux/gsftopk create mode 100755 Master/bin/i386-linux/hbf2gf create mode 100755 Master/bin/i386-linux/ht create mode 100755 Master/bin/i386-linux/htcontext create mode 100755 Master/bin/i386-linux/htlatex create mode 100755 Master/bin/i386-linux/htmex create mode 100755 Master/bin/i386-linux/httex create mode 100755 Master/bin/i386-linux/httexi create mode 100755 Master/bin/i386-linux/includeres create mode 100755 Master/bin/i386-linux/info create mode 100755 Master/bin/i386-linux/infokey create mode 100755 Master/bin/i386-linux/install-info create mode 120000 Master/bin/i386-linux/jadetex create mode 100755 Master/bin/i386-linux/kpseaccess create mode 120000 Master/bin/i386-linux/kpsepath create mode 100755 Master/bin/i386-linux/kpsereadlink create mode 100755 Master/bin/i386-linux/kpsestat create mode 100755 Master/bin/i386-linux/kpsetool create mode 100755 Master/bin/i386-linux/kpsewhere create mode 100755 Master/bin/i386-linux/kpsewhich create mode 120000 Master/bin/i386-linux/kpsexpand create mode 100755 Master/bin/i386-linux/lacheck create mode 120000 Master/bin/i386-linux/lambda create mode 120000 Master/bin/i386-linux/lamed create mode 120000 Master/bin/i386-linux/latex create mode 100755 Master/bin/i386-linux/luatex create mode 100755 Master/bin/i386-linux/luatools create mode 100755 Master/bin/i386-linux/mag create mode 120000 Master/bin/i386-linux/makeglossaries create mode 100755 Master/bin/i386-linux/makeindex create mode 100755 Master/bin/i386-linux/makeinfo create mode 100755 Master/bin/i386-linux/makempx create mode 100755 Master/bin/i386-linux/makempy create mode 120000 Master/bin/i386-linux/mex create mode 100755 Master/bin/i386-linux/mf create mode 100755 Master/bin/i386-linux/mf-nowin create mode 100755 Master/bin/i386-linux/mft create mode 100755 Master/bin/i386-linux/mk4ht create mode 100755 Master/bin/i386-linux/mkindex create mode 100755 Master/bin/i386-linux/mkjobtexmf create mode 100755 Master/bin/i386-linux/mkocp create mode 100755 Master/bin/i386-linux/mkofm create mode 120000 Master/bin/i386-linux/mktexfmt create mode 100755 Master/bin/i386-linux/mktexlsr create mode 100755 Master/bin/i386-linux/mktexmf create mode 100755 Master/bin/i386-linux/mktexpk create mode 100755 Master/bin/i386-linux/mktextfm create mode 120000 Master/bin/i386-linux/mllatex create mode 120000 Master/bin/i386-linux/mltex create mode 100755 Master/bin/i386-linux/mmafm create mode 100755 Master/bin/i386-linux/mmpfb create mode 100755 Master/bin/i386-linux/mpost create mode 100755 Master/bin/i386-linux/mpstools create mode 100755 Master/bin/i386-linux/mpto create mode 100755 Master/bin/i386-linux/mptopdf create mode 100755 Master/bin/i386-linux/mtxtools create mode 100755 Master/bin/i386-linux/musixflx create mode 100755 Master/bin/i386-linux/newer create mode 100755 Master/bin/i386-linux/odvicopy create mode 120000 Master/bin/i386-linux/odvips create mode 100755 Master/bin/i386-linux/odvitype create mode 120000 Master/bin/i386-linux/ofm2opl create mode 100755 Master/bin/i386-linux/omega create mode 100755 Master/bin/i386-linux/omfonts create mode 120000 Master/bin/i386-linux/opl2ofm create mode 100755 Master/bin/i386-linux/otangle create mode 100755 Master/bin/i386-linux/otfinfo create mode 100755 Master/bin/i386-linux/otftotfm create mode 100755 Master/bin/i386-linux/otp2ocp create mode 100755 Master/bin/i386-linux/outocp create mode 120000 Master/bin/i386-linux/ovf2ovp create mode 120000 Master/bin/i386-linux/ovp2ovf create mode 120000 Master/bin/i386-linux/oxdvi create mode 100755 Master/bin/i386-linux/patgen create mode 100755 Master/bin/i386-linux/pdfclose create mode 120000 Master/bin/i386-linux/pdfcrop create mode 120000 Master/bin/i386-linux/pdfcslatex create mode 120000 Master/bin/i386-linux/pdfcsplain create mode 120000 Master/bin/i386-linux/pdfetex create mode 120000 Master/bin/i386-linux/pdfjadetex create mode 120000 Master/bin/i386-linux/pdflatex create mode 120000 Master/bin/i386-linux/pdfmex create mode 100755 Master/bin/i386-linux/pdfopen create mode 100755 Master/bin/i386-linux/pdftex create mode 100755 Master/bin/i386-linux/pdfthumb create mode 100755 Master/bin/i386-linux/pdftools create mode 100755 Master/bin/i386-linux/pdftosrc create mode 120000 Master/bin/i386-linux/pdfxmltex create mode 120000 Master/bin/i386-linux/perltex create mode 100755 Master/bin/i386-linux/pfb2pfa create mode 120000 Master/bin/i386-linux/physe create mode 120000 Master/bin/i386-linux/phyzzx create mode 100755 Master/bin/i386-linux/pk2bm create mode 120000 Master/bin/i386-linux/pkfix create mode 100755 Master/bin/i386-linux/pktogf create mode 100755 Master/bin/i386-linux/pktype create mode 100755 Master/bin/i386-linux/pltotf create mode 100755 Master/bin/i386-linux/pooltype create mode 120000 Master/bin/i386-linux/ppower4 create mode 120000 Master/bin/i386-linux/ps2eps create mode 100755 Master/bin/i386-linux/ps2frag create mode 100755 Master/bin/i386-linux/ps2pk create mode 100755 Master/bin/i386-linux/ps4pdf create mode 100755 Master/bin/i386-linux/psbook create mode 100755 Master/bin/i386-linux/pslatex create mode 100755 Master/bin/i386-linux/psmerge create mode 100755 Master/bin/i386-linux/psnup create mode 100755 Master/bin/i386-linux/psresize create mode 100755 Master/bin/i386-linux/psselect create mode 100755 Master/bin/i386-linux/pstopdf create mode 100755 Master/bin/i386-linux/pstops create mode 100755 Master/bin/i386-linux/rlxtools create mode 100755 Master/bin/i386-linux/rubibtex create mode 100755 Master/bin/i386-linux/rumakeindex create mode 100755 Master/bin/i386-linux/runtools create mode 100755 Master/bin/i386-linux/showchar create mode 100755 Master/bin/i386-linux/simpdftex create mode 100755 Master/bin/i386-linux/sjisconv create mode 100755 Master/bin/i386-linux/sjislatex create mode 100755 Master/bin/i386-linux/sjispdflatex create mode 100755 Master/bin/i386-linux/t1ascii create mode 100755 Master/bin/i386-linux/t1asm create mode 100755 Master/bin/i386-linux/t1binary create mode 100755 Master/bin/i386-linux/t1disasm create mode 100755 Master/bin/i386-linux/t1dotlessj create mode 100755 Master/bin/i386-linux/t1lint create mode 100755 Master/bin/i386-linux/t1mac create mode 100755 Master/bin/i386-linux/t1reencode create mode 100755 Master/bin/i386-linux/t1testpage create mode 100755 Master/bin/i386-linux/t1unmac create mode 100755 Master/bin/i386-linux/t4ht create mode 100755 Master/bin/i386-linux/tangle create mode 100755 Master/bin/i386-linux/tcdialog create mode 100755 Master/bin/i386-linux/tex create mode 100755 Master/bin/i386-linux/tex4ht create mode 100755 Master/bin/i386-linux/texconfig create mode 100755 Master/bin/i386-linux/texconfig-dialog create mode 100755 Master/bin/i386-linux/texconfig-sys create mode 120000 Master/bin/i386-linux/texcount create mode 100755 Master/bin/i386-linux/texdoc create mode 120000 Master/bin/i386-linux/texdoctk create mode 100755 Master/bin/i386-linux/texexec create mode 100755 Master/bin/i386-linux/texfont create mode 120000 Master/bin/i386-linux/texhash create mode 100755 Master/bin/i386-linux/texi2dvi create mode 100755 Master/bin/i386-linux/texi2html create mode 100755 Master/bin/i386-linux/texi2pdf create mode 100755 Master/bin/i386-linux/texindex create mode 100755 Master/bin/i386-linux/texlinks create mode 120000 Master/bin/i386-linux/texlua create mode 100755 Master/bin/i386-linux/texmfstart create mode 120000 Master/bin/i386-linux/texsis create mode 100755 Master/bin/i386-linux/textools create mode 100755 Master/bin/i386-linux/texutil create mode 100755 Master/bin/i386-linux/tftopl create mode 120000 Master/bin/i386-linux/thumbpdf create mode 100755 Master/bin/i386-linux/tie create mode 100755 Master/bin/i386-linux/tmftools create mode 100755 Master/bin/i386-linux/tpic2pdftex create mode 100755 Master/bin/i386-linux/ttf2afm create mode 100755 Master/bin/i386-linux/ttf2pk create mode 100755 Master/bin/i386-linux/ttf2tfm create mode 100755 Master/bin/i386-linux/ttftotype42 create mode 100755 Master/bin/i386-linux/updmap create mode 100755 Master/bin/i386-linux/updmap-sys create mode 120000 Master/bin/i386-linux/utf8mex create mode 100755 Master/bin/i386-linux/vftovp create mode 120000 Master/bin/i386-linux/vpe create mode 100755 Master/bin/i386-linux/vptovf create mode 100755 Master/bin/i386-linux/weave create mode 100644 Master/bin/i386-linux/wordcount.sh create mode 100755 Master/bin/i386-linux/xdvi create mode 100755 Master/bin/i386-linux/xdvi-xaw.bin create mode 100755 Master/bin/i386-linux/xdvipdfmx create mode 100755 Master/bin/i386-linux/xdvizilla create mode 120000 Master/bin/i386-linux/xelatex create mode 100755 Master/bin/i386-linux/xetex create mode 120000 Master/bin/i386-linux/xmltex create mode 100755 Master/bin/i386-linux/xmltools diff --git a/Master/bin/i386-linux/a2ping b/Master/bin/i386-linux/a2ping new file mode 120000 index 00000000000..5cbfe106996 --- /dev/null +++ b/Master/bin/i386-linux/a2ping @@ -0,0 +1 @@ +../../texmf/scripts/a2ping/a2ping.pl \ No newline at end of file diff --git a/Master/bin/i386-linux/afm2pl b/Master/bin/i386-linux/afm2pl new file mode 100755 index 00000000000..8b97b316805 Binary files /dev/null and b/Master/bin/i386-linux/afm2pl differ diff --git a/Master/bin/i386-linux/afm2tfm b/Master/bin/i386-linux/afm2tfm new file mode 100755 index 00000000000..bd62b6cb134 Binary files /dev/null and b/Master/bin/i386-linux/afm2tfm differ diff --git a/Master/bin/i386-linux/aleph b/Master/bin/i386-linux/aleph new file mode 100755 index 00000000000..c202a997145 Binary files /dev/null and b/Master/bin/i386-linux/aleph differ diff --git a/Master/bin/i386-linux/allcm b/Master/bin/i386-linux/allcm new file mode 100755 index 00000000000..945c7c88457 --- /dev/null +++ b/Master/bin/i386-linux/allcm @@ -0,0 +1,118 @@ +#!/bin/sh + +test -f /bin/sh5 && test -z "$RUNNING_SH5" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ + && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } +unset RUNNING_SH5 + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +# hack around a bug in zsh: +test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' + +progname=`basename $0` +tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$ + +case "$progname" in + allec) + encoding=T1;; + *) + encoding=OT1;; +esac + +case "$1" in + -r) + DVIPS=dvired + shift + ;; + *) + DVIPS=dvips + ;; +esac + +body() +{ + cat <<-'eof' + \pagestyle{empty} + \parindent0in + \hfuzz=\maxdimen + \hbadness=10000 + \textheight9.5in + \textwidth6.5in + \newcommand{\myformula}{\sum a_{b_{c_d}} = c} + \newcommand{\mytext}{text $\mathcal{\myformula}\mathrm{\myformula} + \mathbf{\myformula}\mathsf{\myformula}\mathtt{\myformula} + \mathnormal{\myformula}\mathit{\myformula}$} + + \newcommand{\TestSizes}{{% + \tiny \mytext\scriptsize \mytext\footnotesize \mytext\small \mytext + \normalsize \mytext + \large \mytext\Large \mytext\LARGE \mytext\huge \mytext\Huge \mytext}} + \newcommand{\TestRM}{rm-family: {\rmfamily\TestSizes}\newline} + \newcommand{\TestSF}{sf-family: {\sffamily\TestSizes}\newline} + \newcommand{\TestTT}{tt-family: {\ttfamily\TestSizes}\newline} + \newcommand{\TestFamilies}{\TestRM\TestSF\TestTT\newline} + \newcommand{\TestMD}{md-series: {\mdseries\TestFamilies}} + \newcommand{\TestBF}{bf-series: {\bfseries\TestFamilies}} + \newcommand{\TestSeries}{\TestBF\TestMD\par} + \newcommand{\TestUP}{up-shape: {\upshape\TestSeries}\par} + \newcommand{\TestIT}{it-shape: {\itshape\TestSeries}\par} + \newcommand{\TestSL}{sl-shape: {\slshape\TestSeries}\par} + \newcommand{\TestSC}{sc-shape: {\scshape\TestSeries}\par} + \newcommand{\TestShapes}{\TestUP\TestIT\TestSL\TestSC} + \begin{document} + \TestShapes + \end{document} +eof +} + +head() +{ + echo '\documentclass['$1'pt]{article}' + echo '\usepackage['$encoding']{fontenc}' +} + +# before we create the tmpdir, set trap for cleanup +trap ' + rm -rf $tmpdir + exit 1 +' 1 2 3 7 13 15 + +(umask 077; mkdir "$tmpdir") || { + echo "$progname: failed to create temp directory." >&2 + exit 1 +} + +cd $tmpdir || exit 1 +echo >&2 +echo "---------------------------------------------------------------------" >&2 +echo ">>>>>>>>>>> Generating testfiles for 10pt, 11pt and 12pt. <<<<<<<<<<" >&2 +echo "---------------------------------------------------------------------" >&2 +head 10 > allcm10.tex +head 11 > allcm11.tex +head 12 > allcm12.tex +body >> allcm10.tex +body >> allcm11.tex +body >> allcm12.tex + +echo >&2 +echo "---------------------------------------------------------------------" >&2 +echo ">>>>>>>>>>> Calling latex... <<<<<<<<<<" >&2 +echo "---------------------------------------------------------------------" >&2 +latex allcm10 >/dev/null +latex allcm11 >/dev/null +latex allcm12 >/dev/null + +echo >&2 +echo "---------------------------------------------------------------------" >&2 +echo ">>>>>>>>>>> Now, calling $DVIPS to make missing fonts... <<<<<<<<<<" >&2 +echo "---------------------------------------------------------------------" >&2 +$DVIPS ${1+"$@"} -V -f allcm10 > /dev/null +$DVIPS ${1+"$@"} -V -f allcm11 > /dev/null +$DVIPS ${1+"$@"} -V -f allcm12 > /dev/null + +cd / +rm -rf $tmpdir diff --git a/Master/bin/i386-linux/allec b/Master/bin/i386-linux/allec new file mode 120000 index 00000000000..6d5b04d0d35 --- /dev/null +++ b/Master/bin/i386-linux/allec @@ -0,0 +1 @@ +allcm \ No newline at end of file diff --git a/Master/bin/i386-linux/allneeded b/Master/bin/i386-linux/allneeded new file mode 100755 index 00000000000..15c62c84adb --- /dev/null +++ b/Master/bin/i386-linux/allneeded @@ -0,0 +1,46 @@ +#!/bin/sh + +test -f /bin/sh5 && test -z "$RUNNING_SH5" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ + && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } +unset RUNNING_SH5 + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +progname=`basename $0` +dvired=false + +case $1 in +-r) DVIPS="dvips -x707" + shift;; +*) DVIPS=dvips;; +esac + +case $# in +0) echo "Usage: $progname [-r] files ..." >&2 + exit ;; +esac + +findopt= +dvipsopt= + +for i +do + if [ -f $i ] || [ -d $i ]; then + findopt="$findopt $i" + else + dvipsopt="$dvipsopt $i" + fi +done + +find $findopt -name \*.dvi -type f -print | + while true; do + read i + test -z "$i" && exit + echo "processing file '$i' ..." + $DVIPS $dvipsopt -f "$i" >/dev/null + echo + done diff --git a/Master/bin/i386-linux/amstex b/Master/bin/i386-linux/amstex new file mode 120000 index 00000000000..f68cc91498e --- /dev/null +++ b/Master/bin/i386-linux/amstex @@ -0,0 +1 @@ +pdftex \ No newline at end of file diff --git a/Master/bin/i386-linux/bbox b/Master/bin/i386-linux/bbox new file mode 100755 index 00000000000..ad5a55372c5 Binary files /dev/null and b/Master/bin/i386-linux/bbox differ diff --git a/Master/bin/i386-linux/bg5+latex b/Master/bin/i386-linux/bg5+latex new file mode 120000 index 00000000000..1366a36e76c --- /dev/null +++ b/Master/bin/i386-linux/bg5+latex @@ -0,0 +1 @@ +gbklatex \ No newline at end of file diff --git a/Master/bin/i386-linux/bg5+pdflatex b/Master/bin/i386-linux/bg5+pdflatex new file mode 120000 index 00000000000..1e0ce565ca7 --- /dev/null +++ b/Master/bin/i386-linux/bg5+pdflatex @@ -0,0 +1 @@ +gbkpdflatex \ No newline at end of file diff --git a/Master/bin/i386-linux/bg5conv b/Master/bin/i386-linux/bg5conv new file mode 100755 index 00000000000..e03407182ee Binary files /dev/null and b/Master/bin/i386-linux/bg5conv differ diff --git a/Master/bin/i386-linux/bg5latex b/Master/bin/i386-linux/bg5latex new file mode 100755 index 00000000000..257a8446e21 --- /dev/null +++ b/Master/bin/i386-linux/bg5latex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] latex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +bg5conv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/bg5pdflatex b/Master/bin/i386-linux/bg5pdflatex new file mode 100755 index 00000000000..80adc376a93 --- /dev/null +++ b/Master/bin/i386-linux/bg5pdflatex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] pdflatex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +bg5conv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/bibtex b/Master/bin/i386-linux/bibtex new file mode 100755 index 00000000000..5eb1e96ab61 Binary files /dev/null and b/Master/bin/i386-linux/bibtex differ diff --git a/Master/bin/i386-linux/bibtex8 b/Master/bin/i386-linux/bibtex8 new file mode 100755 index 00000000000..8fd13476bcb Binary files /dev/null and b/Master/bin/i386-linux/bibtex8 differ diff --git a/Master/bin/i386-linux/cef5conv b/Master/bin/i386-linux/cef5conv new file mode 100755 index 00000000000..cf583062739 Binary files /dev/null and b/Master/bin/i386-linux/cef5conv differ diff --git a/Master/bin/i386-linux/cef5latex b/Master/bin/i386-linux/cef5latex new file mode 100755 index 00000000000..7eda1633766 --- /dev/null +++ b/Master/bin/i386-linux/cef5latex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] latex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +cef5conv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/cef5pdflatex b/Master/bin/i386-linux/cef5pdflatex new file mode 100755 index 00000000000..25fe066a53f --- /dev/null +++ b/Master/bin/i386-linux/cef5pdflatex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] pdflatex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +cef5conv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/cefconv b/Master/bin/i386-linux/cefconv new file mode 100755 index 00000000000..772ebf6af74 Binary files /dev/null and b/Master/bin/i386-linux/cefconv differ diff --git a/Master/bin/i386-linux/ceflatex b/Master/bin/i386-linux/ceflatex new file mode 100755 index 00000000000..d34244d9a5b --- /dev/null +++ b/Master/bin/i386-linux/ceflatex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] latex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +cefconv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/cefpdflatex b/Master/bin/i386-linux/cefpdflatex new file mode 100755 index 00000000000..4c7309f2bf2 --- /dev/null +++ b/Master/bin/i386-linux/cefpdflatex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] pdflatex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +cefconv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/cefsconv b/Master/bin/i386-linux/cefsconv new file mode 100755 index 00000000000..c5be844f3d0 Binary files /dev/null and b/Master/bin/i386-linux/cefsconv differ diff --git a/Master/bin/i386-linux/cefslatex b/Master/bin/i386-linux/cefslatex new file mode 100755 index 00000000000..619d08c7577 --- /dev/null +++ b/Master/bin/i386-linux/cefslatex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] latex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +cefsconv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/cefspdflatex b/Master/bin/i386-linux/cefspdflatex new file mode 100755 index 00000000000..02bf6598f71 --- /dev/null +++ b/Master/bin/i386-linux/cefspdflatex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] latex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +cefsconv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/cfftot1 b/Master/bin/i386-linux/cfftot1 new file mode 100755 index 00000000000..4860793aadd Binary files /dev/null and b/Master/bin/i386-linux/cfftot1 differ diff --git a/Master/bin/i386-linux/cslatex b/Master/bin/i386-linux/cslatex new file mode 120000 index 00000000000..f68cc91498e --- /dev/null +++ b/Master/bin/i386-linux/cslatex @@ -0,0 +1 @@ +pdftex \ No newline at end of file diff --git a/Master/bin/i386-linux/csplain b/Master/bin/i386-linux/csplain new file mode 120000 index 00000000000..f68cc91498e --- /dev/null +++ b/Master/bin/i386-linux/csplain @@ -0,0 +1 @@ +pdftex \ No newline at end of file diff --git a/Master/bin/i386-linux/ctangle b/Master/bin/i386-linux/ctangle new file mode 100755 index 00000000000..272552ff8c7 Binary files /dev/null and b/Master/bin/i386-linux/ctangle differ diff --git a/Master/bin/i386-linux/ctie b/Master/bin/i386-linux/ctie new file mode 100755 index 00000000000..a8c860c4ba1 Binary files /dev/null and b/Master/bin/i386-linux/ctie differ diff --git a/Master/bin/i386-linux/ctxtools b/Master/bin/i386-linux/ctxtools new file mode 100755 index 00000000000..84e47bbee3c --- /dev/null +++ b/Master/bin/i386-linux/ctxtools @@ -0,0 +1,2 @@ +#!/bin/sh +texmfstart ctxtools.rb "$@" diff --git a/Master/bin/i386-linux/cweave b/Master/bin/i386-linux/cweave new file mode 100755 index 00000000000..035d320aee8 Binary files /dev/null and b/Master/bin/i386-linux/cweave differ diff --git a/Master/bin/i386-linux/detex b/Master/bin/i386-linux/detex new file mode 100755 index 00000000000..07c506bf3d8 Binary files /dev/null and b/Master/bin/i386-linux/detex differ diff --git a/Master/bin/i386-linux/devnag b/Master/bin/i386-linux/devnag new file mode 100755 index 00000000000..c5e5879b5ef Binary files /dev/null and b/Master/bin/i386-linux/devnag differ diff --git a/Master/bin/i386-linux/disdvi b/Master/bin/i386-linux/disdvi new file mode 100755 index 00000000000..d0205d7f493 Binary files /dev/null and b/Master/bin/i386-linux/disdvi differ diff --git a/Master/bin/i386-linux/dmp b/Master/bin/i386-linux/dmp new file mode 100755 index 00000000000..324b0aff109 Binary files /dev/null and b/Master/bin/i386-linux/dmp differ diff --git a/Master/bin/i386-linux/dt2dv b/Master/bin/i386-linux/dt2dv new file mode 100755 index 00000000000..c0e7ad493ab Binary files /dev/null and b/Master/bin/i386-linux/dt2dv differ diff --git a/Master/bin/i386-linux/dv2dt b/Master/bin/i386-linux/dv2dt new file mode 100755 index 00000000000..218be7089dc Binary files /dev/null and b/Master/bin/i386-linux/dv2dt differ diff --git a/Master/bin/i386-linux/dvi2fax b/Master/bin/i386-linux/dvi2fax new file mode 100755 index 00000000000..fdfa83211eb --- /dev/null +++ b/Master/bin/i386-linux/dvi2fax @@ -0,0 +1,41 @@ +#!/bin/sh +# options for dvips are passwd down + +test -f /bin/sh5 && test -z "$RUNNING_SH5" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ + && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } +unset RUNNING_SH5 + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +# hack around a bug in zsh: +test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' + +progname=`basename "$0"` +help() +{ + echo "Usage: $progname [-hi|-lo] file[.dvi] [options for dvips]" + echo " -hi: use high fax resolution (204x196) (default)" + echo " -lo: use low fax resolution (204x98)" + echo + echo "Example: $progname foo -l 2" +} + +dvipsconf=dfaxhigh; gsdev=dfaxhigh +case $1 in + -hi) gsdev=dfaxhigh; shift;; + -lo) gsdev=dfaxlow; shift;; +esac + +case $# in + 0) help >&2 + exit 1 + ;; +esac + +NAME=`basename "$1" .dvi` +dvips "$@" -P$dvipsconf -f | + gs -q -dSAFER -sDEVICE=$gsdev -sOutputFile="$NAME-%03d.fax" -sNOPAUSE - diff --git a/Master/bin/i386-linux/dvi2tty b/Master/bin/i386-linux/dvi2tty new file mode 100755 index 00000000000..fdc4a1991e8 Binary files /dev/null and b/Master/bin/i386-linux/dvi2tty differ diff --git a/Master/bin/i386-linux/dvibook b/Master/bin/i386-linux/dvibook new file mode 100755 index 00000000000..20dc3050fff Binary files /dev/null and b/Master/bin/i386-linux/dvibook differ diff --git a/Master/bin/i386-linux/dviconcat b/Master/bin/i386-linux/dviconcat new file mode 100755 index 00000000000..d036272eed3 Binary files /dev/null and b/Master/bin/i386-linux/dviconcat differ diff --git a/Master/bin/i386-linux/dvicopy b/Master/bin/i386-linux/dvicopy new file mode 100755 index 00000000000..d0b8c7d5431 Binary files /dev/null and b/Master/bin/i386-linux/dvicopy differ diff --git a/Master/bin/i386-linux/dvidvi b/Master/bin/i386-linux/dvidvi new file mode 100755 index 00000000000..26324b9be02 Binary files /dev/null and b/Master/bin/i386-linux/dvidvi differ diff --git a/Master/bin/i386-linux/dvihp b/Master/bin/i386-linux/dvihp new file mode 100755 index 00000000000..6b149517086 --- /dev/null +++ b/Master/bin/i386-linux/dvihp @@ -0,0 +1,130 @@ +#!/bin/sh +# $Id: dvihp,v 1.3 1996/12/03 19:53:56 karl Exp karl $ +# Run dvicopy, then dvilj[k]. kb@mail.tug.org, 1994. Public domain. +# Try to accept arguments a la dvips, from Thomas Esser. + +: ${DVILJ=dvilj4} # the dvilj variant to run +: ${SPOOL=lpr} # used to print an LJ file +: ${TMPDIR=${TEMP-${TMP-/tmp}}} # for the dvicopy output + +tmpdir="${TMPDIR}"/dvihp$$ +(umask 077; mkdir "$tmpdir") \ + || { echo "cannot create directory \`$tmpdir'."; exit 1; } + +trap ' + cd "${TMPDIR}" + test -d "$tmpdir" && { rm -f "$tmpdir"/*; rmdir "$tmpdir"; } + exit 0 +' 0 1 2 3 6 7 13 15 + +rcs_revision='$Revision: 1.3 $' +version=`set - $rcs_revision; echo $2` + +usage="Usage: `basename $0` [OPTIONS] [DVIFILE[.dvi]]. + Translate the given DVIFILE to Hewlett-Packard PCL by calling dvicopy + and then \$DVILJ (dvilj4 by default). + In the absence of other options, pipe the PCL to \$SPOOL (lpr by default). + + Options are recognized from dvips where possible: +-A print odd pages +-B print even pages +-d # set debug bits to # (see documentation) +-D # set resolution to # +-f run as filter +-l # don't print pages after # +-m manual feed +-n # print # pages +-O #,# set/change paper offset to #,# mm +-o s output to s instead of spooling +-p # don't print pages before # +-Ps pass directly to lpr +-v verbose operation +-x # set magnification to # + +Other options are passed to the dvilj program. + +Email bug reports to tex-k@mail.tug.org." + + +if test $# -eq 0; then + echo "`basename $0`: Missing argument(s)." >&2 + echo "Try \``basename $0` --help' for more information." >&2 + exit 0 +fi + +unset infile opt output +output_opt=-e +verbose=false + +while test $# -gt 0; do + case "$1" in + -help|--help) echo "$usage"; exit 0;; + -version|--version) + echo "`basename $0` (Dviljk 2.6) $version" + echo "There is NO warranty. This script is public domain." + exit 0;; + -A) opt="$opt -D1";; # -A => -D1 (odd pages) + -B) opt="$opt -D2";; # -B -> -D2 (even pages) + -d) shift; opt="$opt --D$1";; # -d => --D (debug) + -d*) opt="$opt `echo $1 | sed s/d/-D/`";; + -D) shift; opt="$opt -R$1";; # -D => -R (resolution) + -f) infile=; output=-;; # -f (run as filter) + -l) shift; opt="$opt -t$1";; # -l => -t (ending page) + -l*) opt="$opt `echo $1 | sed s/l/t/`";; + -m) opt="$opt -A";; # -m => -A (manual feed) + -n) shift; opt="$opt -p$1";; # -n => -p (page count) + -n*) opt="$opt `echo $1 | sed s/^-n/-p/`";; + -o) if test $# -eq 1; then # -o (output file) + # No remaining args, output to foo.lj. + output=`basename $infile .dvi`.lj + else shift; output="$1"; fi;; + -o*) output="`echo $1 | sed 's/^-o//'`";; + -O) shift; x=`echo $1 | sed 's/,.*//'` # -O => -x, -y (page offsets) + y=`echo $1 | sed 's/.*,//'`; opt="$opt -x$x -y$y";; + -O*) temp="`echo $1 | sed 's/^-O//'`" + x=`echo $temp | sed 's/,.*//'` + y=`echo $temp | sed 's/.*,//'`; + opt="$opt -x$x -y$y";; + -p) shift; opt="$opt -f$1";; # -p => -f (starting page) + -p*) opt="$opt `echo $1 | sed s/p/f/`";; + -P) shift; output=; spool_opt="-P$1";; # -Pprinter + -P*) output=; spool_opt="$1";; + -v) verbose=true; opt="$opt -v";; + -x) shift; opt="$opt -m$1";; # -x => -m (magnification) + -x*) opt="$opt `echo $1 | sed s/x/m/`";; + --) shift; infile="$1"; break;; # -- => end of options + -*) opt="$opt $1";; # pass other options through + *) infile="$1";; + esac + shift +done + +# Make sure the filenames are unique on MS-DOS +vfless_dvi="$tmpdir"/dvi$$.vf + +# Expand VF references. +# If $infile is null, this will read standard input. +# dvilj can't read from a pipe, so always write to a file. +$verbose && echo "Running dvicopy $infile >$vfless_dvi" >&2 +if dvicopy $infile >"$vfless_dvi"; then :; else + echo "$0: dvicopy $infile failed." >&2 + exit 1 +fi +$verbose && ls -l "$vfless_dvi" >&2 + +if test -z "$output"; then + output=- # output to stdout + # Doing this pipe means the true exit status might get lost, but it + # seems worth it to avoid the temporary file. (Bad enough to have one.) + maybe_spool_cmd="| $SPOOL $spool_opt" +else + maybe_spool_cmd= +fi + +# Translate DVI to LJ. +cmd="$DVILJ $opt $output_opt$output \"$vfless_dvi\" $maybe_spool_cmd" +$verbose && echo "Running $cmd" >&2 +if eval $cmd; then :; else + echo "$0: $DVILJ failed." >&2 + exit 2 +fi diff --git a/Master/bin/i386-linux/dvilj b/Master/bin/i386-linux/dvilj new file mode 100755 index 00000000000..c4fccf8c633 Binary files /dev/null and b/Master/bin/i386-linux/dvilj differ diff --git a/Master/bin/i386-linux/dvilj2p b/Master/bin/i386-linux/dvilj2p new file mode 100755 index 00000000000..e4bc70733e8 Binary files /dev/null and b/Master/bin/i386-linux/dvilj2p differ diff --git a/Master/bin/i386-linux/dvilj4 b/Master/bin/i386-linux/dvilj4 new file mode 100755 index 00000000000..58b79ab56ee Binary files /dev/null and b/Master/bin/i386-linux/dvilj4 differ diff --git a/Master/bin/i386-linux/dvilj4l b/Master/bin/i386-linux/dvilj4l new file mode 100755 index 00000000000..2a90afda461 Binary files /dev/null and b/Master/bin/i386-linux/dvilj4l differ diff --git a/Master/bin/i386-linux/dvilj6 b/Master/bin/i386-linux/dvilj6 new file mode 120000 index 00000000000..576e6e449cd --- /dev/null +++ b/Master/bin/i386-linux/dvilj6 @@ -0,0 +1 @@ +dvilj4 \ No newline at end of file diff --git a/Master/bin/i386-linux/dvipdfm b/Master/bin/i386-linux/dvipdfm new file mode 100755 index 00000000000..e1abaa114de Binary files /dev/null and b/Master/bin/i386-linux/dvipdfm differ diff --git a/Master/bin/i386-linux/dvipdfmx b/Master/bin/i386-linux/dvipdfmx new file mode 100755 index 00000000000..c6e6f0e4f9d Binary files /dev/null and b/Master/bin/i386-linux/dvipdfmx differ diff --git a/Master/bin/i386-linux/dvipdft b/Master/bin/i386-linux/dvipdft new file mode 100755 index 00000000000..db53bd2f5a0 --- /dev/null +++ b/Master/bin/i386-linux/dvipdft @@ -0,0 +1,130 @@ +#!/bin/sh + +# +# dvipdft, completely rewtitten by Thomas Esser for teTeX after an +# original script by Mark A. Wicks +# +# Thomas Esser. Public Domain. +# + +# This script makes a first (fast) run with dvipdfm, then calls gs on +# the resulting pdf file to get the thumbnails and finally calls dvipdfm. + +test -f /bin/sh5 && test -z "$RUNNING_SH5" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ + && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } +unset RUNNING_SH5 + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +# hack around a bug in zsh: +test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' + +progname=dvipdft +version=1111942378 # seconds since `00:00:00 1970-01-01 UTC' + # date '+%s' (with GNU date) + +help="Usage: $progname [options] dvifile + $progname --help + $progname --version" + +tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$ + +quoteit() +{ + echo "x$1" | sed "s@.@@; s@'@'\\\\''@; s@^@'@; s@\$@'@" +} + +# process args 1 to (n-1) and scan for a -o argument keep a properly +# quoted backup of the options, so that they can be restored later +unset s outfile +while test $# -gt 1; do + case $1 in + -o) outfile=$2;; + esac + s="$s${s+ }"`quoteit "$1"` + shift +done + +# check for last argument +case $1 in + --help) + echo "$help" + exit 0 + ;; + --version) + echo "$progname version $version by Thomas Esser" + exit 0 + ;; + "") + echo "$help" + exit 1 + ;; +esac + +# args 1 to (n-1) are gone, last one must be the dvifile +dvifile=$1 + +# outfile comes from -o argument, else it is derived from the input file +test -n "$outfile" \ + || outfile=`echo "$dvifile" | sed 's@.*/@@; s@\.dvi$@@; s@$@.pdf@'` + +# outBase is part of the thumbname files just as dvipdfm expects them: +outBase=`echo "$outfile" | sed 's@\.pdf$@@'` + +# restore args 1 to (n-1): +eval set x "$s"; shift + +# Run dvipdfm with the fastest options for the first pass +echo "$progname: running dvipdfm $@ -e -z0 $dvifile" >&2 +dvipdfm ${1+"$@"} -e -z0 "$dvifile" || { + echo "$progname: dvipdfm failed." >&2 + exit 1 +} + +# before we create the tmpdir, set trap for cleanup +trap ' + rm -rf $tmpdir + exit 1 +' 1 2 3 7 13 15 + +mkdir "$tmpdir" || { + echo "$progname: failed to create temp directory." >&2 + exit 1 +} + +# if outBase contains a /, we might need to create a directory +case $outBase in + */*) + fq=`echo "$tmpdir/$outBase" | sed 's@//@/@g; s@/[^/]*$@@'` + test -d "$fq" || mkdir -p "$fq" || { + echo "$progname: failed to create temp thumbnail directory." >&2 + rm -rf $tmpdir + exit 1 + } + ;; +esac + +# run gs +echo "$progname: running gs" >&2 +gs -r10 -dNOPAUSE -dBATCH -sDEVICE=png256 \ + -sOutputFile="$tmpdir/$outBase.%d" "$outfile" || { + echo "$progname: gs failed." >&2 + rm -rf $tmpdir + exit 1 +} + +# run dvipdfm with the users specified options for the last pass +echo "$progname: running dvipdfm -dt $@ $dvifile" >&2 +TMP=$tmpdir dvipdfm -dt ${1+"$@"} "$dvifile" || { + echo "$progname: dvipdfm failed." >&2 + rm -rf $tmpdir + exit 1 +} + +# nothing failed, so cleanup and report success to caller +rm -rf $tmpdir +exit 0 diff --git a/Master/bin/i386-linux/dvipng b/Master/bin/i386-linux/dvipng new file mode 100755 index 00000000000..75c435d4a38 Binary files /dev/null and b/Master/bin/i386-linux/dvipng differ diff --git a/Master/bin/i386-linux/dvipos b/Master/bin/i386-linux/dvipos new file mode 100755 index 00000000000..1ef999091a4 Binary files /dev/null and b/Master/bin/i386-linux/dvipos differ diff --git a/Master/bin/i386-linux/dvips b/Master/bin/i386-linux/dvips new file mode 100755 index 00000000000..d44cad6005c Binary files /dev/null and b/Master/bin/i386-linux/dvips differ diff --git a/Master/bin/i386-linux/dvired b/Master/bin/i386-linux/dvired new file mode 100755 index 00000000000..4eb3586119d --- /dev/null +++ b/Master/bin/i386-linux/dvired @@ -0,0 +1,98 @@ +#!/bin/sh +#============================================================================== +# Version: 0.3 +# Module: dvired +# Purpose: Translate dvi-file into postscript with reduced output size. +# Two logical pages will be put on onto each physical sheet of +# paper. +# System: Linux. UNIX(tm) systems may work as well :-) +# Requires: pstops (http://www.dcs.ed.ac.uk/home/ajcd/psutils/), dvips +# Created: 19.11.1992 +# Last Change: 13.08.1999 +# Language: sh +# Author: Thomas Esser +# Address: te@dbs.uni-hannover.de +# Copyright: (c) 1994, 1999 by Thomas Esser +# Copying: GNU GENERAL PUBLIC LICENSE +#============================================================================== + +test -f /bin/sh5 && test -z "$RUNNING_SH5" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ + && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } +unset RUNNING_SH5 + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +help() +{ + cat < "$of" + ;; +esac diff --git a/Master/bin/i386-linux/dviselect b/Master/bin/i386-linux/dviselect new file mode 100755 index 00000000000..1394d447100 Binary files /dev/null and b/Master/bin/i386-linux/dviselect differ diff --git a/Master/bin/i386-linux/dvitodvi b/Master/bin/i386-linux/dvitodvi new file mode 100755 index 00000000000..c7abf24c497 Binary files /dev/null and b/Master/bin/i386-linux/dvitodvi differ diff --git a/Master/bin/i386-linux/dvitomp b/Master/bin/i386-linux/dvitomp new file mode 100755 index 00000000000..1c01e08a7f8 Binary files /dev/null and b/Master/bin/i386-linux/dvitomp differ diff --git a/Master/bin/i386-linux/dvitype b/Master/bin/i386-linux/dvitype new file mode 100755 index 00000000000..713223383ee Binary files /dev/null and b/Master/bin/i386-linux/dvitype differ diff --git a/Master/bin/i386-linux/e2pall b/Master/bin/i386-linux/e2pall new file mode 120000 index 00000000000..47465883225 --- /dev/null +++ b/Master/bin/i386-linux/e2pall @@ -0,0 +1 @@ +../../texmf/scripts/tetex/e2pall.pl \ No newline at end of file diff --git a/Master/bin/i386-linux/ebb b/Master/bin/i386-linux/ebb new file mode 100755 index 00000000000..dc4a6c6538e Binary files /dev/null and b/Master/bin/i386-linux/ebb differ diff --git a/Master/bin/i386-linux/ebong b/Master/bin/i386-linux/ebong new file mode 100755 index 00000000000..ef59012e3bc --- /dev/null +++ b/Master/bin/i386-linux/ebong @@ -0,0 +1,390 @@ +# look in newbong +import sre +A='A' +B='B' +S='S' +s='s' +F='F' +X='X' + +NCLINE = 0 +global NCWORD,CWORD + + + +AKSAR={ + 'k' :[B,'k'], + 'kh' :[B,'kh'], + 'g' :[B,'g'], + 'gh' :[B,'gh'], + 'ng' :[B,'NG'], + + 'ch' :[B,'c'], + '^ch' :[B,'ch'], + 'j' :[B,'j'], + 'jh' :[B,'jh'], + '^y' :[B,'NJ'], + '_n' :[B,'NJ'], + + 't' :[B,'T'], + '^th' :[B,'Th'], + 'd' :[B,'D'], + 'dh' :[B,'Dh'], + '^n' :[B,'N'], + + '_t' :[B,'t'], + 'th' :[B,'th'], + '_d' :[B,'d'], + '_dh' :[B,'dh'], + 'n' :[B,'n'], + + + 'p' :[B,'p'], + 'ph' :[B,'ph'], + 'f' :[B,'ph'], + 'b' :[B,'b'], + 'bh' :[B,'bh'], + 'v' :[B,'bh'], + 'm' :[B,'m'], + 'M' :[F,'M'], + + + '^j' :[B,'J'], + 'J' :[B,'J'], + 'r' :[B,'r'], + 'R' :[F,'R'], + 'l' :[B,'l'], + 'L' :[F,'L'], + 'W' :[F,'W'], + 'V' :[F,'W'], + 'h' :[B,'H'], + 'kk' :[B,'kK'], + 'kkm' :[B,'kK/N'], + + 'sh' :[B,'sh'], + '^s' :[B,'Sh'], + '^sh' :[B,'Sh'], + 's' :[B,'s'], + + '^r' :[B,'rh'], + '^rh' :[B,'rhh'], + 'y' :[B,'y'], + 'Y' :[F,'Y'], + 'JY' :[F,'Y'], + '__t' :[B,'t//'], + '^ng' :[B,'NNG'], + ':h' :[B,'h'], + '^' :[F,'NN'], + '_' :[F,':/'], + + + + 'A' :[S,'A'], + 'AA' :[S,'Aa'], + 'I' :[S,'I'], + 'II' :[S,'II'], + 'U' :[S,'U'], + 'UU' :[S,'UU'], + 'RI' :[S,'RR'], + 'E' :[S,'E'], + 'OI' :[S,'OI'], + 'O' :[S,'O'], + 'OU' :[S,'OU'], + + + 'a' :[X,'o',1], + 'aa' :[s,'a',1], + 'i' :[s,'i',-1], + 'ii' :[s,'ii',1], + 'u' :[s,'u',1], + 'uu' :[s,'uu',1], + 'RII' :[s,'rR',1], + 'e' :[s,'e',-1], + 'oi' :[s,'oi',-2], + 'oo' :[s,'oo',11], + 'o' :[X,'o',1], + 'ou' :[s,'ou',12], + + '.' :[F,'.'], + '..' :[F,'..'], + '...' :[F,'...'], + '|' :[F,'|'], + + + '~' :[F,'~'], + '`' :[F,'`'], + '!' :[F,'!'], + '1' :[F,'1'], + '2' :[F,'2'], + 'at' :[F,'@'], + '#' :[F,'#'], + '3' :[F,'3'], + '$' :[F,'$'], + '4' :[F,'4'], + '%' :[F,'%'], + '5' :[F,'5'], + '6' :[F,'6'], + '&' :[F,'&'], + '7' :[F,'7'], + '*' :[F,'*'], + '8' :[F,'8'], + '(' :[F,'('], + '9' :[F,'9'], + ')' :[F,')'], + '0' :[F,'0'], + 'dash' :[F,'-'], + '+' :[F,'+'], + '=' :[F,'='], + '|' :[F,'|'], + '{' :[F,'{'], + '[' :[F,'['], + '}' :[F,'}'], + ']' :[F,']'], + ':' :[F,':'], + ';' :[F,';'], + '"' :[F,'"'], + "'" :[F,"'"], + '<' :[F,'<'], + ',' :[F,','], + '>' :[F,'>'], + '.' :[F,'.'], + '?' :[F,'?'], + '/' :[F,'/']} + + + + + + + + +CATCODES = {'SS' :[S,'','','',1], + 'SB' :[B,'','','',1], + 'BS' :[S,'','','',1], + 'BB' :[B,'','/','',1], + 'BF' :[F,'','','',1], + 'Bs1' :[S,'','','',1], + 'Bs-1':[S,'\*','','*',1], + 'Bs-2':[S,'\*','','*{oi}',0], + 'Bs11':[S,'\*','','*ea',0], + 'Bs12':[S,'\*','','*eou',0], + 'Fs1' :[S,'','','',1], + 'Fs-1':[S,'\*','','*',1], + 'Fs-2':[S,'\*','','*{oi}',0], + 'Fs11':[S,'\*','','*ea',0], + 'Fs12':[S,'\*','','*eou',0], + 'FF' :[F,'','','',1], + 'AX' :[F,'','','',1]} + + +def blocked(line): + #print '@ blocked', line , '->', + m = sre.findall('@[^@]+@',line) + outline = line + if not m : + #print outline + return(outline) + else: + for i in range(len(m)): + s=m[i][:-1].replace(' ','%X%') + outline = outline.replace(m[i],s,1) + #print outline + return(outline) + +def unblock(line): + #print '@unblock', line, '->', + m = sre.findall('@[^\s]+',line) + outline = line + if not m : + #print outline + return(outline) + else: + for i in range(len(m)): + s=m[i].replace('@','').replace('%X%',' ') + outline = outline.replace(m[i],s) + #print outline + return(outline) + + +def printamp(line): + #print '@unblock', line, '->', + m = sre.findall('#AT',line) + outline = line + if not m : + #print outline + return(outline) + else: + for i in range(len(m)): + outline = outline.replace('#AT','@') + #print outline + return(outline) + +def readsyll(syll): + syllparts=[] + start = 0; end = len(syll) + while syll[start : end]: + slice = syll[start : end] + #print slice + if AKSAR.has_key(slice): + syllparts.append(AKSAR[slice]) + start = start + len(slice) + end = len(syll) + else : + end = end -1 + return(syllparts) + +def fuse(list1,list2): + global CCATCODE + #print list1,list2 + Type1 = list1[0] + Type2 = list2[0] + + if Type2 == s: + Type3 = str(list2[2]) + elif Type2 == X: + Type1=A + Type3='' + else: + Type3 ='' + + + + + Type = Type1+Type2+Type3 + + #print 'Type:', Type + + try: + CATCODE = CATCODES[Type] + TARGET = CATCODE[0] + PREFIX = CATCODE[1] + MIDFIX = CATCODE[2] + POSTFIX = CATCODE[3] + FLAG = CATCODE[4] + + #print 'TGT:', TARGET, PREFIX,MIDFIX,POSTFIX,FLAG + #print 'RAWC', AKSAR[list1[1]][1],AKSAR[list2[1]][1] + + c1=list1[1] + c2=list2[1] + + if FLAG == 1 : + c = PREFIX + c1 + MIDFIX + POSTFIX + c2 + else : + c = PREFIX + c1 + MIDFIX + POSTFIX + + fused = [TARGET,c] + #print CATCODE + return(fused) + except KeyError: + print '\n ERROR AT LINE:', NCLINE, 'WORD:',NCWORD, '(',CWORD,')' + return(['ERROR','UNKNOWN CATCODE']) + + + + + +def fuseatoms(syll): + slist=readsyll(syll); + #print slist + lslist=len(slist); + l0=slist[0]; + for i in range(1,lslist): + nextitem = slist[i] + l0=fuse(l0,nextitem) + + return(l0[1]) + +def fuseword(wrd): + if wrd[0] == '@' : + return(wrd) + syllables = wrd.split('-') + w0='' + for eachsyll in syllables: + syll=eachsyll + thesyll = fuseatoms(syll) + w0 = w0 + thesyll + #print 'FUSED WORD',w0 + return(w0) + + +def fuseline(line): + global NCWORD,CWORD + NCWORD = 0 + #line = blocked(line) + words = line.split() + l0='' + for eachword in words: + NCWORD=NCWORD+1 + word = eachword + CWORD=word + theword=fuseword(word) + #print 'XX',theword + l0=l0+' '+theword + #print 'FUSED LINE', l0 + return(l0) + + +# The main program +import sys +OK=1 +finnam = sys.argv[1] +foutnam = finnam.split('.')[0] + '.' + 'tex' + +fin = file(finnam,'rt') +fout = file(foutnam,'wt') + +textin = fin.readlines() +nlines = len(textin) + + +textout = [] + +fin.close() + +for eachline in textin: + NCLINE = NCLINE+1 + if eachline[0] == '#' : + lineout = eachline[1:] + elif eachline[0] == '\\' : + lineout = eachline + elif eachline == '\n': + lineout = eachline + else : + line1 = eachline.strip() + line2 = blocked(line1) + lineout = fuseline(line2) + '\n' + lineout = lineout[1:] + #print ':::', lineout + if lineout.find('UNKNOWN CATCODE') == -1 : + lineout = unblock(lineout) + #print ':::', lineout + textout.append(printamp(lineout)) + else : + OK = 0 + fout.close() + + + + + + + + + +if OK == 1: + fout.writelines(textout) + fout.close() + print 'done' +else: + print 'Unknown CATCODE, Fix The errors and try again' + + + + + + + + + + diff --git a/Master/bin/i386-linux/eplain b/Master/bin/i386-linux/eplain new file mode 120000 index 00000000000..f68cc91498e --- /dev/null +++ b/Master/bin/i386-linux/eplain @@ -0,0 +1 @@ +pdftex \ No newline at end of file diff --git a/Master/bin/i386-linux/epsffit b/Master/bin/i386-linux/epsffit new file mode 100755 index 00000000000..53e1f60b3bf Binary files /dev/null and b/Master/bin/i386-linux/epsffit differ diff --git a/Master/bin/i386-linux/epstopdf b/Master/bin/i386-linux/epstopdf new file mode 120000 index 00000000000..3287ed667d6 --- /dev/null +++ b/Master/bin/i386-linux/epstopdf @@ -0,0 +1 @@ +../../texmf/scripts/epstopdf/epstopdf.pl \ No newline at end of file diff --git a/Master/bin/i386-linux/etex b/Master/bin/i386-linux/etex new file mode 120000 index 00000000000..f68cc91498e --- /dev/null +++ b/Master/bin/i386-linux/etex @@ -0,0 +1 @@ +pdftex \ No newline at end of file diff --git a/Master/bin/i386-linux/exatools b/Master/bin/i386-linux/exatools new file mode 100755 index 00000000000..50ff0f07e46 --- /dev/null +++ b/Master/bin/i386-linux/exatools @@ -0,0 +1,2 @@ +#!/bin/sh +texmfstart exatools.rb "$@" diff --git a/Master/bin/i386-linux/extconv b/Master/bin/i386-linux/extconv new file mode 100755 index 00000000000..d3e360c52e2 Binary files /dev/null and b/Master/bin/i386-linux/extconv differ diff --git a/Master/bin/i386-linux/extractres b/Master/bin/i386-linux/extractres new file mode 100755 index 00000000000..c54056461a2 --- /dev/null +++ b/Master/bin/i386-linux/extractres @@ -0,0 +1,96 @@ +#!/usr/bin/env perl +# extractres: extract resources from PostScript file +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$prog = ($0 =~ s=.*/==); + +%resources = (); # list of resources included +%merge = (); # list of resources extracted this time +%extn = ("font", ".pfa", "file", ".ps", "procset", ".ps", # resource extns + "pattern", ".pat", "form", ".frm", "encoding", ".enc"); +%type = ("%%BeginFile:", "file", "%%BeginProcSet:", "procset", + "%%BeginFont:", "font"); # resource types + +while (@ARGV) { + $_ = shift; + if (/^-m(erge)?$/) { $merge = 1; } + elsif (/^-/) { + print STDERR "Usage: $prog [-merge] [file]\n"; + exit 1; + } else { + unshift(@ARGV, $_); + last; + } +} + +if (defined($ENV{TMPDIR})) { # set body file name + $body = "$ENV{TMPDIR}/body$$.ps"; +} else { + $body = "body$$.ps"; +} + +open(BODY, $body) && die "Temporary file $body already exists"; +open(BODY, ">$body") || die "Can't write file $body"; + +sub filename { # make filename for resource in @_ + local($name); + foreach (@_) { # sanitise name + s/[!()\$\#*&\\\|\`\'\"\~\{\}\[\]\<\>\?]//g; + $name .= $_; + } + $name =~ s@.*/@@; # drop directories + die "Filename not found for resource ", join(" ", @_), "\n" + if $name =~ /^$/; + $name; +} + +$output = STDOUT; # start writing header out +while (<>) { + if (/^%%BeginResource:/ || /^%%BeginFont:/ || /^%%BeginProcSet:/) { + local($comment, @res) = split(/\s+/); # look at resource type + local($type) = defined($type{$comment}) ? $type{$comment} : shift(@res); + local($name) = &filename(@res, $extn{$type}); # make file name + $saveout = $output; + if (!$resources{$name}) { + print "%%IncludeResource: $type ", join(" ", @res), "\n"; + if (!open(RES, $name)) { + open(RES, ">$name") || die "Can't write file $name"; + $resources{$name} = $name; + $merge{$name} = $merge; + $output = RES; + } else { # resource already exists + close(RES); + undef $output; + } + } elsif ($merge{$name}) { + open(RES, ">>$name") || die "Can't append to file $name"; + $output = RES; + } else { # resource already included + undef $output; + } + } elsif (/^%%EndResource/ || /^%%EndFont/ || /^%%EndProcSet/) { + if (defined $output) { + print $output $_; + close($output); + } + $output = $saveout; + next; + } elsif ((/^%%EndProlog/ || /^%%BeginSetup/ || /^%%Page:/)) { + $output = BODY; + } + print $output $_ + if defined $output; +} + +close(BODY); # close body output file + +open(BODY, $body); # reopen body for input +while () { # print it all + print $_; +} +close(BODY); + +unlink($body); # dispose of body file + diff --git a/Master/bin/i386-linux/fixdlsrps b/Master/bin/i386-linux/fixdlsrps new file mode 100755 index 00000000000..2a1d85a654c --- /dev/null +++ b/Master/bin/i386-linux/fixdlsrps @@ -0,0 +1,54 @@ +#!/usr/bin/env perl +# fixdlsrps: fix DviLaser/PS document to work with PSUtils +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$nesting = 0; +$page = 1; +$infont = 0; + +@fonts = (); +@body = (); +$header = 1; + +while (<>) { + if (/^XP/) { + $infont++; + push(@fonts, $_); + $infont-- if /PXL.*RP/ || /DN?F.*RP/; + } elsif ($infont) { + push(@fonts, $_); + $infont-- if /PXL.*RP/ || /DN?F.*RP/; + } elsif ((/^%%EndSetup/ || /^%%Page:/) && $header) { + print @body; + @body = ("%%EndSetup\n"); + $header = 0; + } elsif (/^%%EndProlog/ && !$nesting) { + push(@body, + "\$DviLaser begin/GlobalMode{}bdef/LocalMode{}bdef/XP{}def/RP{}def", + "/DoInitialScaling{72.0 Resolution div dup scale}bdef end\n", $_); + } elsif (/^%%BeginPageSetup/ && !$nesting) { + push(@body, "%%Page: $page $page\n", $_, + "Resolution 72 div dup scale Magnification 1000 div dup scale\n", + "/DocumentInitState where {\n", + "/DocumentInitState [ matrix currentmatrix currentlinewidth", + " currentlinecap currentlinejoin currentdash currentgray", + " currentmiterlimit] cvx put}if\n"); + $page++; + } elsif (/^%%BeginDocument:/ || /^%%BeginBinary:/ || /^%%BeginFile:/) { + push(@body, $_); + $nesting++; + } elsif (/^%%EndDocument/ || /^%%EndBinary/ || /^%%EndFile/) { + push(@body, $_); + $nesting--; + } elsif (!/^%%PageBoundingBox:/ && !/^%%Page:/) { + push(@body, $_); + } +} + +print @fonts; +print @body; + +exit 0; + diff --git a/Master/bin/i386-linux/fixfmps b/Master/bin/i386-linux/fixfmps new file mode 100755 index 00000000000..039ac8e5a3e --- /dev/null +++ b/Master/bin/i386-linux/fixfmps @@ -0,0 +1,21 @@ +#!/usr/bin/env perl +# fixfmps: get conforming PostScript out of FrameMaker version 2 file +# move all FMDEFINEFONTs to start of pages +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +%fonts=(); + +while (<>) { + if (/^([0-9]+) [0-9]+ .* FMDEFINEFONT$/) { + $fonts{$1} = $_; + } elsif (/^[0-9.]+ [0-9.]+ [0-9]+ FMBEGINPAGE$/) { + print $_, join('',values(%fonts)); + } elsif (m%(.*/PageSize \[paperwidth paperheight\]put )setpagedevice(.*)%) { + print "$1pop$2\n"; + } else { + print $_; + } +} + diff --git a/Master/bin/i386-linux/fixmacps b/Master/bin/i386-linux/fixmacps new file mode 100755 index 00000000000..f4cfdb10a9e --- /dev/null +++ b/Master/bin/i386-linux/fixmacps @@ -0,0 +1,95 @@ +#!/usr/bin/env perl +# fixmacps: swap to sanitised appledict +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$line = 0; # keep line count +$predir = `kpsewhich -progname=psutils md71_0.ps`; +$dir=`basename $predir`; +$prefix = "md"; +$default = "md71_0.ps"; + +while ($_ = shift(@ARGV)) { + if (/^-d(ir)?$/) { $dir = shift(@ARGV); } + elsif (/^-n(ame)?$/) { $prefix = shift(@ARGV); } + else { + unshift(@ARGV, $_); + last; + } +} + +%fonts = (); +$nesting = 0; + +while (<>) { + if (/^%!/) { + if (! $line) { + print; + } + } elsif (/^%%(Begin|Include)ProcSet: "?\(AppleDict md\)"? ([0-9]+) ([0-9]+)$/) { + local($inc, $mdv, $mdr) = ($1, $2, $3); + if (open(SANE, "<$dir/$prefix${mdv}_$mdr.ps") || + open(SANE, "<$dir/$default")) { + $sane = ; + local($snv, $snr) = + $sane =~ /^%%BeginProcSet: \(AppleDict md\) ([0-9]+) ([0-9]+)$/; + if ($mdv == $snv && $mdr == $snr) { + if ( $inc eq "Include" ) { + print STDERR "Inserting ProcSet \"(AppleDict md)\" $snv $snr\n"; + print $sane; + while() { + print; + } + close(SANE); + } + else { + print STDERR "Substituting ProcSet \"(AppleDict md)\" $snv $snr\n"; + $ignore = 1; + } + } else { + print STDERR "Unrecognised AppleDict version $mdv $mdr\n"; + print "%!\n" if !$line; + print; + } + } else { + print STDERR "Can't find sanitised AppleDict\n"; + print "%!\n" if !$line; + print; + } + } elsif (/^%%EndProcSet/) { + if ($ignore) { + $ignore = 0; + print "%!\n" if !$line; + print $sane; + while() { + print; + } + close(SANE); + } else { + print "%!\n" if !$line; + print; + } + } elsif (/^%%Page:/ && $nesting == 0) { + print $_; + print values(%fonts); + } elsif (/^%%BeginDocument/ || /^%%BeginBinary/ || /^%%BeginFile/) { + print $_; + $nesting++; + } elsif (/^%%EndDocument/ || /^%%EndBinary/ || /^%%EndFile/) { + print $_; + $nesting--; + } else { + if (! $ignore) { + if (/^\{\}mark .*rf$/) { + $fonts{$_} = $_; + print; + } else { + print "%!\n" if !$line; + print; + } + } + } + $line++; +} + diff --git a/Master/bin/i386-linux/fixpsditps b/Master/bin/i386-linux/fixpsditps new file mode 100755 index 00000000000..2a1728a8204 --- /dev/null +++ b/Master/bin/i386-linux/fixpsditps @@ -0,0 +1,25 @@ +#!/usr/bin/env perl +# fixpsditps: fix psdit output for use in psutils +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$nesting = 0; + +while (<>) { + if (/^\/p{pop showpage pagesave restore \/pagesave save def}def$/) { + print "/p{pop showpage pagesave restore}def\n"; + } elsif (/^%%BeginDocument/ || /^%%BeginBinary/ || /^%%BeginFile/ ) { + print $_; + $nesting++; + } elsif (/^%%EndDocument/ || /^%%EndBinary/ || /^%%EndFile/) { + print $_; + $nesting--; + } elsif (/^%%Page:/ && $nesting == 0) { + print $_; + print "xi\n"; + } elsif (! /^xi$/) { + print $_; + } +} + diff --git a/Master/bin/i386-linux/fixpspps b/Master/bin/i386-linux/fixpspps new file mode 100755 index 00000000000..77bba66d6b7 --- /dev/null +++ b/Master/bin/i386-linux/fixpspps @@ -0,0 +1,58 @@ +#!/usr/bin/env perl +# mangle PostScript produced by PSPrint to make it almost conforming +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$header = 1; $ignore = 0; +$verbose = 0; +@body = (); +%fonts = (); $font = ""; +$inchar = 0; @char = (); + +while (<>) { + if (/^\@end$/) { + $ignore = 1; + } elsif (/^[0-9]+ \@bop0$/) { + $ignore = 0; + $header = 1; + } elsif ($header) { + if (/^\/([a-z.0-9]+) \@newfont$/) { + if (! defined($fonts{$1})) { + $fonts{$1} = 1; + print; + } elsif ($verbose) { + print STDERR "$font already defined\n"; + } + } elsif (/^([a-z.0-9]+) sf$/) { + $font = $1; + print; + } elsif (/^\[) { + if (/^([0-9]+ [0-9]+ [0-9]+ PB) (%!.*)/) { + print "$1\n%%BeginDocument: Scribe-EPSF $epsfn 0\n$2\n"; + $inepsf++; + } elsif (/^ PE/ && $inepsf) { + print "%%EndDocument\n", $_; + } else { + print $_; + } +} + diff --git a/Master/bin/i386-linux/fixtpps b/Master/bin/i386-linux/fixtpps new file mode 100755 index 00000000000..4239bb9dfc5 --- /dev/null +++ b/Master/bin/i386-linux/fixtpps @@ -0,0 +1,28 @@ +#!/usr/bin/env perl +# fixtpps: fix tpscript document to work with PSUtils +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$nesting = 0; +$header = 1; + +while (<>) { + if (/^%%Page:/ && $nesting == 0) { + print $_; + print "save home\n"; + $header = 0; + } elsif (/^%%BeginDocument/ || /^%%BeginBinary/ || /^%%BeginFile/) { + print $_; + $nesting++; + } elsif (/^%%EndDocument/ || /^%%EndBinary/ || /^%%EndFile/) { + print $_; + $nesting--; + } elsif (/save home/) { + s/save home//; + print $_; + } elsif (!$header || (! /^save$/ && ! /^home$/)) { + print $_; + } +} + diff --git a/Master/bin/i386-linux/fixwfwps b/Master/bin/i386-linux/fixwfwps new file mode 100755 index 00000000000..92d88443fe1 --- /dev/null +++ b/Master/bin/i386-linux/fixwfwps @@ -0,0 +1,33 @@ +#!/usr/bin/env perl +# fixwfwps: fix Word for windows PostScript for printing. +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$nesting = 0; +while (<>) { + tr/\000-\010\012-\014\016-\037//d; + foreach (grep($_ ne "", split("\015"))) { + s!/SVDoc\s+save\s+def!!g; + s!SVDoc\s+restore!!g; + if (/^(%!PS-Adobe-\d*\.\d*) EPSF-/ && !$nesting) { + print "$1\n"; + $wfwepsf = 1; + } elsif (/^SS\s*$/ && $wfwepsf) { + print "%%Page: $wfwepsf $wfwepsf\n"; + $wfwepsf++; + print "$_\n"; + } elsif (/^%MSEPS Preamble/) { + print "%%BeginDocument: (Included EPSF)\n"; + print "$_\n"; + $nesting++; + } elsif (/^%MSEPS Trailer/) { + $nesting--; + print "$_\n"; + print "%%EndDocument\n"; + } elsif (! /^%%BoundingBox/) { + print "$_\n"; + } + } +} + diff --git a/Master/bin/i386-linux/fixwpps b/Master/bin/i386-linux/fixwpps new file mode 100755 index 00000000000..83a5fdfaf0b --- /dev/null +++ b/Master/bin/i386-linux/fixwpps @@ -0,0 +1,31 @@ +#!/usr/bin/env perl +# fixwpps: get semi-conforming PostScript out of WordPerfect 5.0 file +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$page = 1; +$nesting = 0; + +while (<>) { + s/([^\/]_t)([0-9]+)/\1 \2/g; # fix wp 5.0 bug + if (m!/_[be][dp]! || m!_bp \d+ \d+ roll!) { + print $_; + } elsif (/^(.*)(_bp.*)$/) { + print "$1\n" if $1 ne ""; + print "%%Page: $page $page\n"; + print "$2\n"; + $page++; + $nesting++; + } elsif (/_ep$/) { + print $_; + $nesting--; + } elsif (/^(.*)(_ed.*)/) { + print "$1\n" if $1 ne ""; + print "%%Trailer:\n"; + print "$2\n"; + } else { + print $_; + } +} + diff --git a/Master/bin/i386-linux/fixwwps b/Master/bin/i386-linux/fixwwps new file mode 100755 index 00000000000..bfd58c086da --- /dev/null +++ b/Master/bin/i386-linux/fixwwps @@ -0,0 +1,20 @@ +#!/usr/bin/env perl +# fixwwps: get semi-conforming PostScript out of Windows Write file +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$page = 1; + +while (<>) { + if (/^(%!.*) EPSF-\d.\d/) { + print $1, "\n"; + } elsif (/^SS/) { + print "%%Page: $page $page\n"; + print $_; + $page++; + } else { + print $_; + } +} + diff --git a/Master/bin/i386-linux/fmtutil b/Master/bin/i386-linux/fmtutil new file mode 100755 index 00000000000..0cdb4347121 --- /dev/null +++ b/Master/bin/i386-linux/fmtutil @@ -0,0 +1,901 @@ +#!/bin/sh + +############################################################################### +# fmtutil: utility to maintain format files. +# +# Thomas Esser, public domain. +# +# Commands: +# --all recreate all format files +# --missing create all missing format files +# --refresh recreate only existing format files +# --byfmt formatname (re)create format for `formatname' +# --byhyphen hyphenfile (re)create formats that depend on `hyphenfile' +# --enablefmt formatname enable formatname in config file +# --disablefmt formatname disable formatname in config file +# --listcfg list (enabled and disabled) configurations, +# filtered to available formats +# --catcfg output the content of the config file +# --showhyphen formatname print name of hyphenfile for format `formatname' +# --edit edit fmtutil.cnf file +# --version show version info +# --help show this message +# +# Options: +# --cnffile file set configfile for fmtutil +# --fmtdir directory set destination directory for format files +# --no-engine-subdir don't use $engine subdirectory of the fmtdir +############################################################################### + +############################################################################### +# program history: +# further changes in texk/tetex/ChangeLog. +# 2007-01-04 patch by JK to support $engine subdir (enabled by default) +# Fr Apr 8 19:15:05 CEST 2005 cleanup now has an argument for the return code +# Do Mar 02 10:42:31 CET 2006 add tmpdir to TEXFORMATS +# So Mär 27 18:52:06 CEST 2005 honor $TMPDIR, $TEMP and $TMP, not just $TMP +# Sa Jan 15 18:13:46 CET 2005 avoid multiple variable assignments in one statement +# Di Jan 11 11:42:36 CET 2005 fix --byhyphen with relative hyphenfile +# Fr Dez 31 16:51:29 CET 2004 option catcfg added (for being called by texconfig) +# Do Dez 30 21:53:27 CET 2004 rename variable verbose to verboseFlag +# Sa Dez 25 12:44:23 CET 2004 implementation adopted for teTeX-3.0 (tcfmgr) +# Do Okt 28 11:09:36 CEST 2004 added --refresh +# Fr Sep 17 19:25:28 CEST 2004 save $0 in a variable before calling a function +# Sun May 9 23:24:06 CEST 2004 changes for new web2c: format names +# are now *.fmt, nothing else, disable +# "plain" symlinks +# Thu May 6 14:16:19 CEST 2004: "mv .../dev/null \ + && { RUNNING_KSH=true; export RUNNING_KSH; exec /bin/ksh $0 ${1+"$@"}; } +unset RUNNING_KSH + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +# hack around a bug in zsh: +test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' + +progname=fmtutil +argv0=$0 +version=1205513038 # seconds since `00:00:00 1970-01-01 UTC' + # date '+%s' (with GNU date) + +cnf=fmtutil.cnf # name of the config file +export PATH + +############################################################################### +# cleanup() +# clean up the temp area and exit with proper exit status +############################################################################### +cleanup() +{ + rc=$1 + # for debugging, exit $rc here so $tmpdir with its logs sticks around. + $needsCleanup && test -n "$tmpdir" && test -d "$tmpdir" \ + && { cd / && rm -rf "$tmpdir"; } + (exit $rc); exit $rc +} + +############################################################################### +# setupTmpDir() +# set up a temp directory and a trap to remove it +############################################################################### +setupTmpDir() +{ + $needsCleanup && return + + trap 'cleanup 1' 1 2 3 7 13 15 + needsCleanup=true + (umask 077; mkdir "$tmpdir") \ + || abort "could not create directory \`$tmpdir'" +} + +############################################################################### +# configReplace(file, pattern, line) +# The first line in file that matches pattern gets replaced by line. +# line will be added at the end of the file if pattern does not match. +############################################################################### +configReplace() +{ + file=$1; pat=$2; line=$3 + + if grep "$pat" "$file" >/dev/null; then + ed "$file" >/dev/null 2>&1 <<-eof + /$pat/ + c + $line + . + w + q +eof + else + echo "$line" >> $file + fi +} + +############################################################################### +# setmatch(match) +# setting the "match state" to true or false. Used to see if there was at +# least one match. +############################################################################### +setmatch() +{ + match=$1 +} + +############################################################################### +# getmatch() +# return success if there was at least one match. +############################################################################### +getmatch() +{ + test "x$match" = xtrue +} + +############################################################################### +# initTexmfMain() +# get $MT_TEXMFMAIN from $TEXMFMAIN +############################################################################### +initTexmfMain() +{ + case $MT_TEXMFMAIN in + "") MT_TEXMFMAIN=`kpsewhich --var-value=TEXMFMAIN`;; + esac + export MT_TEXMFMAIN +} + +############################################################################### +# cache_vars() +# locate files / kpathsea variables and export variables to environment +# this speeds up future calls to e.g. mktexupd +############################################################################### +cache_vars() +{ + : ${MT_VARTEXFONTS=`kpsewhich --expand-var='$VARTEXFONTS' | sed 's%^!!%%'`} + : ${MT_MKTEXNAM=`kpsewhich --format='web2c files' mktexnam`} + : ${MT_MKTEXNAM_OPT=`kpsewhich --format='web2c files' mktexnam.opt`} + : ${MT_MKTEXDIR=`kpsewhich --format='web2c files' mktexdir`} + : ${MT_MKTEXDIR_OPT=`kpsewhich --format='web2c files' mktexdir.opt`} + : ${MT_MKTEXUPD=`kpsewhich --format='web2c files' mktexupd`} + : ${MT_MKTEX_CNF=`kpsewhich --format='web2c files' mktex.cnf`} + : ${MT_MKTEX_OPT=`kpsewhich --format='web2c files' mktex.opt`} + export MT_VARTEXFONTS MT_MKTEXNAM MT_MKTEXNAM_OPT MT_MKTEXDIR + export MT_MKTEXDIR_OPT MT_MKTEXUPD MT_MKTEX_CNF MT_MKTEX_OPT +} + +############################################################################### +# help() +# display help message and exit +############################################################################### +help() +{ + cat <<'eof' +Usage: fmtutil [option] ... cmd [argument] + +Valid options: + --cnffile file + --fmtdir directory + --no-engine-subdir don't use engine-specific subdir of the fmtdir + --quiet (not implemented, just for compatibility) + --test (not implemented, just for compatibility) + --dolinks (not implemented, just for compatibility) + --force (not implemented, just for compatibility) + +Valid commands: + --all recreate all format files + --missing create all missing format files + --refresh recreate only existing format files + --byfmt formatname (re)create format for `formatname' + --byhyphen hyphenfile (re)create formats that depend on `hyphenfile' + --enablefmt formatname enable formatname in config file + --disablefmt formatname disable formatname in config file + --listcfg list (enabled and disabled) configurations, + filtered to available formats + --catcfg output the content of the config file + --showhyphen formatname print name of hyphenfile for format `formatname' + --edit edit fmtutil.cnf file + --version show version info + --help show this message +eof + cleanup 0 +} + +version() +{ + cat <&2 + cleanup 1 +} + +############################################################################### +# verboseMsg(msg) +# print `msg' to stderr is $verbose is true +############################################################################### +verboseMsg() { + $verboseFlag && verbose echo ${1+"$@"} +} + +############################################################################### +# byebye() +# report any failures and exit the program +############################################################################### +byebye() +{ + if $has_errors; then + { + cat <&2 + cleanup 1 + else + cleanup 0 + fi +} + +############################################################################### +# init_log_failure() +# reset the list of failure messages +############################################################################### +init_log_failure() +{ + log_failure_msg= + has_errors=false +} + +############################################################################### +# log_failure(errmsg) +# report and save failure message `errmsg' +############################################################################### +log_failure() +{ + echo "Error: $@" >&2 + if test -z "$log_failure_msg"; then + log_failure_msg="$@" + else + OLDIFS=$IFS; IFS= + log_failure_msg="$log_failure_msg +$@" + IFS=$OLDIFS + fi + has_errors=true +} + +############################################################################### +# verbose (cmd) +# execute cmd. Redirect output depending on $mktexfmtMode. +############################################################################### +verbose() +{ + $mktexfmtMode && ${1+"$@"} >&2 || ${1+"$@"} +} + +############################################################################### +# mktexdir(args) +# call mktexdir script, disable all features (to prevent sticky directories) +############################################################################### +mktexdir() +{ + initTexmfMain + MT_FEATURES=none "$MT_TEXMFMAIN/web2c/mktexdir" "$@" >&2 +} + +############################################################################### +# tcfmgr(args) +# call tcfmgr script +############################################################################### +tcfmgr() +{ + initTexmfMain + "$MT_TEXMFMAIN/texconfig/tcfmgr" "$@" +} + +############################################################################### +# mktexupd(args) +# call mktexupd script +############################################################################### +mktexupd() +{ + initTexmfMain + "$MT_TEXMFMAIN/web2c/mktexupd" "$@" +} + +############################################################################### +# main() +# parse commandline arguments, initialize variables, +# switch into temp. direcrory, execute desired command +############################################################################### +main() +{ + destdir= # global variable: where do we put the format files? + cnf_file= # global variable: full name of the config file + cmd= # desired action from command line + needsCleanup=false + need_find_hyphenfile=false + cfgparam= + cfgmaint= + tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$ + verboseFlag=true + + # mktexfmtMode: if called as mktexfmt, set to true. Will echo the + # first generated filename after successful generation to stdout then + # (and nothing else), since kpathsea can only deal with one. + mktexfmtMode=false + case $argv0 in + mktexfmt|*/mktexfmt) + mktexfmtMode=true + fullfmt=$1; shift + case $fullfmt in + *.fmt|*.mem|*.base) + set x --byfmt `echo $fullfmt | sed 's@\.[a-z]*$@@'` ${1+"$@"}; shift + ;; + *.*) + abort "unknown format type: $fullfmt" + ;; + "") + help + ;; + *) + set x --byfmt $fullfmt; shift + ;; + esac + ;; + esac + + use_engine_dir=true # whether to use web2c/$engine subdirs + while + case $1 in + --cnffile) + shift; cnf_file=$1; cfgparam=1;; + --cnffile=*) + cnf_file=`echo "$1" | sed 's/--cnffile=//'`; cfgparam=1; shift ;; + --fmtdir) + shift; destdir=$1;; + --fmtdir=*) + destdir=`echo "$1" | sed 's/--fmtdir=//'`; shift ;; + --no-engine-subdir) + use_engine_dir=false;; + --all|-a) + cmd=all;; + --edit|-e) + cmd=edit; cfgmaint=1;; + --missing|-m) + cmd=missing;; + --refresh|-r) + cmd=refresh;; + --byfmt|-f) + shift; cmd=byfmt; arg=$1;; + --byfmt=*) + cmd=byfmt; arg=`echo "$1" | sed 's/--byfmt=//'`; shift ;; + --byhyphen|-h) + shift; cmd=byhyphen; arg=$1;; + --byhyphen=*) + cmd=byhyphen; arg=`echo "$1" | sed 's/--byhyphen=//'`; shift ;; + --showhyphen|-s) + shift; cmd=showhyphen; arg=$1;; + --showhyphen=*) + cmd=showhyphen; arg=`echo "$1" | sed 's/--showhyphen=//'`; shift ;; + --help|-help) + cmd=help;; + --version) + cmd=version;; + --enablefmt) + shift; cmd=enablefmt; arg=$1; cfgmaint=1;; + --enablefmt=*) + cmd=enablefmt; arg=`echo "$1" | sed 's/--enablefmt=//'`; cfgmaint=1; shift;; + --disablefmt) + shift; cmd=disablefmt; arg=$1; cfgmaint=1;; + --disablefmt=*) + cmd=disablefmt; arg=`echo "$1" | sed 's/--disablefmt=//'`; cfgmaint=1; shift;; + --catcfg) + cmd=catcfg;; + --listcfg) + cmd=listcfg;; + --quiet|-q) + verboseFlag=false;; + --test|--dolinks|--force) + ;; + "") break;; + *) abort "$progname: unknown option \`$1'. Try $progname --help for help";; + esac + do test $# -gt 0 && shift; done + + case "$cmd" in + help|"") help;; + version) version;; + esac + + if test -n "$cfgparam"; then + test -f "$cnf_file" || abort "config file \`$cnf_file' not found" + fi + + if test -n "$cfgmaint"; then + if test -z "$cfgparam"; then + setupTmpDir + co=`tcfmgr --tmp $tmpdir --cmd co --file $cnf` + test $? = 0 || cleanup 1 + set x $co; shift + id=$1; cnf_file=$3; orig=$4 + verboseMsg "$progname: initial config file is \`$orig'" + fi + else + if test -z "$cfgparam"; then + cnf_file=`tcfmgr --cmd find --file $cnf` + test -f "$cnf_file" || abort "config file \`$cnf' not found" + fi + fi + + # showhyphen and edit do not need any temp. directory, so do it here: + case "$cmd" in + showhyphen) + show_hyphen_file "$arg" + cleanup $? + ;; + edit) + ${VISUAL-${EDITOR-vi}} $cnf_file + ;; + enablefmt|disablefmt) + $cmd $arg + ;; + catcfg) + grep -v '^ *#' "$cnf_file" | sed 's@^ *@@; s@ *$@@' | grep . | sort + cleanup $? + ;; + listcfg) + listcfg_loop + cleanup $? + ;; + esac + + if test -n "$cfgmaint"; then + if test -z "$cfgparam"; then + ci=`tcfmgr --tmp $tmpdir --cmd ci --id $id` + if test $? = 0; then + if test -n "$ci"; then + verboseMsg "$progname: configuration file updated: \`$ci'" + else + verboseMsg "$progname: configuration file unchanged." + fi + else + abort "failed to update configuration file." + fi + fi + cleanup $? + fi + + # set up destdir: + if test -z "$destdir"; then + : ${MT_TEXMFVAR=`kpsewhich -var-value=TEXMFVAR`} + destdir=$MT_TEXMFVAR/web2c + fi + test -d "$destdir" || mktexdir "$destdir" >/dev/null 2>&1 + test -d "$destdir" || abort "format directory \`$destdir' does not exist" + test -w "$destdir" || abort "format directory \`$destdir' is not writable" + + thisdir=`pwd` + + : ${KPSE_DOT=$thisdir} + export KPSE_DOT + + # due to KPSE_DOT, we don't search the current directory, so include + # it explicitly for formats that \write and later on \read + TEXINPUTS="$tmpdir:$TEXINPUTS"; export TEXINPUTS + # for formats that load other formats (e.g., jadetex loads latex.fmt), + # add the current directory to TEXFORMATS, too. Currently unnecessary + # for MFBASES and MPMEMS. + TEXFORMATS="$tmpdir:$TEXFORMATS"; export TEXFORMATS + + setupTmpDir + cd "$tmpdir" || cleanup 1 + + # make local paths absolute: + case "$destdir" in + /*) ;; + *) destdir="$thisdir/$destdir";; + esac + case "$cnf_file" in + /*) ;; + *) cnf_file="$thisdir/$cnf_file";; + esac + + cache_vars + init_log_failure + # execute the desired command: + case "$cmd" in + all) + recreate_all;; + missing) + create_missing;; + refresh) + recreate_existing;; + byfmt) + recreate_by_fmt "$arg";; + byhyphen) + recreate_by_hyphenfile "$arg";; + esac + + byebye +} + +############################################################################### +# parse_line(config_line) sets global variables: +# format: name of the format, e.g. pdflatex +# engine: name of the TeX engine, e.g. tex, etex, pdftex +# texargs: flags for initex and name of the ini file (e.g. -mltex frlatex.ini) +# fmtfile: name of the format file (without directory, but with extension) +# +# Support for building internationalized formats sets: +# pool: base name of pool file (to support translated pool files) +# tcx: translation file used when creating the format +# +# Example (for fmtutil.cnf): +# mex-pl tex mexconf.tex nls=tex-pl,il2-pl mex.ini +# +# The nls parameter (pool,tcx) can only be specified as the first argument +# inside the 4th field in fmtutil.cnf. +# +# exit code: returns error code if the ini file is not installed +############################################################################### +parse_line() +{ + case $1 in + '#!') disabled=true; shift;; + *) disabled=false;; + esac + format=$1 + engine=$2 + hyphenation=$3 + shift; shift; shift + + # handle nls support: pool + tcx + pool=; tcx= + case $1 in + nls=*) + pool=`echo $1 | sed 's@nls=@@; s@,.*@@'` + tcx=`echo $1 | sed 's@nls=[^,]*@@; s@^,@@'` + shift # nls stuff is not handled by the engine directly, + # so we shift this away + ;; + esac + + texargs="$@" + + eval lastarg=\$$# + inifile=`echo $lastarg | sed 's%^\*%%'` + + case "$engine" in + mpost) fmtfile="$format.mem"; kpsefmt=mpost; texengine=metapost;; + mf|mfw|mf-nowin) fmtfile="$format.base"; kpsefmt=mf; texengine=metafont;; + *) fmtfile="$format.fmt"; kpsefmt=tex; texengine=$engine;; + esac + + # See if we can find $inifile for return code: + kpsewhich -progname=$format -format=$kpsefmt $inifile >/dev/null 2>&1 +} + +############################################################################### +# find_hyphenfile(format, hyphenation) searches for hyphenation along +# searchpath of format +# exit code: returns error is file is not found +############################################################################### +find_hyphenfile() +{ + format="$1"; hyphenation="$2" + case $hyphenation in + -) ;; + *) kpsewhich -progname="$format" -format=tex "$hyphenation";; + esac +} + +############################################################################### +# find_info_for_name(format) +# Look up the config line for format `format' and call parse_line to set +# global variables. +############################################################################### +find_info_for_name() +{ + format="$1" + + # set x `awk '$1 == format {print; exit}' format="$format" "$cnf_file"`; shift + set x `egrep "^$format( | )" "$cnf_file" | sed q`; shift + test $# = 0 && abort "no info for format \`$format'" + parse_line "$@" +} + +############################################################################### +# run_initex() +# Calls initex. Assumes that global variables are set by parse_line. +############################################################################### +run_initex() +{ + + # install a pool file and set tcx flag if requested in lang= option: + rm -f *.pool + poolfile= + tcxflag= + test -n "$pool" \ + && poolfile=`(kpsewhich -progname=$engine $pool.pool) 2>/dev/null` + if test -n "$poolfile" && test -f "$poolfile"; then + verboseMsg "$progname: attempting to create localized format using pool=$pool and tcx=$tcx." + cp "$poolfile" $engine.pool + test -n "$tcx" && tcxflag=-translate-file=$tcx + localpool=true + else + localpool=false + fi + + jobswitch="-jobname=$format" + case "$format" in + metafun) prgswitch=-progname=mpost;; + mptopdf|cont-??) prgswitch=-progname=context;; + *) prgswitch=-progname=$format;; + esac + + rm -f $fmtfile + + # Check for infinite recursion before running the iniTeX: + case :$mktexfmt_loop: in + *:"$format":*) + abort "Infinite recursion detected, giving up!" ;; + esac + mktexfmt_loop=$mktexfmt_loop:$format + export mktexfmt_loop + + verboseMsg "$progname: running \`$engine -ini $tcxflag $jobswitch $prgswitch $texargs' ..." + + # run in a subshell to get a local effect of TEXPOOL manipulation: + ( + # If necessary, set TEXPOOL. Use absolute path, because of KPSE_DOT. + $localpool && { TEXPOOL="`pwd`:$TEXPOOL"; export TEXPOOL; } + verbose $engine -ini $tcxflag $jobswitch $prgswitch $texargs + ) /dev/null 2>&1 && + log_failure "\`$engine -ini $tcxflag $jobswitch $prgswitch $texargs' possibly failed." + + # We don't want user-interaction for the following "mv" commands: + mv "$format.log" "$fulldestdir/$format.log" /dev/null || { (exit 0); return 0; } + + ed $cnf_file >/dev/null 2>&1 <<-eof + g/^$1[ ]/s/^/#! / + w + q +eof + (exit 0); return 0 +} + +############################################################################### +# enablefmt(format) +# enables format in configuration file +############################################################################### +enablefmt() +{ + grep "^#![ ]*$1[ ]" $cnf_file >/dev/null || { (exit 0); return 0; } + ed $cnf_file >/dev/null 2>&1 <<-eof + g/^#![ ]*$1[ ]/s/..[ ]*// + w + q +eof + (exit 0); return 0 +} + +main ${1+"$@"} +cleanup 0 diff --git a/Master/bin/i386-linux/fmtutil-sys b/Master/bin/i386-linux/fmtutil-sys new file mode 100755 index 00000000000..bfb52f94e1f --- /dev/null +++ b/Master/bin/i386-linux/fmtutil-sys @@ -0,0 +1,29 @@ +#!/bin/sh + +# fmtutil-sys: Thomas Esser, public domain. + +# wrapper script for fmtutil with TEXMFVAR and TEXMFCONFIG set to +# TEXMFSYSVAR / TEXMFSYSCONFIG + +test -f /bin/ksh && test -z "$RUNNING_KSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ + && { RUNNING_KSH=true; export RUNNING_KSH; exec /bin/ksh $0 ${1+"$@"}; } +unset RUNNING_KSH + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +# hack around a bug in zsh: +test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' +export PATH + +v=`kpsewhich -var-value TEXMFSYSVAR` +c=`kpsewhich -var-value TEXMFSYSCONFIG` + +TEXMFVAR="$v" +TEXMFCONFIG="$c" +export TEXMFVAR TEXMFCONFIG + +exec fmtutil ${1+"$@"} diff --git a/Master/bin/i386-linux/fontinst b/Master/bin/i386-linux/fontinst new file mode 100755 index 00000000000..7d1271517ad --- /dev/null +++ b/Master/bin/i386-linux/fontinst @@ -0,0 +1,16 @@ +#!/bin/sh + +test -f /bin/sh5 && test -z "$RUNNING_SH5" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ + && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } +unset RUNNING_SH5 + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +# hack around a bug in zsh: +test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' + +tex -progname=fontinst \&tex ${1+"$@"} diff --git a/Master/bin/i386-linux/gbklatex b/Master/bin/i386-linux/gbklatex new file mode 100755 index 00000000000..f799f7b6e63 --- /dev/null +++ b/Master/bin/i386-linux/gbklatex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] latex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +extconv < "$tex" > "$aux" && eval latex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/gbkpdflatex b/Master/bin/i386-linux/gbkpdflatex new file mode 100755 index 00000000000..6dd3ee3de9e --- /dev/null +++ b/Master/bin/i386-linux/gbkpdflatex @@ -0,0 +1,43 @@ +#! /bin/sh + +# Copyright (C) 1994-2006 Werner Lemberg +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program in doc/COPYING; if not, write to the Free +# Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +# MA 02110-1301 USA + +n=1 +argv= + +# get last argument +while test 1 -lt $#; do + eval argv$n=\$1 + argv="$argv \"\$argv$n\"" + n=`expr $n + 1` + shift +done + +# replace extension with .cjk or append .cjk if there is no extension +tex=$1 +case $tex in +""|*.cjk) + echo >&2 "Usage: $0 [options] pdflatex-file" + exit 1;; +*) + aux=`expr "X$tex" : 'X\(.*\)\.[^/]*$' \| "X$tex" : 'X\(.*\)'`.cjk;; +esac + +extconv < "$tex" > "$aux" && eval pdflatex "$argv" "\$aux" + +# EOF diff --git a/Master/bin/i386-linux/getafm b/Master/bin/i386-linux/getafm new file mode 100755 index 00000000000..1c6cd21cf77 --- /dev/null +++ b/Master/bin/i386-linux/getafm @@ -0,0 +1,358 @@ +#!/bin/sh + +if [ $# -ne 1 ]; then + echo "usage: $0 font-name | gsnd - >font-name.afm" >&2 + exit 1 +fi + +cat << EOF +%! +% produce .afm for $1 +% (c) 1993 by Robert Joop +% inspired by two other versions of this theme which are +% getafm 1.00 (c) AJCD +% and getafm.ps by an unknown author, +% modified by J. Daniel Smith + +% Metrics dictionary code added by AJCD, 7/6/93 + +/getafmdict 100 dict dup begin + + /buf 256 string def + /buf2 16 string def + + /prany % dict dictname printname -> dict + { + 2 index 2 index cvn known + { + print % printname + ( ) print + 1 index exch cvn get = + } + { + (Comment /FontInfo contains no /) print + 2 copy eq + { + = % printname + pop % dictname + } + { + exch + print % dictname + (, therefore no ) print + = % printname + } + ifelse + } + ifelse + } + bind def + + /printfontname + { + (FontName)dup prany + } + bind def + + /printfontinfo + { + dup /FontInfo known + { + dup /FontInfo get + (FullName)dup prany + (FamilyName)dup prany + (Weight)dup prany + (ItalicAngle)dup prany + (isFixedPitch)(IsFixedPitch) prany + (UnderlinePosition)dup prany + (UnderlineThickness)dup prany + (Version)(version) prany + (Notice)dup prany + pop + } + { + (Comment Font lacks a /FontInfo!)= + } + ifelse + } + bind def + + /prbbox % llx lly urx ury -> - + { + 4 1 roll 3 1 roll exch % swap top 4 elements + 4 { ( ) print buf cvs print } repeat + } + bind def + + /getbbox % fontdict chardict character -> fontdict chardict llx lly urx ury + { + gsave + 2 index setfont 0 0 moveto + false charpath flattenpath pathbbox + grestore + } + bind def + + /printmiscinfo + { + dup /FontBBox known + { + (FontBBox) print + dup /FontBBox get aload pop prbbox ()= + } + { + (Comment missing required /FontBBox)= + quit + } + ifelse + 2 copy exch get + dup /H known + 1 index /x known and + 1 index /d known and + 1 index /p known and + dup /looksRoman exch def + { + (CapHeight ) print + (H) getbbox + ceiling cvi = pop pop pop + (XHeight ) print + (x) getbbox + ceiling cvi = pop pop pop + (Ascender ) print + (d) getbbox + ceiling cvi = pop pop pop + (Descender ) print + (p) getbbox + pop pop floor cvi = pop + } + { + (Comment font doesn't contain H, x, d and p; therefore no CapHeight, XHeight, Ascender and Descender)= + } + ifelse + pop + dup /Encoding get + [ + [ (ISOLatin1Encoding) /ISOLatin1Encoding ] + [ (AdobeStandardEncoding) /StandardEncoding ] + ] + { + aload pop dup where + { + exch get 2 index eq + { + (EncodingScheme ) print + buf cvs = + } + { + pop + } + ifelse + } + { + pop pop + } + ifelse + } + forall + pop + } + bind def + + /printcharmetric + { + % chardictname fontdict charnamedict encoding charindex charname + + 4 index dup length dict dup begin exch + { + 1 index /FID ne + 2 index /UniqueID ne + and + { + 1 index /Encoding eq { 256 array copy } if + def + } + { pop pop } + ifelse + } + forall + end + dup /Encoding get 32 3 index put + /f2 exch definefont + setfont + + (C ) print + 1 index buf cvs print + + ( ; WX ) print +% Metrics entries are: +% 1 number: which is the character width +% an array of 2 numbers: which are the left sidebearing and width +% an array of 4 numbers: x & y left sidebearing, width and height + dup 5 index % /charname fontdict + dup /Metrics known { + /Metrics get exch 2 copy known { + get dup type /arraytype eq { + dup length 2 eq + {1 get} {2 get} ifelse + } if + round cvi buf cvs print + } { + pop pop ( ) stringwidth pop round cvi buf cvs print + } ifelse + } { + pop pop ( ) stringwidth pop round cvi buf cvs print + } ifelse + + ( ; N ) print + dup buf cvs print + + ( ; B) print + gsave + newpath 0 0 moveto + ( ) true charpath flattenpath pathbbox + grestore + 2 { ceiling cvi 4 1 roll } repeat + 2 { floor cvi 4 1 roll } repeat + prbbox + + looksRoman + { + [ + [ /f [ /i /f /l ] ] + [ /ff [ /i /l ] ] + ] + { + aload pop 1 index 3 index eq + { + { + 1 index buf cvs + length + 1 index buf2 cvs dup length + 2 index add + buf + 4 2 roll putinterval + buf 0 + 3 -1 roll getinterval + dup cvn + 7 index + exch known + { + exch + ( ; L ) print + buf2 cvs print + ( ) print + print + } + { + pop pop + } + ifelse + } + forall + pop + } + { + pop pop + } + ifelse + } + forall + } + if + pop + + ( ;)= + } + bind def + + /printcharmetrics + { + (StartCharMetrics ) print + 2 copy exch get length 1 sub buf cvs = + + 256 dict dup begin + 1 index /Encoding get + { null def } + forall + end + % chardictname fontdict charnamedict + 1 index /Encoding get + 0 1 255 + { + % encoding index + 2 copy get + dup /.notdef eq { pop } { printcharmetric } ifelse + pop % index + } for + + -1 + 3 index 5 index get + { + pop + dup /.notdef eq + { pop } + { + % chardictname fontdict charnamedict encoding charindex charname + dup 4 index exch known + { pop } + { printcharmetric } + ifelse + } + ifelse + } + forall + % charnamedict encoding index + pop pop pop + + (EndCharMetrics)= + } + bind def + + /printfontmetrics + { + (StartFontMetrics 3.0)= + (Comment Produced by getafm 3.0 (which is by rj@rainbow.in-berlin.de))= + + printfontname + printfontinfo + printmiscinfo + printcharmetrics + + (EndFontMetrics)= + } + bind def + +end def + +/getafm +{ + getafmdict begin + save exch + findfont 1000 scalefont + + null + [ /CharDefs /CharData /CharProcs /CharStrings ] + { + 2 index 1 index known { exch } if + pop + } + forall + dup null eq + { + (can't find dictionary with character data!)= + quit + } + if + exch % dictname fontdict + + printfontmetrics + + pop pop + restore + end +} +bind def + +/$1 getafm + +EOF diff --git a/Master/bin/i386-linux/getnonfreefonts b/Master/bin/i386-linux/getnonfreefonts new file mode 120000 index 00000000000..26aadc46261 --- /dev/null +++ b/Master/bin/i386-linux/getnonfreefonts @@ -0,0 +1 @@ +../../texmf/scripts/texlive/getnonfreefonts.pl \ No newline at end of file diff --git a/Master/bin/i386-linux/getnonfreefonts-sys b/Master/bin/i386-linux/getnonfreefonts-sys new file mode 100644 index 00000000000..b3fbf603329 --- /dev/null +++ b/Master/bin/i386-linux/getnonfreefonts-sys @@ -0,0 +1 @@ +link ../../texmf/scripts/texlive/getnonfreefonts.pl \ No newline at end of file diff --git a/Master/bin/i386-linux/gftodvi b/Master/bin/i386-linux/gftodvi new file mode 100755 index 00000000000..75acd5cf6ee Binary files /dev/null and b/Master/bin/i386-linux/gftodvi differ diff --git a/Master/bin/i386-linux/gftopk b/Master/bin/i386-linux/gftopk new file mode 100755 index 00000000000..0c9b47c1771 Binary files /dev/null and b/Master/bin/i386-linux/gftopk differ diff --git a/Master/bin/i386-linux/gftype b/Master/bin/i386-linux/gftype new file mode 100755 index 00000000000..bab87e9189b Binary files /dev/null and b/Master/bin/i386-linux/gftype differ diff --git a/Master/bin/i386-linux/giftopng b/Master/bin/i386-linux/giftopng new file mode 100755 index 00000000000..e218c61fe6b --- /dev/null +++ b/Master/bin/i386-linux/giftopng @@ -0,0 +1,4 @@ +#!/bin/sh +X=`kpsewhich $1` +Y=`basename $X .gif`.png +convert $X $Y diff --git a/Master/bin/i386-linux/gsftopk b/Master/bin/i386-linux/gsftopk new file mode 100755 index 00000000000..f07ad03ff45 Binary files /dev/null and b/Master/bin/i386-linux/gsftopk differ diff --git a/Master/bin/i386-linux/hbf2gf b/Master/bin/i386-linux/hbf2gf new file mode 100755 index 00000000000..0446b73fda4 Binary files /dev/null and b/Master/bin/i386-linux/hbf2gf differ diff --git a/Master/bin/i386-linux/ht b/Master/bin/i386-linux/ht new file mode 100755 index 00000000000..0498e529af7 --- /dev/null +++ b/Master/bin/i386-linux/ht @@ -0,0 +1,7 @@ +#!/bin/sh + $1 $2 + $1 $2 + $1 $2 + tex4ht $2 + t4ht $2 $3 + diff --git a/Master/bin/i386-linux/htcontext b/Master/bin/i386-linux/htcontext new file mode 100755 index 00000000000..9e01fa97f66 --- /dev/null +++ b/Master/bin/i386-linux/htcontext @@ -0,0 +1,7 @@ +#!/bin/sh + texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 + + + diff --git a/Master/bin/i386-linux/htlatex b/Master/bin/i386-linux/htlatex new file mode 100755 index 00000000000..ebab47dbaa6 --- /dev/null +++ b/Master/bin/i386-linux/htlatex @@ -0,0 +1,9 @@ +#!/bin/sh + latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 + latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 + latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 + + + diff --git a/Master/bin/i386-linux/htmex b/Master/bin/i386-linux/htmex new file mode 100755 index 00000000000..485a7594468 --- /dev/null +++ b/Master/bin/i386-linux/htmex @@ -0,0 +1,9 @@ +#!/bin/sh + mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 + mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 + mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 + + + diff --git a/Master/bin/i386-linux/httex b/Master/bin/i386-linux/httex new file mode 100755 index 00000000000..4c184897d13 --- /dev/null +++ b/Master/bin/i386-linux/httex @@ -0,0 +1,9 @@ +#!/bin/sh + tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 + tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 + tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 + + + diff --git a/Master/bin/i386-linux/httexi b/Master/bin/i386-linux/httexi new file mode 100755 index 00000000000..26427698991 --- /dev/null +++ b/Master/bin/i386-linux/httexi @@ -0,0 +1,10 @@ +#!/bin/sh + tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 + tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 + tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 + tex4ht \dirchar $1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 + t4ht \dirchar $1 $4 ## -d~/WWW/temp/ -m644 +# texindex ? + + + diff --git a/Master/bin/i386-linux/includeres b/Master/bin/i386-linux/includeres new file mode 100755 index 00000000000..4547357cd93 --- /dev/null +++ b/Master/bin/i386-linux/includeres @@ -0,0 +1,46 @@ +#!/usr/bin/env perl +# includeres: include resources in PostScript file +# +# Copyright (C) Angus J. C. Duggan 1991-1995 +# See file LICENSE for details. + +$prog = ($0 =~ s=.*/==); + +%extn = ("font", ".pfa", "file", ".ps", "procset", ".ps", # resource extns + "pattern", ".pat", "form", ".frm", "encoding", ".enc"); +%type = ("%%BeginFile:", "file", "%%BeginProcSet:", "procset", + "%%BeginFont:", "font"); # resource types + +sub filename { # make filename for resource in @_ + local($name); + foreach (@_) { # sanitise name + s/[!()\$\#*&\\\|\`\'\"\~\{\}\[\]\<\>\?]//g; + $name .= $_; + } + $name =~ s@.*/@@; # drop directories + die "Filename not found for resource ", join(" ", @_), "\n" + if $name =~ /^$/; + $name; +} + +while (<>) { + if (/^%%IncludeResource:/ || /^%%IncludeFont:/ || /^%%IncludeProcSet:/) { + local($comment, @res) = split(/\s+/); + local($type) = defined($type{$comment}) ? $type{$comment} : shift(@res); + local($name) = &filename(@res); + local($inc) = ""; # system include directory + if (open(RES, $name) || open(RES, "$name$extn{$type}") || + open(RES, "$inc/$name") || open(RES, "$inc/$name$extn{$type}")) { + while () { + print $_; + } + close(RES); + } else { + print "%%IncludeResource: ", join(" ", $type, @res), "\n"; + print STDERR "Resource $name not found\n"; + } + } else { + print $_; + } +} + diff --git a/Master/bin/i386-linux/info b/Master/bin/i386-linux/info new file mode 100755 index 00000000000..881679f49d7 Binary files /dev/null and b/Master/bin/i386-linux/info differ diff --git a/Master/bin/i386-linux/infokey b/Master/bin/i386-linux/infokey new file mode 100755 index 00000000000..625dbb8197f Binary files /dev/null and b/Master/bin/i386-linux/infokey differ diff --git a/Master/bin/i386-linux/install-info b/Master/bin/i386-linux/install-info new file mode 100755 index 00000000000..2b7bf54ee61 Binary files /dev/null and b/Master/bin/i386-linux/install-info differ diff --git a/Master/bin/i386-linux/jadetex b/Master/bin/i386-linux/jadetex new file mode 120000 index 00000000000..f68cc91498e --- /dev/null +++ b/Master/bin/i386-linux/jadetex @@ -0,0 +1 @@ +pdftex \ No newline at end of file diff --git a/Master/bin/i386-linux/kpseaccess b/Master/bin/i386-linux/kpseaccess new file mode 100755 index 00000000000..5741fb87a74 Binary files /dev/null and b/Master/bin/i386-linux/kpseaccess differ diff --git a/Master/bin/i386-linux/kpsepath b/Master/bin/i386-linux/kpsepath new file mode 120000 index 00000000000..30de0e13853 --- /dev/null +++ b/Master/bin/i386-linux/kpsepath @@ -0,0 +1 @@ +kpsetool \ No newline at end of file diff --git a/Master/bin/i386-linux/kpsereadlink b/Master/bin/i386-linux/kpsereadlink new file mode 100755 index 00000000000..49169a7a22c Binary files /dev/null and b/Master/bin/i386-linux/kpsereadlink differ diff --git a/Master/bin/i386-linux/kpsestat b/Master/bin/i386-linux/kpsestat new file mode 100755 index 00000000000..342439bc3eb Binary files /dev/null and b/Master/bin/i386-linux/kpsestat differ diff --git a/Master/bin/i386-linux/kpsetool b/Master/bin/i386-linux/kpsetool new file mode 100755 index 00000000000..463097fd4a9 --- /dev/null +++ b/Master/bin/i386-linux/kpsetool @@ -0,0 +1,118 @@ +#!/bin/sh + +# kpsetool. Script to make teTeX-style kpsetool, kpsexpand and kpsepath +# available. Web2C's kpsewhich offers a superset of the functionality. +# For compatibilty with old versions of teTeX, this script provides the +# old command line interface of kpsetool, kpsexpand and kpsepath. All the +# real work is done inside Web2C's kpsewhich. +# Thomas Esser , Mar 1997, public domain. + +export PATH + +usage=" +Usage: kpsexpand [options] string +Usage: kpsetool -w [options] pathtype filename +Usage: kpsepath [options] pathtype + +Valid options are the following: + -n progname : pretend to be progname to kpathsea + -m mode : set Metafont mode + -w : locate files (similar to kpsewhich) + -p : act like kpsepath + -v : act like kpsexpand + +Valid pathtypes are: + gf : generic font bitmap + pk : packed bitmap font + base : Metafont memory dump + bib : BibTeX bibliography source + bst : BibTeX style files + cnf : Kpathsea runtime configuration files + fmt : TeX memory dump + mem : MetaPost memory dump + mf : Metafont source + mfpool : Metafont program strings + mp : MetaPost source + mppool : MetaPost program strings + mpsupport : MetaPost support files + pict : Other kinds of figures + tex : TeX source + texpool : TeX program strings + tfm : TeX font metrics + vf : virtual font + dvips_config : dvips config files + dvips_header : dvips header files + troff_font : troff fonts +" + +action=kpsexpand +case $0 in + */kpsewhich) action=kpsewhich;; + */kpsepath) action=kpsepath;; +esac + +progname=`echo $0 | sed 's@.*/@@'` +flags='' + +while true; do + case x"$1" in + x-n) + if test $# = 1; then + echo "$progname: missing argument for -n." + echo "$usage"; exit 1 + else + flags="$flags -progname=$2"; shift; shift + fi;; + x-m) + if test $# = 1; then + echo "$progname: missing argument for -m." + echo "$usage"; exit 1 + else + flags="$flags -mode=$2"; shift; shift + fi;; + x-w) action=kpsewhich; shift;; + x-p) action=kpsepath; shift;; + x-v) action=kpsexpand; shift;; + *) break;; + esac +done + +case "$action" in + kpsewhich|kpsepath) + case "$1" in + gf) format='gf';; + pk) format='pk';; + base) format='.base';; + bib) format='.bib';; + bst) format='.bst';; + cnf) format='.cnf';; + fmt) format='.fmt';; + mem) format='.mem';; + mf) format='.mf';; + mfpool) format='.pool';; + mp) format='.mp';; + mppool) format='.pool';; + mpsupport) format='MetaPost support';; + pict) format='.eps';; + tex) format='.tex';; + texpool) format='.pool';; + tfm) format='.tfm';; + vf) format='.vf';; + dvips_config) format='dvips config';; + dvips_header) format='.pro';; + troff_font) format='Troff fonts';; + *) echo "$progname: $1: unknown format"; echo "$usage"; exit 1;; + esac + shift;; +esac + +case "$action" in + kpsewhich) + test $# = 1 || { echo "$progname: missing filename"; echo "$usage"; exit 1; } + kpsewhich $flags -format="$format" "$1";; + kpsepath) + kpsewhich $flags -show-path="$format";; + kpsexpand) + test $# = 1 || { echo "$progname: missing string"; echo "$usage"; exit 1; } + kpsewhich $flags -expand-var="$1";; +esac diff --git a/Master/bin/i386-linux/kpsewhere b/Master/bin/i386-linux/kpsewhere new file mode 100755 index 00000000000..51088ee80d6 --- /dev/null +++ b/Master/bin/i386-linux/kpsewhere @@ -0,0 +1,63 @@ +#!/bin/sh +# +# Thomas Esser, Hans Fredrik Nordhaug, 2003, 2004. +# Public domain. +# +# kpsewhere is an extension to kpsewhich (as where is for which in tcsh). +# The intention is to provide a way to check for conflicts/shadowed +# files. +# +# Original version by Hans Fredrik Nordhaug +# +# Bugs / limitations: +# conflicts/shadowed files whithin each texmf tree are not found. +# + + +test -f /bin/sh5 && test -z "$RUNNING_SH5" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ + && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } +unset RUNNING_SH5 + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +export PATH + +help='Usage: kpsewhere [OPTION]... [FILENAME]... + Expanding kpsewhich to iterate over each texmf tree listed in $TEXMF + separately. + + See kpsewhich for help on options. + + --help show this help' + +options= +while + case $1 in + -h|-help|--help) + echo "$help" >&2 + exit 0;; + -*) options="${options} '${1}'";; + *) break;; + esac +do shift; done + +case $# in + 0) + echo "$help" >&2 + exit 1 + ;; +esac + +IFS=':' +for file +do + for path in `kpsewhich --expand-path='$TEXMF'` + do + eval TEXMF=\$path kpsewhich $options \"\$file\" + done +done +exit 0 diff --git a/Master/bin/i386-linux/kpsewhich b/Master/bin/i386-linux/kpsewhich new file mode 100755 index 00000000000..1b43783f1e4 Binary files /dev/null and b/Master/bin/i386-linux/kpsewhich differ diff --git a/Master/bin/i386-linux/kpsexpand b/Master/bin/i386-linux/kpsexpand new file mode 120000 index 00000000000..30de0e13853 --- /dev/null +++ b/Master/bin/i386-linux/kpsexpand @@ -0,0 +1 @@ +kpsetool \ No newline at end of file diff --git a/Master/bin/i386-linux/lacheck b/Master/bin/i386-linux/lacheck new file mode 100755 index 00000000000..6903787749a Binary files /dev/null and b/Master/bin/i386-linux/lacheck differ diff --git a/Master/bin/i386-linux/lambda b/Master/bin/i386-linux/lambda new file mode 120000 index 00000000000..de9fd6e773d --- /dev/null +++ b/Master/bin/i386-linux/lambda @@ -0,0 +1 @@ +omega \ No newline at end of file diff --git a/Master/bin/i386-linux/lamed b/Master/bin/i386-linux/lamed new file mode 120000 index 00000000000..b02b132b9c1 --- /dev/null +++ b/Master/bin/i386-linux/lamed @@ -0,0 +1 @@ +aleph \ No newline at end of file diff --git a/Master/bin/i386-linux/latex b/Master/bin/i386-linux/latex new file mode 120000 index 00000000000..f68cc91498e --- /dev/null +++ b/Master/bin/i386-linux/latex @@ -0,0 +1 @@ +pdftex \ No newline at end of file diff --git a/Master/bin/i386-linux/luatex b/Master/bin/i386-linux/luatex new file mode 100755 index 00000000000..1333f5f94ed Binary files /dev/null and b/Master/bin/i386-linux/luatex differ diff --git a/Master/bin/i386-linux/luatools b/Master/bin/i386-linux/luatools new file mode 100755 index 00000000000..cb3ec1add4a --- /dev/null +++ b/Master/bin/i386-linux/luatools @@ -0,0 +1,2 @@ +#!/bin/sh +texmfstart luatools.lua "$@" diff --git a/Master/bin/i386-linux/mag b/Master/bin/i386-linux/mag new file mode 100755 index 00000000000..95807d9059e Binary files /dev/null and b/Master/bin/i386-linux/mag differ diff --git a/Master/bin/i386-linux/makeglossaries b/Master/bin/i386-linux/makeglossaries new file mode 120000 index 00000000000..526413aa3ea --- /dev/null +++ b/Master/bin/i386-linux/makeglossaries @@ -0,0 +1 @@ +../../texmf-dist/scripts/glossaries/makeglossaries \ No newline at end of file diff --git a/Master/bin/i386-linux/makeindex b/Master/bin/i386-linux/makeindex new file mode 100755 index 00000000000..08ddad1422f Binary files /dev/null and b/Master/bin/i386-linux/makeindex differ diff --git a/Master/bin/i386-linux/makeinfo b/Master/bin/i386-linux/makeinfo new file mode 100755 index 00000000000..50b296ef8eb Binary files /dev/null and b/Master/bin/i386-linux/makeinfo differ diff --git a/Master/bin/i386-linux/makempx b/Master/bin/i386-linux/makempx new file mode 100755 index 00000000000..7f5144ac7f9 Binary files /dev/null and b/Master/bin/i386-linux/makempx differ diff --git a/Master/bin/i386-linux/makempy b/Master/bin/i386-linux/makempy new file mode 100755 index 00000000000..4bf7a1af230 --- /dev/null +++ b/Master/bin/i386-linux/makempy @@ -0,0 +1,2 @@ +#!/bin/sh +texmfstart makempy.pl "$@" diff --git a/Master/bin/i386-linux/mex b/Master/bin/i386-linux/mex new file mode 120000 index 00000000000..f68cc91498e --- /dev/null +++ b/Master/bin/i386-linux/mex @@ -0,0 +1 @@ +pdftex \ No newline at end of file diff --git a/Master/bin/i386-linux/mf b/Master/bin/i386-linux/mf new file mode 100755 index 00000000000..b1f551dd110 Binary files /dev/null and b/Master/bin/i386-linux/mf differ diff --git a/Master/bin/i386-linux/mf-nowin b/Master/bin/i386-linux/mf-nowin new file mode 100755 index 00000000000..45ff5ce3e3d Binary files /dev/null and b/Master/bin/i386-linux/mf-nowin differ diff --git a/Master/bin/i386-linux/mft b/Master/bin/i386-linux/mft new file mode 100755 index 00000000000..a679ff2e36b Binary files /dev/null and b/Master/bin/i386-linux/mft differ diff --git a/Master/bin/i386-linux/mk4ht b/Master/bin/i386-linux/mk4ht new file mode 100755 index 00000000000..2bd1f7e2038 --- /dev/null +++ b/Master/bin/i386-linux/mk4ht @@ -0,0 +1,346 @@ +#!/usr/bin/env perl +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +# mk4ht 2007-01-04-01:34 % +# Copyright (C) 2003--2007 Eitan M. Gurari % +# % +# % +# This work may be distributed and/or modified under the % +# conditions of the LaTeX Project Public License, either % +# version 1.3 of this license or (at your option) any % +# later version. The latest version of this license is % +# in % +# http://www.latex-project.org/lppl.txt % +# and version 1.3 or later is part of all distributions % +# of LaTeX version 2003/12/01 or later. % +# % +# This work has the LPPL maintenance status "maintained".% +# % +# This Current Maintainer of this work % +# is Eitan M. Gurari. % +# % +# gurari@cse.ohio-state.edu % +# http://www.cse.ohio-state.edu/~gurari % +#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +use strict; +$^W=1; # turn warning on +my @options = ( + "", "ht", "", "", "", "-cvalidatehtml", + "ht", "htlatex", "latex", "", "", "-cvalidatehtml", + "ht", "httex", "tex", "", "", "-cvalidatehtml", + "ht", "httexi", "texi", "", "", "-cvalidatehtml", + "ht", "htcontext", "context", "", "", "-cvalidatehtml", + "xh", "xhlatex", "latex", "xhtml", "", "-cvalidate", + "xh", "xhtex", "tex", "xhtml", "", "-cvalidate", + "xh", "xhtexi", "texi", "xhtml", "", "-cvalidate", + "xh", "xhcontext","context", "xhtml", "", "-cvalidat", + "uxh", "uxhlatex", "latex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", + "uxh", "uxhtex", "tex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", + "uxh", "uxhtexi", "texi", "xhtml,uni-html4", " -cunihtf", "-cvalidate", + "uxh", "uxhcontext","context", "xhtml,uni-html4", " -cunihtf", "-cvalidate", + "xhm", "xhmlatex", "latex", "xhtml,mathml", " -cunihtf", "-cvalidate", + "xhm", "xhmtex", "tex", "xhtml,mathml", " -cunihtf", "-cvalidate", + "xhm", "xhmtexi", "texi", "xhtml,mathml", " -cunihtf", "-cvalidate", + "xhm", "xhmcontext","context", "xhtml,mathml", " -cunihtf", "-cvalidate", + "mz", "mzlatex", "latex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", + "mz", "mztex", "tex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", + "mz", "mztexi", "texi", "xhtml,mozilla", " -cmozhtf", "-cvalidate", + "mz", "mzcontext", "context", "xhtml,mozilla", " -cmozhtf", "-cvalidate", + "oo", "oolatex", "latex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", + "oo", "ootex", "tex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", + "oo", "ootexi", "texi", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", + "oo", "oocontext", "context", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", + "es", "eslatex", "latex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", + "es", "estex", "tex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", + "es", "estexi", "texi", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", + "es", "escontext", "context", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", + "js", "jslatex", "latex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", + "js", "jstex", "tex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", + "js", "jstexi", "texi", "xhtml,jsml", " -cjsmlhtf", "-cjsml", + "js", "jscontext", "context", "xhtml,jsml", " -cjsmlhtf", "-cjsml", + "jm", "jmlatex", "latex", "xhtml,jsmath", " -cmozhtf", "", + "jm", "jmtex", "tex", "xhtml,jsmath", " -cmozhtf", "", + "jm", "jmtexi", "texi", "xhtml,jsmath", " -cmozhtf", "", + "jm", "jmcontext", "context", "xhtml,jsmath", " -cmozhtf", "", + "tei", "teilatex", "latex", "xhtml,tei", " -cunihtf", "-cvalidate", + "tei", "teitex", "tex", "xhtml,tei", " -cunihtf", "-cvalidate", + "tei", "teitexi", "texi", "xhtml,tei", " -cunihtf", "-cvalidate", + "tei", "teicontext","context", "xhtml,tei", " -cunihtf", "-cvalidate", + "teim", "teimlatex", "latex", "xhtml,tei-mml"," -cunihtf", "-cvalidate", + "teim", "teimtex", "tex", "xhtml,tei-mml"," -cunihtf", "-cvalidate", + "teim", "teimtexi", "texi", "xhtml,tei-mml"," -cunihtf", "-cvalidate", + "teim", "teimcontext","context","xhtml,tei-mml"," -cunihtf", "-cvalidate", + "db", "dblatex", "latex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", + "db", "dbtex", "tex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", + "db", "dbtexi", "texi", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", + "db", "dbcontext", "context", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", + "dbm", "dbmlatex", "latex", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", + "dbm", "dbmtex", "tex", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", + "dbm", "dbmtexi", "texi", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", + "dbm", "dbmcontext","context", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", + "w", "wlatex", "latex", "xhtml,word", " -csymhtf", "", + "w", "wtex", "tex", "xhtml,word", " -csymhtf", "", + "w", "wtexi", "texi", "xhtml,word", " -csymhtf", "", + "w", "wcontext", "context", "xhtml,word", " -csymhtf", "", + "jh", "jhlatex", "latex", "html,javahelp,3.2,unicode", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp -cvalidatehtml", + "jh", "jhtex", "tex", "html,javahelp,3.2,unicode", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp -cvalidatehtml", + "jh", "jhtexi", "texi", "html,javahelp,3.2,unicode", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp -cvalidatehtml", + "jh", "jhcontext","context", "html,javahelp,3.2,unicode", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp -cvalidatehtml", + "jh1", "jh1latex", "latex", "html,javahelp,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp", + "jh1", "jh1tex", "tex", "html,javahelp,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp", + "jh1", "jh1texi", "texi", "html,javahelp,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp", + "jh1", "jh1context","context", "html,javahelp,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d%1-doc/ -cjavahelp", + +); + +sub showInstrucions(){ + print " option1: mk4ht #1 \"#2\" \"#3\" \"#4\" \"#5\"\n"; + print " \n"; + print " #1: htlatex, xhlatex, mzlatex, oolatex, dblatex, dbmlatex,\n"; + print " jhlatex, eslatex, teilatex, teimlatex, uxhlatex, \n"; + print " wlatex, xhmlatex\n"; + print " \n"; + print " also 'tex', 'texi', and 'context' instead of 'latex'\n"; + print " \n"; + print " #2: file name\n"; + print " #3: optional arguments for latex/tex/texi/context \n"; + print " #4: optional arguments for tex4ht.c\n"; + print " #5: optional arguments for t4ht.c\n"; + print " \n"; + print " option2: mk4ht ht #2 #3 \"#4\" \"#5\"\n"; + print " \n"; + print " #1: ht\n"; + print " #2: latex, tex\n"; + print " #3: file name\n"; + print " #4: optional arguments for tex4ht.c\n"; + print " #5: optional arguments for t4ht.c\n"; + print " \n"; + print " Within the program, in column three of the options\n"; + print " variable, the requests for the commands \"latex\",\n"; + print " \"tex\", etc. can be replaced with other equivalent\n"; + print " commands (e.g., \"tex -fmt=latex\").\n"; + + print "--------------------------------------------------------------------------\n"; +print " Private configuration file: mk4ht.cfg\n"; +print "--------------------------------------------------------------------------\n"; +print "\n"; +print "A private configuration file mk4ht.cfg or .mk4ht may be placed at the\n"; +print "work or home directory, to update existing commands and introduce new\n"; +print "ones. The configuration file may contain records of the following\n"; +print "kinds.\n"; +print "\n"; +print " # Comment\n"; +print " \n"; +print " name = type\n"; +print " Defines a ht*tex like command, and assocites to it the \n"; +print " TeX compiler of the specified type. Examples of TeX \n"; +print " types: latex, tex, texi, and context.\n"; +print " \n"; +print " name.tex = options\n"; +print " Command line options for the compilation under\n"; +print " the (la)tex compiler\n"; +print " \n"; +print " name.tex4ht = options\n"; +print " Command line options for tex4ht.c \n"; +print " \n"; +print " name.t4ht = options\n"; +print " Command line options for t4ht.c\n"; +print " \n"; +print "Each record should appear in a different line. Variants\n"; +print "`name.tex += options', `name.tex4ht += options',\n"; +print "`name.t4ht += options' of the above records are also allowed.\n"; +print "They append the listed options to the base values.\n"; +print "\n"; +print "Example:\n"; +print "\n"; +print " foohlatex = latex\n"; +print " foohlatex.tex = xhtml,uni-html4\n"; +print " foohlatex.tex4ht += -cunihtf\n"; +print " foohlatex.t4ht = -cvalidate\n"; +print " htlatex.t4ht += -d./\n"; + + + print "--------------------------------------------------------------------------\n"; +print " Deleting files\n"; +print "--------------------------------------------------------------------------\n"; +print "\n"; +print "The configuration file mk4ht.cfg may also contain requests for\n"; +print "removing files created in the work directory during the compilation.\n"; +print "The requests are to be made through records of the following forms.\n"; +print "\n"; +print " clean ext1 ext2 ...\n"; +print " The extensions of the file name to be removed.\n"; +print " \n"; +print " clean.name ext1 ext2 ...\n"; +print " Conditional request. The `name' refers to the ht*tex \n"; +print " like command in use.\n"; +print "\n"; +print "Example:\n"; +print " clean dvi idv\n"; +print " clean.foohlatex lg \n"; +print " clean.htlatex lg tmp\n"; + +} + +print "mk4ht (2007-01-04-01:34)\n"; +if( !@ARGV ){ + print "improper command\n"; + showInstrucions(); exit(1); +} +my @command=("","","","",""); +my $i=0; +my $j=0; +my $param; +my $name; +my $compiler; +my $tex; +my $tex4ht; +my $t4ht; +my $texp; +my $tex4htp = ""; +my $t4htp = ""; +my @ext; + +foreach $param (@ARGV) { + if( $i == 0 ){ + my $inf; +open $inf, ") { + my($line) = $_; + chomp($line); # remove eoln char + if ($line =~ m|\s*#.*|) {} + elsif($line =~ m|^\s*(\S*)\.(\S*)\s*\+=\s*(.*\S)\s*$|) { + if( ($param."tex4ht") eq ($1.$2) ){ + $tex4htp = $tex4htp . " " . $3; + } + elsif( ($param."t4ht") eq ($1.$2) ){ + $t4htp = $t4htp . " " . $3; + } + elsif( ($param."tex") eq ($1.$2) ){ + $texp = $texp . "," . $3; + } + } + elsif($line =~ m|^\s*(\S*)\.(\S*)\s*=\s*(.*\S)\s*$|) { + if( ($param."tex4ht") eq ($1.$2) ){ + $tex4ht = $3 . " "; + $tex4htp = ""; + } + elsif( ($param."t4ht") eq ($1.$2) ){ + $t4ht = $3 . " "; + $t4htp = ""; + } + elsif( ($param."tex") eq ($1.$2) ){ + $tex = $3 . ","; + $texp = ""; + } + } + elsif($line =~ m|^\s*(\S*)\s*=\s*(.*\S)\s*$|) { + if( $param eq $1 ){ + $name = $1; + $compiler = $2; + } + } + elsif($line =~ m|^\s*clean\s+(.+)|){ + my(@array) = split(' ',$1); + push(@ext,@array); +} elsif($line =~ m|^\s*clean\.(\S+)\s+(.+)|){ + if( $1 eq @ARGV[0] ){ + my(@array) = split(' ',$2); + push(@ext,@array); +} } + + elsif ($line) { print "--- Error --- " . $line . "\n"; } + } + close $inf; +} + + for( $j=1; $j<$#options; $j+=6 ){ + if( $param eq $options[$j] ){ + if( $name ){ + $command[0] = "ht".$compiler; +if( $tex ){ $command[2] = $tex; } else { $command[2] = ""; } +if( $tex4ht ){ $command[3] = $tex4ht; } else { $command[3] = ""; } +if( $t4ht ){ $command[4] = $t4ht; } else { $command[4] = ""; } + + } else { + if( $options[$j-1] eq "" ){ + $command[0] = $options[$j]; +} else { + $command[0] = "ht".$options[$j+1]; +} +if( $tex ){ $command[2] = $tex; } else { $command[2] = $options[$j+2]; } +if( $tex4ht ){ $command[3] = $tex4ht; } else { $command[3] = $options[$j+3]; } +if( $t4ht ){ $command[4] = $t4ht; } else { $command[4] = $options[$j+4]; } + + } + if( $texp ){ $command[2] = $command[2] . "," . $texp; } +if( $tex4htp){ $command[3] = $command[3] . " " . $tex4htp; } +if( $t4htp ){ $command[4] = $command[4] . " " . $t4htp; } + + last; + } } + if( $j>$#options ){ + if( $name ){ $command[0] = "ht".$compiler; +if( $tex ){ $command[2] = $tex; } else { $command[2] = ""; } +if( $tex4ht ){ $command[3] = $tex4ht; } else { $command[3] = ""; } +if( $t4ht ){ $command[4] = $t4ht; } else { $command[4] = ""; } + } + else { + print "improper command: $param \n"; + showInstrucions(); exit(1); + } } + } elsif ( $i== 1 ) { + $command[1] = $param; + } elsif ( $i== 2 ) { + if( $command[2] eq "" ){ + $command[2] = $param; + } else { + $command[2] = $param. "," . $command[2]; + } + } elsif ( $i== 3 ) { + $command[3] = $param . $command[3]; + } else { + $command[4] = $param. " " .$command[4]; + } + $i++; +} +my $commando = $command[0] . " " . $command[1] . " \"". + $command[2] . "\" \"". $command[3] . "\" \"" . + $command[4] . "\""; +print "$commando\n"; +my $rtrn; +if( $rtrn = system($commando) ){ + print "--- error --- failed to execute command\n"; +} else { + my $file; +my $ext; +my(@array) = split('\.',@ARGV[1]); +my $texFile = @array[0]; +opendir(DIR,".") ; +while ($file = readdir(DIR) ){ + if(index($file,$texFile) == 0 ){ + foreach $ext(@ext){ + if (index($file,$ext,length($file)-length($ext)) != -1){ + if( stat($file)){ + unlink($file); + print "Deleted: ". $file . "\n"; +} } } } } +closedir(DIR); + + exit( !$rtrn ); +} + diff --git a/Master/bin/i386-linux/mkindex b/Master/bin/i386-linux/mkindex new file mode 100755 index 00000000000..565f805695d --- /dev/null +++ b/Master/bin/i386-linux/mkindex @@ -0,0 +1,39 @@ +#!/bin/sh + +test -f /bin/sh5 && test -z "$RUNNING_SH5" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \ + && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } +unset RUNNING_SH5 + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +unset RUNNING_BSH + +progname=`basename $0` +case $# in + 0) + echo "usage: `basename $0` file[.idx] ..." 1>&2 + exit 1 + ;; +esac + +gind=gind.ist +gglo=gglo.ist + +# remember starting directory +dir=`pwd` + +# loop over all files +for i +do + destdir=`echo $i | sed 's/^[^\/]*$/./; s/\/[^\/]*$//'` + test -d "$destdir"||continue + cd "$destdir" + FILENAME=`basename $i .idx` + test -f "$FILENAME".idx \ + && makeindex -s $gind "$FILENAME" + test -f "$FILENAME".glo \ + && makeindex -s $gglo -o "$FILENAME".gls "$FILENAME".glo + cd "$dir" +done diff --git a/Master/bin/i386-linux/mkjobtexmf b/Master/bin/i386-linux/mkjobtexmf new file mode 100755 index 00000000000..27f94a5a375 --- /dev/null +++ b/Master/bin/i386-linux/mkjobtexmf @@ -0,0 +1,799 @@ +#!/usr/bin/env perl +# +# ToDos/unsolved problems: +# * collision of symbol links +# * texmf.cnf (path settings, variables) +# * aliases +# * binaries, libraries +# +use strict; +$^W=1; + +my $prj = 'mkjobtexmf'; +my $version = '0.5'; +my $date = '2007/09/06'; +my $author = 'Heiko Oberdiek'; +my $copyright = "Copyright 2007 $author"; + +my $cmd_tex = 'pdflatex'; +my $cmd_kpsewhich = 'kpsewhich'; +my $cmd_texhash = 'texhash'; +my $cmd_strace = 'strace'; +my $ext_tex = '.tex'; +my $ext_recorder = '.fls'; +my $ext_strace = '.strace'; +my $ext_mkjobtexmf = '.mjt'; +my $jobname = ''; +my $texname = ''; +my $destdir = ''; +my @args = (); +my @texopt = (); +my $verbose = 0; +my $output = 0; +my $strace = 0; +my $copy = 0; +my $flat = 0; +my $needs_texhash = 0; +my @texmf; +my %files; +my %links; +my %flat_ignore = ( + 'ls-R' => '', + 'aliases' => '', +); + +my $title = "\U$prj\E $date v$version, $copyright\n"; + +print $title; + +sub die_error ($) { + my $msg = shift; + die "!!! Error: $msg!\n"; +} + +sub warning ($) { + my $msg = shift; + print "!!! Warning: $msg!\n"; +} + +sub verbose (@) { + my @msg = @_; + print "* @msg\n" if $verbose; +} + +sub value ($) { + my $value = $_[0]; + "[$value]"; +} + +sub die_usage { + my $msg = $_[0]; + pod2usage( + -exitstatus => 2, + -msg => "\n==> $msg!\n"); +} + +use Getopt::Long; +use Pod::Usage; + +my $man = 0; +my $help = 0; + +GetOptions( + 'jobname=s' => \$jobname, + 'texname=s' => \$texname, + 'texopt=s' => \@texopt, + 'destdir=s' => \$destdir, + 'cmd-tex=s' => \$cmd_tex, + 'cmd-kpsewhich=s' => \$cmd_kpsewhich, + 'cmd-texhash=s' => \$cmd_texhash, + 'strace' => \$strace, + 'copy' => \$copy, + 'flat' => \$flat, + 'verbose' => \$verbose, + 'output' => \$output, + 'help|?' => \$help, + 'man' => \$man, +) or die_usage('Unknown option'); +pod2usage(1) if $help; +pod2usage(-exitstatus => 0, -verbose => 2) if $man; + +if (@ARGV > 0) { + $strace = 1; + $texname = ''; + my @args = @ARGV; +} +$jobname or die_usage('Missing jobname'); +$texname = "$jobname$ext_tex" unless $texname; +$destdir = "$jobname$ext_mkjobtexmf" unless $destdir; + +verbose "jobname: " . value $jobname; +verbose "texname: " . value $texname if $texname; +verbose "command: " . value "@args" if @args; +verbose "destdir: " . value $destdir; + +if (!$copy) { + my $symlink_exists = eval { symlink('', ''); 1 }; + if ($symlink_exists) { + verbose "symbolic linking: supported"; + } + else { + $copy = 1; + verbose "symbolic linking: unsupported"; + } +} +my $umask = umask; +if (defined($umask)) { + verbose "umask: " . sprintf("%04o", $umask); +} +else { + $umask = 0; + verbose "umask: unsupported"; +} + +if ($copy) { + use File::Copy; +} +if ($flat) { + use File::Basename; +} + +sub check_child_error () { + if ($? != 0) { + if ($? == -1) { + die_error "Failed to execute: $!"; + } + elsif ($? & 127) { + die_error sprintf "Child died with signal %d, %s coredump", + ($? & 127), ($? & 128) ? 'with' : 'without'; + } + else { + die_error sprintf "Child exited with value %d", $? >> 8; + } + } + verbose "child exit: ok"; +} + +sub run_generic (@) { + my @args = @_; + my $cmd = $_[0]; + verbose "exec: " . value "@args"; + print '>' x 79, "\n"; + system $cmd @args; + print '<' x 79, "\n"; + check_child_error; +} + +sub run_tex { + if ($strace) { + my @run_args; + if (@args) { + @run_args = @args; + } + else { + @run_args = ( + $cmd_tex, + '-interaction=nonstopmode', + @texopt, + $texname + ); + } + run_generic( + $cmd_strace, + '-f', + '-e', + 'trace=open,access', # trace=file + '-o', + "$jobname$ext_strace", + @run_args + ) + } + else { + run_generic( + $cmd_tex, + '-recorder', + "-jobname=$jobname", + '-interaction=nonstopmode', + @texopt, + $texname + ); + } +} + +sub run_texhash { + return if $flat; + if ($needs_texhash) { + run_generic( + $cmd_texhash, + "$destdir/texmf" + ); + } + else { + verbose("texhash run skipped, no files added"); + } +} + +use Cwd 'abs_path', 'getcwd'; + +sub get_texmf_trees () { + return if $flat; + my $cmdline = "$cmd_kpsewhich -expand-path='\$TEXMF'"; + verbose "exec: " . value($cmdline); + my $str = `$cmdline`; + check_child_error; + chomp $str; + @texmf = split ':', $str; + my %texmf; + foreach my $texmf (@texmf) { + $texmf{$texmf} = ''; + $texmf{abs_path($texmf)} = ''; + } + @texmf = sort keys %texmf; + if ($verbose) { + if (@texmf) { + map { verbose 'texmf: ' . value($_) } @texmf; + } + else { + verbose 'texmf: none'; + } + } +} + +sub analyze_recorder { + my $pwd = getcwd; + verbose "pwd: " . value($pwd); + + my $file_rec = $jobname . ($strace ? $ext_strace : $ext_recorder); + verbose 'File with recorded file names: ' . value($file_rec); + open(IN, '<', $file_rec) + or die_error "Cannot open `$file_rec'"; + if ($strace) { + while () { + chomp; + next if /\)\s+= -\d/; # -1 ENOENT, ... + next if /\WO_DIRECTORY\W/; # skip directories + my $type = 'INPUT'; + if ($output) { + $type = 'OUTPUT' if /\WO_WRONLY\W/; + } + else { + next if /\WO_WRONLY\W/; + } + /^\d+\s+\w+\(\"([^"]+)\",/ or warning "Unknown entry `$_'"; + my $file = $1; + $files{$file} = ''; + } + } + else { + while () { + chomp; + next if /^PWD /; + next if not $output and /^OUTPUT /; + /^(INPUT|OUTPUT) (.*)$/ or warning "Unknown entry `$_'"; + my $type = $1; + my $file = $2; + $files{$file} = ''; + } + } + close(IN); +} + +sub map_files { + if ($flat) { + map_files_flat(); + } + else { + map_files_texmf(); + } +} + +sub map_files_flat { + my %abs_files; + my %names; + my %clashes; + + foreach my $file (keys %files) { + $abs_files{abs_path($file)} = ''; + } + + foreach my $file (keys %abs_files) { + my $name = basename($file); + next if exists $flat_ignore{$name}; + if (defined($names{$name})) { + push @{$names{$name}}, $file; + $clashes{$name} = ''; + } + else { + my @a = ($file); + $names{$name} = \@a; + } + } + + foreach my $name (sort keys %clashes) { + print "* file name clash for " . value($name) . "\n"; + my @a = @{$names{$name}}; + foreach my $file (@a) { + print " " . value($file) . "\n"; + } + } + + foreach my $name (sort keys %names) { + my $file = @{$names{$name}}[0]; + my $clash = $clashes{$name} ? ' (clash)' : ''; + verbose value($name) . ' => ' . value($file) . $clash; + $links{$name} = $file; + } +} + +sub map_files_texmf { + my @failed; + + foreach my $file (sort keys %files) { + verbose "file: " . value($file); + + my $abs_file = abs_path($file); + + my $found = ''; + foreach (@texmf) { + my $texmf = "$_/"; + my $len = length($texmf); + my $str = substr $file, 0, $len; + if ($texmf eq $str) { + $found = 'texmf/' . substr $file, $len; + if ($found =~ /(^|\/)\.\.\//) { + $found = ''; + } + } + last if $found; + my $str = substr $abs_file, 0, $len; + if ($texmf eq $str) { + $found = 'texmf/' . substr $abs_file, $len; + last; + } + } + if (not($found)) { + if ($file =~ /(^|\/)\.\.\// or $file =~ /^\//) { + push @failed, $file; + } + else { + $found = $file; + } + } + if ($found) { + $links{$found} = abs_path($file); + } + } + + if ($verbose) { + foreach (sort keys %links) { + verbose value($_) . ' => ' . value($links{$_}); + } + } + + foreach (@failed) { + print "!!! Failed: " . value($_) . "\n"; + } +} + +sub make_dirs ($) { + my $path = shift; + my @elems = split /\/+/, $path; + if (@elems <= 1) { + return; + } + pop @elems; + my $dir = ''; + foreach my $elem (@elems) { + $dir .= '/' if $dir; + $dir .= $elem; + next if -d $dir; + verbose 'mkdir: ' . value($dir); + mkdir $dir or die_error "Cannot make directory `$dir'"; + } +} + +sub make_links { + + foreach my $key (sort keys %links) { + my $source = $links{$key}; + my $dest = "$destdir/$key"; + make_dirs $dest; + if (-e $dest) { + my $type = ''; + if (-l $dest) { + $type .= 'link'; + } + elsif (-f $dest) { + $type = 'file'; + } + elsif (-d $dest) { + $type = 'directory'; + } + elsif (-b $dest) { + $type = 'block device'; + } + elsif (-c $dest) { + $type = 'character device'; + } + elsif (-p $dest) { + $type = 'pipe'; + } + elsif (-S $dest) { + $type = 'socket'; + } + elsif (-t $dest) { + $type = 'tty'; + } + $type = " ($type)" if $type; + verbose "destination$type exists: " . value($dest); + next; + } + $needs_texhash = 1; + do_link_copy($source, $dest); + } +} + +sub do_link_copy { + my $source = shift; + my $dest = shift; + my $success = 0; + + if ($copy) { + if (copy($source, $dest) == 1) { + $success = 1; + my ($source_mode, $source_atime, $source_mtime) + = (stat($source))[2, 8, 9]; + my ($dest_mode, $dest_atime, $dest_mtime) + = (stat($dest))[2, 8, 9]; + # preserve executable permissions if necessary + my $new_dest_mode = $dest_mode + | (($source_mode & 0111) & ~$umask); + if ($new_dest_mode != $dest_mode) { + if (chmod($new_dest_mode, $dest) < 1) { + print "!!! Setting executive mode failed: " + . value($dest) . "\n"; + } + } + # preserve file times + if ($source_atime != $dest_atime + || $source_mtime != $dest_mtime) { + if (utime($source_atime, $source_mtime, $dest) < 1) { + print "!!! Setting file times failed: " + . value($dest) . "\n"; + } + } + } + } + else { + if (symlink($source, $dest) == 1) { + $success = 1; + } + } + if ($success == 0) { + my $method = $copy ? 'Copying' : 'Symbolic linking'; + print "!!! $method failed:\n " + . value($dest) . ' => ' . value($source) . "\n"; + } +} + +run_tex; +get_texmf_trees; +analyze_recorder; +map_files; +make_links; +run_texhash; + +1; + +__DATA__ + +=head1 NAME + +mkjobtexmf -- Generate a texmf tree for a particular job + +=head1 SYNOPSIS + +The progam B runs a program and tries to +find the used file names. Two methods are available, +option C<-recorder> of TeX (Web2C) or the program B. + +Then it generates a directory with a texmf tree. It checks +the found files and tries sort them in this texmf tree. + +It can be used for archiving purposes or to speed up +following TeX runs. + + mkjobtexmf [options] + +This runs TeX that can be configured by options. +Both methods for getting the used file names are available. + + mkjobtexmf [options] -- [args] + +The latter form runs program I with arguments I +instead of TeX. As method only program B is available. + +Options: + + --jobname Name of the job (mandatory). + Usually this is the TeX file + without extension + --texname Input file for TeX. Default is the + job name with extension '.tex' + --texopt