diff options
Diffstat (limited to 'Master/bin')
-rwxr-xr-x | Master/bin/hppa-hpux/afm2pl | bin | 140517 -> 140517 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/afm2tfm | bin | 144620 -> 144620 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/aleph | bin | 633165 -> 633165 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/bbox | bin | 24649 -> 24649 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/bg5conv | bin | 20544 -> 20544 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/bibtex | bin | 206315 -> 206315 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/bibtex8 | bin | 230788 -> 230788 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/cef5conv | bin | 20545 -> 20545 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/cefconv | bin | 20545 -> 20545 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/cefsconv | bin | 20545 -> 20545 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/cfftot1 | bin | 538742 -> 538742 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/ctangle | bin | 140436 -> 140436 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/ctie | bin | 111650 -> 111650 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/ctxtools | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/cweave | bin | 177348 -> 177348 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/detex | bin | 123969 -> 123969 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/devnag | bin | 45169 -> 45169 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/disdvi | bin | 28755 -> 28755 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dmp | bin | 140521 -> 140521 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dt2dv | bin | 49319 -> 49319 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dv2dt | bin | 28763 -> 28763 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvi2tty | bin | 41097 -> 41097 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvibook | bin | 53553 -> 53553 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dviconcat | bin | 49414 -> 49414 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvicopy | bin | 169378 -> 169378 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvidvi | bin | 32898 -> 32898 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvilj | bin | 148660 -> 148660 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvilj2p | bin | 148660 -> 148660 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvilj4 | bin | 152760 -> 152760 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvilj4l | bin | 152760 -> 152760 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvipdfm | bin | 494392 -> 494391 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvipdfmx | bin | 923494 -> 923524 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvipng | bin | 1119579 -> 1131958 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvipos | bin | 157018 -> 157018 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvips | bin | 321837 -> 321837 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dviselect | bin | 53523 -> 53523 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvitodvi | bin | 57661 -> 57661 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvitomp | bin | 157060 -> 157060 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/dvitype | bin | 148818 -> 148818 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/epsffit | bin | 24648 -> 24648 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/exatools | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/extconv | bin | 20544 -> 20544 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/gftodvi | bin | 152894 -> 152894 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/gftopk | bin | 136499 -> 136499 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/gftype | bin | 132344 -> 132344 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/gsftopk | bin | 124016 -> 124016 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/hbf2gf | bin | 132228 -> 132228 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/info | bin | 210553 -> 210553 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/infokey | bin | 45368 -> 45368 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/install-info | bin | 57676 -> 57676 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/kpseaccess | bin | 24673 -> 24673 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/kpsereadlink | bin | 24681 -> 24681 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/kpsestat | bin | 24681 -> 24681 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/kpsewhich | bin | 119936 -> 119936 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/lacheck | bin | 69752 -> 69752 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/luatools | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/mag | bin | 41165 -> 41165 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/makeindex | bin | 185552 -> 185552 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/makeinfo | bin | 296723 -> 296723 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/makempx | bin | 111638 -> 111638 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/makempy | 3 | ||||
l--------- | Master/bin/hppa-hpux/metafun | 1 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/mf | bin | 382967 -> 382967 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/mf-nowin | bin | 378769 -> 378768 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/mft | bin | 152815 -> 152815 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/mktexlsr | 65 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/mmafm | bin | 341444 -> 341444 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/mmpfb | bin | 464729 -> 464729 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/mpost | bin | 477605 -> 477605 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/mpstools | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/mpto | bin | 24655 -> 24655 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/mptopdf | 3 | ||||
l--------- | Master/bin/hppa-hpux/mtxrun | 1 | ||||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/mtxtools | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/musixflx | bin | 32837 -> 32837 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/newer | bin | 24686 -> 24686 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/odvicopy | bin | 177573 -> 177573 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/odvitype | bin | 152914 -> 152914 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/omega | bin | 641476 -> 641475 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/omfonts | bin | 219123 -> 219123 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/otangle | bin | 86693 -> 86693 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/otfinfo | bin | 686491 -> 686491 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/otftotfm | bin | 1180211 -> 1180211 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/otp2ocp | bin | 128180 -> 128180 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/outocp | bin | 107557 -> 107557 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/patgen | bin | 74394 -> 74394 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/pdfclose | bin | 24671 -> 24671 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/pdfopen | bin | 24671 -> 24671 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/pdftex | bin | 1719713 -> 1719713 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/pdftools | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/pdftosrc | bin | 604821 -> 604821 bytes | |||
l--------- | Master/bin/hppa-hpux/pdftrimwhite | 1 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/pfb2pfa | bin | 24713 -> 24713 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/pk2bm | bin | 28807 -> 28807 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/pktogf | bin | 132364 -> 132364 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/pktype | bin | 124149 -> 124149 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/pltotf | bin | 94932 -> 94932 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/pooltype | bin | 53849 -> 53849 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/ps2pk | bin | 243613 -> 243613 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/psbook | bin | 28774 -> 28774 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/psnup | bin | 36987 -> 36987 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/psresize | bin | 36986 -> 36986 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/psselect | bin | 28780 -> 28780 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/pstopdf | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/pstops | bin | 36987 -> 36987 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/rlxtools | 3 | ||||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/runtools | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/sjisconv | bin | 20544 -> 20544 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/synctex | bin | 127430 -> 131533 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1ascii | bin | 41143 -> 41143 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1asm | bin | 49356 -> 49356 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1binary | bin | 41143 -> 41143 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1disasm | bin | 49354 -> 49354 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1dotlessj | bin | 440098 -> 440098 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1lint | bin | 366132 -> 366132 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1mac | bin | 53460 -> 53460 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1reencode | bin | 411191 -> 411191 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1testpage | bin | 399031 -> 399031 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t1unmac | bin | 49348 -> 49348 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/t4ht | bin | 128050 -> 128050 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/tangle | bin | 156940 -> 156940 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/tcdialog | bin | 148022 -> 148022 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/tex | bin | 411549 -> 411549 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/tex4ht | bin | 201870 -> 201870 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/texexec | 3 | ||||
l--------- | Master/bin/hppa-hpux/texfind | 1 | ||||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/texfont | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/texindex | bin | 37100 -> 37100 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/texlinks | 2 | ||||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/texmfstart | 2502 | ||||
l--------- | Master/bin/hppa-hpux/texshow | 1 | ||||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/textools | 3 | ||||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/texutil | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/tftopl | bin | 140524 -> 140524 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/tie | bin | 28813 -> 28813 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/tmftools | 3 | ||||
-rwxr-xr-x | Master/bin/hppa-hpux/ttf2afm | bin | 132238 -> 132238 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/ttf2pk | bin | 292765 -> 292765 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/ttf2tfm | bin | 317377 -> 317377 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/ttftotype42 | bin | 444252 -> 444252 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/vftovp | bin | 156966 -> 156966 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/vlna | bin | 0 -> 28799 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/vptovf | bin | 111330 -> 111330 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/weave | bin | 177478 -> 177478 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/xdvi-xaw.bin | bin | 1008482 -> 1008482 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/xdvipdfmx | bin | 1565361 -> 1581856 bytes | |||
-rwxr-xr-x | Master/bin/hppa-hpux/xetex | bin | 9276184 -> 9292642 bytes | |||
l---------[-rwxr-xr-x] | Master/bin/hppa-hpux/xmltools | 3 |
148 files changed, 70 insertions, 2555 deletions
diff --git a/Master/bin/hppa-hpux/afm2pl b/Master/bin/hppa-hpux/afm2pl Binary files differindex ba9518e2536..87f47e326c7 100755 --- a/Master/bin/hppa-hpux/afm2pl +++ b/Master/bin/hppa-hpux/afm2pl diff --git a/Master/bin/hppa-hpux/afm2tfm b/Master/bin/hppa-hpux/afm2tfm Binary files differindex 1c5e6d9ab93..71a66f1cb05 100755 --- a/Master/bin/hppa-hpux/afm2tfm +++ b/Master/bin/hppa-hpux/afm2tfm diff --git a/Master/bin/hppa-hpux/aleph b/Master/bin/hppa-hpux/aleph Binary files differindex 794d8656604..af36c507e36 100755 --- a/Master/bin/hppa-hpux/aleph +++ b/Master/bin/hppa-hpux/aleph diff --git a/Master/bin/hppa-hpux/bbox b/Master/bin/hppa-hpux/bbox Binary files differindex d2cab133eb2..0d167a86e89 100755 --- a/Master/bin/hppa-hpux/bbox +++ b/Master/bin/hppa-hpux/bbox diff --git a/Master/bin/hppa-hpux/bg5conv b/Master/bin/hppa-hpux/bg5conv Binary files differindex 62cbdfe593e..b865f50bf8d 100755 --- a/Master/bin/hppa-hpux/bg5conv +++ b/Master/bin/hppa-hpux/bg5conv diff --git a/Master/bin/hppa-hpux/bibtex b/Master/bin/hppa-hpux/bibtex Binary files differindex 292ded6eaff..1cbebace5b9 100755 --- a/Master/bin/hppa-hpux/bibtex +++ b/Master/bin/hppa-hpux/bibtex diff --git a/Master/bin/hppa-hpux/bibtex8 b/Master/bin/hppa-hpux/bibtex8 Binary files differindex fd1b8139978..2ca62f79ece 100755 --- a/Master/bin/hppa-hpux/bibtex8 +++ b/Master/bin/hppa-hpux/bibtex8 diff --git a/Master/bin/hppa-hpux/cef5conv b/Master/bin/hppa-hpux/cef5conv Binary files differindex d24fadb9267..c6578d582ca 100755 --- a/Master/bin/hppa-hpux/cef5conv +++ b/Master/bin/hppa-hpux/cef5conv diff --git a/Master/bin/hppa-hpux/cefconv b/Master/bin/hppa-hpux/cefconv Binary files differindex 9c571bcbd6d..82ffdd84971 100755 --- a/Master/bin/hppa-hpux/cefconv +++ b/Master/bin/hppa-hpux/cefconv diff --git a/Master/bin/hppa-hpux/cefsconv b/Master/bin/hppa-hpux/cefsconv Binary files differindex 5ed91ffab6c..d88b494948c 100755 --- a/Master/bin/hppa-hpux/cefsconv +++ b/Master/bin/hppa-hpux/cefsconv diff --git a/Master/bin/hppa-hpux/cfftot1 b/Master/bin/hppa-hpux/cfftot1 Binary files differindex 87e5965ef25..43504cb8a66 100755 --- a/Master/bin/hppa-hpux/cfftot1 +++ b/Master/bin/hppa-hpux/cfftot1 diff --git a/Master/bin/hppa-hpux/ctangle b/Master/bin/hppa-hpux/ctangle Binary files differindex 62392347a5a..de1e5843468 100755 --- a/Master/bin/hppa-hpux/ctangle +++ b/Master/bin/hppa-hpux/ctangle diff --git a/Master/bin/hppa-hpux/ctie b/Master/bin/hppa-hpux/ctie Binary files differindex bea102b7ad5..65afe6c214e 100755 --- a/Master/bin/hppa-hpux/ctie +++ b/Master/bin/hppa-hpux/ctie diff --git a/Master/bin/hppa-hpux/ctxtools b/Master/bin/hppa-hpux/ctxtools index 84e47bbee3c..66237b28340 100755..120000 --- a/Master/bin/hppa-hpux/ctxtools +++ b/Master/bin/hppa-hpux/ctxtools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart ctxtools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/ctxtools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/cweave b/Master/bin/hppa-hpux/cweave Binary files differindex 24daff2da9a..be009a21b69 100755 --- a/Master/bin/hppa-hpux/cweave +++ b/Master/bin/hppa-hpux/cweave diff --git a/Master/bin/hppa-hpux/detex b/Master/bin/hppa-hpux/detex Binary files differindex d9d302c3abf..a1e94637096 100755 --- a/Master/bin/hppa-hpux/detex +++ b/Master/bin/hppa-hpux/detex diff --git a/Master/bin/hppa-hpux/devnag b/Master/bin/hppa-hpux/devnag Binary files differindex 5dc03b723d6..01d1eaf0595 100755 --- a/Master/bin/hppa-hpux/devnag +++ b/Master/bin/hppa-hpux/devnag diff --git a/Master/bin/hppa-hpux/disdvi b/Master/bin/hppa-hpux/disdvi Binary files differindex 7a981059d1b..e071b07f42c 100755 --- a/Master/bin/hppa-hpux/disdvi +++ b/Master/bin/hppa-hpux/disdvi diff --git a/Master/bin/hppa-hpux/dmp b/Master/bin/hppa-hpux/dmp Binary files differindex 0d83cdec0a6..28a05538726 100755 --- a/Master/bin/hppa-hpux/dmp +++ b/Master/bin/hppa-hpux/dmp diff --git a/Master/bin/hppa-hpux/dt2dv b/Master/bin/hppa-hpux/dt2dv Binary files differindex 1e0f95b9b83..db2c973cf93 100755 --- a/Master/bin/hppa-hpux/dt2dv +++ b/Master/bin/hppa-hpux/dt2dv diff --git a/Master/bin/hppa-hpux/dv2dt b/Master/bin/hppa-hpux/dv2dt Binary files differindex 14cf570cab7..d549854e6ae 100755 --- a/Master/bin/hppa-hpux/dv2dt +++ b/Master/bin/hppa-hpux/dv2dt diff --git a/Master/bin/hppa-hpux/dvi2tty b/Master/bin/hppa-hpux/dvi2tty Binary files differindex 7cc76da12cb..5b7a58c4e14 100755 --- a/Master/bin/hppa-hpux/dvi2tty +++ b/Master/bin/hppa-hpux/dvi2tty diff --git a/Master/bin/hppa-hpux/dvibook b/Master/bin/hppa-hpux/dvibook Binary files differindex 141da01633b..a350cc70c0c 100755 --- a/Master/bin/hppa-hpux/dvibook +++ b/Master/bin/hppa-hpux/dvibook diff --git a/Master/bin/hppa-hpux/dviconcat b/Master/bin/hppa-hpux/dviconcat Binary files differindex d06c4a7b0ec..8b88b7f4f8d 100755 --- a/Master/bin/hppa-hpux/dviconcat +++ b/Master/bin/hppa-hpux/dviconcat diff --git a/Master/bin/hppa-hpux/dvicopy b/Master/bin/hppa-hpux/dvicopy Binary files differindex 172ba1e80a1..7a46d92db4c 100755 --- a/Master/bin/hppa-hpux/dvicopy +++ b/Master/bin/hppa-hpux/dvicopy diff --git a/Master/bin/hppa-hpux/dvidvi b/Master/bin/hppa-hpux/dvidvi Binary files differindex 714504e851a..bd1b82e6817 100755 --- a/Master/bin/hppa-hpux/dvidvi +++ b/Master/bin/hppa-hpux/dvidvi diff --git a/Master/bin/hppa-hpux/dvilj b/Master/bin/hppa-hpux/dvilj Binary files differindex 748c529559c..62e3803ecde 100755 --- a/Master/bin/hppa-hpux/dvilj +++ b/Master/bin/hppa-hpux/dvilj diff --git a/Master/bin/hppa-hpux/dvilj2p b/Master/bin/hppa-hpux/dvilj2p Binary files differindex bfacee77fcd..f432386cc36 100755 --- a/Master/bin/hppa-hpux/dvilj2p +++ b/Master/bin/hppa-hpux/dvilj2p diff --git a/Master/bin/hppa-hpux/dvilj4 b/Master/bin/hppa-hpux/dvilj4 Binary files differindex 29164a7d97f..099df4a1cd7 100755 --- a/Master/bin/hppa-hpux/dvilj4 +++ b/Master/bin/hppa-hpux/dvilj4 diff --git a/Master/bin/hppa-hpux/dvilj4l b/Master/bin/hppa-hpux/dvilj4l Binary files differindex 2299a00604a..85c84e5c260 100755 --- a/Master/bin/hppa-hpux/dvilj4l +++ b/Master/bin/hppa-hpux/dvilj4l diff --git a/Master/bin/hppa-hpux/dvipdfm b/Master/bin/hppa-hpux/dvipdfm Binary files differindex f65738f89a7..3f8429ab129 100755 --- a/Master/bin/hppa-hpux/dvipdfm +++ b/Master/bin/hppa-hpux/dvipdfm diff --git a/Master/bin/hppa-hpux/dvipdfmx b/Master/bin/hppa-hpux/dvipdfmx Binary files differindex 32642a448de..f9fd02b61d0 100755 --- a/Master/bin/hppa-hpux/dvipdfmx +++ b/Master/bin/hppa-hpux/dvipdfmx diff --git a/Master/bin/hppa-hpux/dvipng b/Master/bin/hppa-hpux/dvipng Binary files differindex 2f621093e5d..5e114b693d8 100755 --- a/Master/bin/hppa-hpux/dvipng +++ b/Master/bin/hppa-hpux/dvipng diff --git a/Master/bin/hppa-hpux/dvipos b/Master/bin/hppa-hpux/dvipos Binary files differindex c777f7856be..2face743b3f 100755 --- a/Master/bin/hppa-hpux/dvipos +++ b/Master/bin/hppa-hpux/dvipos diff --git a/Master/bin/hppa-hpux/dvips b/Master/bin/hppa-hpux/dvips Binary files differindex 3e76d396dd4..f613a16752b 100755 --- a/Master/bin/hppa-hpux/dvips +++ b/Master/bin/hppa-hpux/dvips diff --git a/Master/bin/hppa-hpux/dviselect b/Master/bin/hppa-hpux/dviselect Binary files differindex ee3e4fe3084..ca60343950e 100755 --- a/Master/bin/hppa-hpux/dviselect +++ b/Master/bin/hppa-hpux/dviselect diff --git a/Master/bin/hppa-hpux/dvitodvi b/Master/bin/hppa-hpux/dvitodvi Binary files differindex e39d411ad91..3f15fa28ac7 100755 --- a/Master/bin/hppa-hpux/dvitodvi +++ b/Master/bin/hppa-hpux/dvitodvi diff --git a/Master/bin/hppa-hpux/dvitomp b/Master/bin/hppa-hpux/dvitomp Binary files differindex 7ee99a44073..2aea3b3bb96 100755 --- a/Master/bin/hppa-hpux/dvitomp +++ b/Master/bin/hppa-hpux/dvitomp diff --git a/Master/bin/hppa-hpux/dvitype b/Master/bin/hppa-hpux/dvitype Binary files differindex 2b53eea1b9c..6ac2dde80d1 100755 --- a/Master/bin/hppa-hpux/dvitype +++ b/Master/bin/hppa-hpux/dvitype diff --git a/Master/bin/hppa-hpux/epsffit b/Master/bin/hppa-hpux/epsffit Binary files differindex a41e0606bcc..987238675b5 100755 --- a/Master/bin/hppa-hpux/epsffit +++ b/Master/bin/hppa-hpux/epsffit diff --git a/Master/bin/hppa-hpux/exatools b/Master/bin/hppa-hpux/exatools index 50ff0f07e46..304ccdc7e15 100755..120000 --- a/Master/bin/hppa-hpux/exatools +++ b/Master/bin/hppa-hpux/exatools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart exatools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/exatools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/extconv b/Master/bin/hppa-hpux/extconv Binary files differindex 2cd0c8d05b5..c82fbd1a58d 100755 --- a/Master/bin/hppa-hpux/extconv +++ b/Master/bin/hppa-hpux/extconv diff --git a/Master/bin/hppa-hpux/gftodvi b/Master/bin/hppa-hpux/gftodvi Binary files differindex 0c506280848..11a7fd23e2c 100755 --- a/Master/bin/hppa-hpux/gftodvi +++ b/Master/bin/hppa-hpux/gftodvi diff --git a/Master/bin/hppa-hpux/gftopk b/Master/bin/hppa-hpux/gftopk Binary files differindex 82c1aebb290..9787268fd24 100755 --- a/Master/bin/hppa-hpux/gftopk +++ b/Master/bin/hppa-hpux/gftopk diff --git a/Master/bin/hppa-hpux/gftype b/Master/bin/hppa-hpux/gftype Binary files differindex ee91d9231f5..10bbf3ad8c7 100755 --- a/Master/bin/hppa-hpux/gftype +++ b/Master/bin/hppa-hpux/gftype diff --git a/Master/bin/hppa-hpux/gsftopk b/Master/bin/hppa-hpux/gsftopk Binary files differindex bc884f8a4d0..1acbaad88da 100755 --- a/Master/bin/hppa-hpux/gsftopk +++ b/Master/bin/hppa-hpux/gsftopk diff --git a/Master/bin/hppa-hpux/hbf2gf b/Master/bin/hppa-hpux/hbf2gf Binary files differindex aeb5eee7296..3abcda5affc 100755 --- a/Master/bin/hppa-hpux/hbf2gf +++ b/Master/bin/hppa-hpux/hbf2gf diff --git a/Master/bin/hppa-hpux/info b/Master/bin/hppa-hpux/info Binary files differindex 71153860d90..06c1c9a62c2 100755 --- a/Master/bin/hppa-hpux/info +++ b/Master/bin/hppa-hpux/info diff --git a/Master/bin/hppa-hpux/infokey b/Master/bin/hppa-hpux/infokey Binary files differindex 45de58e9eb7..3200a2c83f4 100755 --- a/Master/bin/hppa-hpux/infokey +++ b/Master/bin/hppa-hpux/infokey diff --git a/Master/bin/hppa-hpux/install-info b/Master/bin/hppa-hpux/install-info Binary files differindex 7d349d183d6..b20e756a57b 100755 --- a/Master/bin/hppa-hpux/install-info +++ b/Master/bin/hppa-hpux/install-info diff --git a/Master/bin/hppa-hpux/kpseaccess b/Master/bin/hppa-hpux/kpseaccess Binary files differindex 80b46e67b35..d9b1ff85ca8 100755 --- a/Master/bin/hppa-hpux/kpseaccess +++ b/Master/bin/hppa-hpux/kpseaccess diff --git a/Master/bin/hppa-hpux/kpsereadlink b/Master/bin/hppa-hpux/kpsereadlink Binary files differindex 45a3980762f..343a441242d 100755 --- a/Master/bin/hppa-hpux/kpsereadlink +++ b/Master/bin/hppa-hpux/kpsereadlink diff --git a/Master/bin/hppa-hpux/kpsestat b/Master/bin/hppa-hpux/kpsestat Binary files differindex 517294d8e2a..9d2c8046f25 100755 --- a/Master/bin/hppa-hpux/kpsestat +++ b/Master/bin/hppa-hpux/kpsestat diff --git a/Master/bin/hppa-hpux/kpsewhich b/Master/bin/hppa-hpux/kpsewhich Binary files differindex 3636c581b24..d285be97d59 100755 --- a/Master/bin/hppa-hpux/kpsewhich +++ b/Master/bin/hppa-hpux/kpsewhich diff --git a/Master/bin/hppa-hpux/lacheck b/Master/bin/hppa-hpux/lacheck Binary files differindex eb55893e0c1..294bc8d1e5d 100755 --- a/Master/bin/hppa-hpux/lacheck +++ b/Master/bin/hppa-hpux/lacheck diff --git a/Master/bin/hppa-hpux/luatools b/Master/bin/hppa-hpux/luatools index cb3ec1add4a..8fd68d0935a 100755..120000 --- a/Master/bin/hppa-hpux/luatools +++ b/Master/bin/hppa-hpux/luatools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart luatools.lua "$@" +../../texmf-dist/scripts/context/stubs/unix/luatools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/mag b/Master/bin/hppa-hpux/mag Binary files differindex fc2696708e7..08c477cbc5a 100755 --- a/Master/bin/hppa-hpux/mag +++ b/Master/bin/hppa-hpux/mag diff --git a/Master/bin/hppa-hpux/makeindex b/Master/bin/hppa-hpux/makeindex Binary files differindex dd76bea87df..c4d57266017 100755 --- a/Master/bin/hppa-hpux/makeindex +++ b/Master/bin/hppa-hpux/makeindex diff --git a/Master/bin/hppa-hpux/makeinfo b/Master/bin/hppa-hpux/makeinfo Binary files differindex 5247fbb61c9..5ecaacc27e9 100755 --- a/Master/bin/hppa-hpux/makeinfo +++ b/Master/bin/hppa-hpux/makeinfo diff --git a/Master/bin/hppa-hpux/makempx b/Master/bin/hppa-hpux/makempx Binary files differindex dd2bec9fba3..072901449fe 100755 --- a/Master/bin/hppa-hpux/makempx +++ b/Master/bin/hppa-hpux/makempx diff --git a/Master/bin/hppa-hpux/makempy b/Master/bin/hppa-hpux/makempy index 4bf7a1af230..a3df543b304 100755..120000 --- a/Master/bin/hppa-hpux/makempy +++ b/Master/bin/hppa-hpux/makempy @@ -1,2 +1 @@ -#!/bin/sh -texmfstart makempy.pl "$@" +../../texmf-dist/scripts/context/stubs/unix/makempy
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/metafun b/Master/bin/hppa-hpux/metafun new file mode 120000 index 00000000000..96672bbb523 --- /dev/null +++ b/Master/bin/hppa-hpux/metafun @@ -0,0 +1 @@ +mpost
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/mf b/Master/bin/hppa-hpux/mf Binary files differindex 4e248f87479..27f2bd2b679 100755 --- a/Master/bin/hppa-hpux/mf +++ b/Master/bin/hppa-hpux/mf diff --git a/Master/bin/hppa-hpux/mf-nowin b/Master/bin/hppa-hpux/mf-nowin Binary files differindex c8fe709ab5f..83f27ec735e 100755 --- a/Master/bin/hppa-hpux/mf-nowin +++ b/Master/bin/hppa-hpux/mf-nowin diff --git a/Master/bin/hppa-hpux/mft b/Master/bin/hppa-hpux/mft Binary files differindex 08b31b886db..ce17fcd0776 100755 --- a/Master/bin/hppa-hpux/mft +++ b/Master/bin/hppa-hpux/mft diff --git a/Master/bin/hppa-hpux/mktexlsr b/Master/bin/hppa-hpux/mktexlsr index bd9b56b1906..a52cd4856c8 100755 --- a/Master/bin/hppa-hpux/mktexlsr +++ b/Master/bin/hppa-hpux/mktexlsr @@ -5,26 +5,32 @@ # installation won't write this script over yours.) # # Suitable for calling from cron, as in: -# 0 * * * * cd /your/texmf/root && /usr/local/bin/mktexlsr -# unless the scripts live in a different directory than the 'kpseaccess', -# 'kpsestat', 'kpsereadlink', and 'kpsewhich' binaries. +# 0 * * * * cd /your/texmf/root && /usr/local/texlive/bin/mktexlsr # # Originally written as `texhash' by Thomas Esser # <te@dbs.uni-hannover.de>, Okt., 1994. # Public domain. -version='$Id: mktexlsr 8399 2008-05-28 22:19:34Z karl $' +version='$Id: mktexlsr 8741 2008-06-15 00:33:21Z karl $' progname=`echo $0 | sed 's%.*/%%'` usage="Usage: $progname [DIR]... -The only options are --help, --version, --verbose, --quiet, and --silent. +Rebuild ls-R filename databases. If one or more arguments DIRS are +given, these are used as the directories in which to build ls-R. Else +all directories in the search path for ls-R files (\$TEXMFDBS) are used. + +Options: + --dry-run do not actually update anything + --help display this help and exit + --quiet cancel --verbose + --silent same as --quiet + --verbose explain what is being done + --version output version information and exit + If standard input is a terminal, --verbose is on by default. ---quiet and --silent are synonyms, and cancel --verbose. -Rebuild all necessary ls-R filename databases completely. If one or -more arguments DIRS are given, these are used as texmf directories to -build ls-R for. Else all directories in the search path for ls-R files -(\$TEXMFDBS) are used." +Report bugs to tex-k@tug.org. +" # MS-DOS and MS-Windows define $COMSPEC or $ComSpec and use `;' to separate # directories in path lists whereas Unix uses `:'. Make an exception for @@ -53,6 +59,8 @@ case $dirname in esac if tty -s; then verbose=true; else verbose=false; fi +dry_run=false +trees= # A copy of some stuff from mktex.opt, so we can run in the presence of # terminally damaged ls-R files. @@ -66,9 +74,19 @@ while test $# -gt 0; do exit 0 elif test "x$1" = x--verbose || test "x$1" = x-verbose; then verbose=true + elif test "x$1" = x--dry-run || test "x$1" = x-n; then + dry_run=true elif test "x$1" = x--quiet || test "x$1" = x--silent \ || test "x$1" = x-quiet || test "x$1" = x-silent ; then verbose=false + elif test "x$1" = x--; then + : + elif echo "x$1" | grep '^x-' >/dev/null; then + echo "$progname: unknown option $1, try --help if you need it." >&2 + exit 1 + else + test -d "$1" || echo "$progname: $1 not a directory." >&2 + trees="$trees $1" # don't want to update update system dirs fi shift done @@ -79,16 +97,21 @@ ls_R_magic='% ls-R -- filename database for kpathsea; do not change this line.' # The old string, which should continue to work. old_ls_R_magic='% ls-R -- maintained by MakeTeXls-R; do not change this line.' -trap 'cd / ; test -z "$db_dir_tmp" || rm -rf "$db_dir_tmp"; exit' 0 1 2 3 7 13 15 +trap 'cd /; test -z "$db_dir_tmp" || rm -rf "$db_dir_tmp"; exit' 0 1 2 3 7 13 15 # Get list of directories from $TEXMFDBS; eliminate duplicates. -test $# = 0 && { - OIFS=$IFS - IFS=' +{ + if test -n "$trees"; then + set x $trees + else + OIFS=$IFS # want just a newline + IFS=' ' - set x `kpsewhich --show-path=ls-R | tr : ' -' | sort | uniq`; shift - IFS=$OIFS + set x `kpsewhich --show-path=ls-R | tr : ' +' | sort | uniq` + IFS=$OIFS + fi + shift } for TEXMFLS_R in "$@"; do @@ -98,8 +121,8 @@ for TEXMFLS_R in "$@"; do /* | [A-z]:/*) ;; *) TEXMFLS_R="`pwd`/$TEXMFLS_R" esac - # Allow for ls-R and ls-r to exist. But create ls-R if we're working - # from scratch. + # Allow for either ls-R and ls-r to exist. But create ls-R if we're + # working from scratch. if test -f "$TEXMFLS_R/ls-R"; then db_file="$TEXMFLS_R/ls-R" elif test -f "$TEXMFLS_R/ls-r"; then @@ -117,6 +140,8 @@ for TEXMFLS_R in "$@"; do esac db_dir=`echo "$db_file" | sed 's%/[^/][^/]*$%%'` # can't rely on dirname + # want to be silent if the directory doesn't exist, since the ls-R + # path ordinarily contains many nonexistent directories. test -d "$db_dir" || continue test -w "$db_dir" || { echo "$progname: $db_dir: directory not writable. Skipping..." >&2; continue; } @@ -141,6 +166,8 @@ for TEXMFLS_R in "$@"; do rm -f "$db_file_tmp" $verbose && echo "$progname: Updating $db_file... " >&2 + $dry_run && continue + echo "$ls_R_magic" >"$db_file_tmp" # The main task. We put ./: in the output, so top-level files can be diff --git a/Master/bin/hppa-hpux/mmafm b/Master/bin/hppa-hpux/mmafm Binary files differindex 3178fc4cd52..d71b7325c52 100755 --- a/Master/bin/hppa-hpux/mmafm +++ b/Master/bin/hppa-hpux/mmafm diff --git a/Master/bin/hppa-hpux/mmpfb b/Master/bin/hppa-hpux/mmpfb Binary files differindex ce792153ce4..1c38051d709 100755 --- a/Master/bin/hppa-hpux/mmpfb +++ b/Master/bin/hppa-hpux/mmpfb diff --git a/Master/bin/hppa-hpux/mpost b/Master/bin/hppa-hpux/mpost Binary files differindex c8d3e0d4520..b6c39e00cd8 100755 --- a/Master/bin/hppa-hpux/mpost +++ b/Master/bin/hppa-hpux/mpost diff --git a/Master/bin/hppa-hpux/mpstools b/Master/bin/hppa-hpux/mpstools index b4c8f634548..caf4ae949f7 100755..120000 --- a/Master/bin/hppa-hpux/mpstools +++ b/Master/bin/hppa-hpux/mpstools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart mpstools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/mpstools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/mpto b/Master/bin/hppa-hpux/mpto Binary files differindex 0f1b3982566..312d35487b9 100755 --- a/Master/bin/hppa-hpux/mpto +++ b/Master/bin/hppa-hpux/mpto diff --git a/Master/bin/hppa-hpux/mptopdf b/Master/bin/hppa-hpux/mptopdf index 980a3123d1a..83172e791cd 100755..120000 --- a/Master/bin/hppa-hpux/mptopdf +++ b/Master/bin/hppa-hpux/mptopdf @@ -1,2 +1 @@ -#!/bin/sh -texmfstart mptopdf.pl "$@" +../../texmf-dist/scripts/context/stubs/unix/mptopdf
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/mtxrun b/Master/bin/hppa-hpux/mtxrun new file mode 120000 index 00000000000..d368fd83ea1 --- /dev/null +++ b/Master/bin/hppa-hpux/mtxrun @@ -0,0 +1 @@ +../../texmf-dist/scripts/context/stubs/unix/mtxrun
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/mtxtools b/Master/bin/hppa-hpux/mtxtools index 2922e0b4674..d99a8081bb9 100755..120000 --- a/Master/bin/hppa-hpux/mtxtools +++ b/Master/bin/hppa-hpux/mtxtools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart mtxtools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/mtxtools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/musixflx b/Master/bin/hppa-hpux/musixflx Binary files differindex d3cd38c0e8b..5bb1d7ed08a 100755 --- a/Master/bin/hppa-hpux/musixflx +++ b/Master/bin/hppa-hpux/musixflx diff --git a/Master/bin/hppa-hpux/newer b/Master/bin/hppa-hpux/newer Binary files differindex 28eceeb3165..ddd116c2488 100755 --- a/Master/bin/hppa-hpux/newer +++ b/Master/bin/hppa-hpux/newer diff --git a/Master/bin/hppa-hpux/odvicopy b/Master/bin/hppa-hpux/odvicopy Binary files differindex 7fd722219cc..d692c226f98 100755 --- a/Master/bin/hppa-hpux/odvicopy +++ b/Master/bin/hppa-hpux/odvicopy diff --git a/Master/bin/hppa-hpux/odvitype b/Master/bin/hppa-hpux/odvitype Binary files differindex 75efe4f7097..436241792b1 100755 --- a/Master/bin/hppa-hpux/odvitype +++ b/Master/bin/hppa-hpux/odvitype diff --git a/Master/bin/hppa-hpux/omega b/Master/bin/hppa-hpux/omega Binary files differindex d174dd6c112..6c323e42f1c 100755 --- a/Master/bin/hppa-hpux/omega +++ b/Master/bin/hppa-hpux/omega diff --git a/Master/bin/hppa-hpux/omfonts b/Master/bin/hppa-hpux/omfonts Binary files differindex d82257ad459..26972974b41 100755 --- a/Master/bin/hppa-hpux/omfonts +++ b/Master/bin/hppa-hpux/omfonts diff --git a/Master/bin/hppa-hpux/otangle b/Master/bin/hppa-hpux/otangle Binary files differindex edecf496b25..ada6faf0c5a 100755 --- a/Master/bin/hppa-hpux/otangle +++ b/Master/bin/hppa-hpux/otangle diff --git a/Master/bin/hppa-hpux/otfinfo b/Master/bin/hppa-hpux/otfinfo Binary files differindex 36b3119dfb7..a306685404e 100755 --- a/Master/bin/hppa-hpux/otfinfo +++ b/Master/bin/hppa-hpux/otfinfo diff --git a/Master/bin/hppa-hpux/otftotfm b/Master/bin/hppa-hpux/otftotfm Binary files differindex a96b744481c..8f7d7c66f26 100755 --- a/Master/bin/hppa-hpux/otftotfm +++ b/Master/bin/hppa-hpux/otftotfm diff --git a/Master/bin/hppa-hpux/otp2ocp b/Master/bin/hppa-hpux/otp2ocp Binary files differindex d38c47bb752..b5923c32d50 100755 --- a/Master/bin/hppa-hpux/otp2ocp +++ b/Master/bin/hppa-hpux/otp2ocp diff --git a/Master/bin/hppa-hpux/outocp b/Master/bin/hppa-hpux/outocp Binary files differindex 4d70cf4bb4f..16ddb929cda 100755 --- a/Master/bin/hppa-hpux/outocp +++ b/Master/bin/hppa-hpux/outocp diff --git a/Master/bin/hppa-hpux/patgen b/Master/bin/hppa-hpux/patgen Binary files differindex ce1a1674ffe..7cffe063fcd 100755 --- a/Master/bin/hppa-hpux/patgen +++ b/Master/bin/hppa-hpux/patgen diff --git a/Master/bin/hppa-hpux/pdfclose b/Master/bin/hppa-hpux/pdfclose Binary files differindex 02514c07c98..ea3087cb3c4 100755 --- a/Master/bin/hppa-hpux/pdfclose +++ b/Master/bin/hppa-hpux/pdfclose diff --git a/Master/bin/hppa-hpux/pdfopen b/Master/bin/hppa-hpux/pdfopen Binary files differindex 609626e310a..e2e88c3dd5e 100755 --- a/Master/bin/hppa-hpux/pdfopen +++ b/Master/bin/hppa-hpux/pdfopen diff --git a/Master/bin/hppa-hpux/pdftex b/Master/bin/hppa-hpux/pdftex Binary files differindex c1189c48240..8d6f7dac4b7 100755 --- a/Master/bin/hppa-hpux/pdftex +++ b/Master/bin/hppa-hpux/pdftex diff --git a/Master/bin/hppa-hpux/pdftools b/Master/bin/hppa-hpux/pdftools index 92ee803a868..fa012780ccc 100755..120000 --- a/Master/bin/hppa-hpux/pdftools +++ b/Master/bin/hppa-hpux/pdftools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart pdftools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/pdftools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/pdftosrc b/Master/bin/hppa-hpux/pdftosrc Binary files differindex 221993bf337..07f3bb48a03 100755 --- a/Master/bin/hppa-hpux/pdftosrc +++ b/Master/bin/hppa-hpux/pdftosrc diff --git a/Master/bin/hppa-hpux/pdftrimwhite b/Master/bin/hppa-hpux/pdftrimwhite new file mode 120000 index 00000000000..46526e8ffcc --- /dev/null +++ b/Master/bin/hppa-hpux/pdftrimwhite @@ -0,0 +1 @@ +../../texmf-dist/scripts/context/stubs/unix/pdftrimwhite
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/pfb2pfa b/Master/bin/hppa-hpux/pfb2pfa Binary files differindex 54e0785e114..8680677e33b 100755 --- a/Master/bin/hppa-hpux/pfb2pfa +++ b/Master/bin/hppa-hpux/pfb2pfa diff --git a/Master/bin/hppa-hpux/pk2bm b/Master/bin/hppa-hpux/pk2bm Binary files differindex c7822059b3f..691daa7bb08 100755 --- a/Master/bin/hppa-hpux/pk2bm +++ b/Master/bin/hppa-hpux/pk2bm diff --git a/Master/bin/hppa-hpux/pktogf b/Master/bin/hppa-hpux/pktogf Binary files differindex 813105141f1..0ed81ba6be8 100755 --- a/Master/bin/hppa-hpux/pktogf +++ b/Master/bin/hppa-hpux/pktogf diff --git a/Master/bin/hppa-hpux/pktype b/Master/bin/hppa-hpux/pktype Binary files differindex 59bcc70192c..6054088b0c4 100755 --- a/Master/bin/hppa-hpux/pktype +++ b/Master/bin/hppa-hpux/pktype diff --git a/Master/bin/hppa-hpux/pltotf b/Master/bin/hppa-hpux/pltotf Binary files differindex 0a4a0ad7398..98bf3b51a45 100755 --- a/Master/bin/hppa-hpux/pltotf +++ b/Master/bin/hppa-hpux/pltotf diff --git a/Master/bin/hppa-hpux/pooltype b/Master/bin/hppa-hpux/pooltype Binary files differindex c879f7a724b..9b1c08bdd14 100755 --- a/Master/bin/hppa-hpux/pooltype +++ b/Master/bin/hppa-hpux/pooltype diff --git a/Master/bin/hppa-hpux/ps2pk b/Master/bin/hppa-hpux/ps2pk Binary files differindex c14df105797..9f9c84ce9c7 100755 --- a/Master/bin/hppa-hpux/ps2pk +++ b/Master/bin/hppa-hpux/ps2pk diff --git a/Master/bin/hppa-hpux/psbook b/Master/bin/hppa-hpux/psbook Binary files differindex 3194703ee95..1106f720cc8 100755 --- a/Master/bin/hppa-hpux/psbook +++ b/Master/bin/hppa-hpux/psbook diff --git a/Master/bin/hppa-hpux/psnup b/Master/bin/hppa-hpux/psnup Binary files differindex a1ab0afd8e1..4b258e40028 100755 --- a/Master/bin/hppa-hpux/psnup +++ b/Master/bin/hppa-hpux/psnup diff --git a/Master/bin/hppa-hpux/psresize b/Master/bin/hppa-hpux/psresize Binary files differindex 3f9b42eca66..7e6187ef499 100755 --- a/Master/bin/hppa-hpux/psresize +++ b/Master/bin/hppa-hpux/psresize diff --git a/Master/bin/hppa-hpux/psselect b/Master/bin/hppa-hpux/psselect Binary files differindex b204574e93e..d70be9217da 100755 --- a/Master/bin/hppa-hpux/psselect +++ b/Master/bin/hppa-hpux/psselect diff --git a/Master/bin/hppa-hpux/pstopdf b/Master/bin/hppa-hpux/pstopdf index 5b38ed426cb..44478ee1dd4 100755..120000 --- a/Master/bin/hppa-hpux/pstopdf +++ b/Master/bin/hppa-hpux/pstopdf @@ -1,2 +1 @@ -#!/bin/sh -texmfstart pstopdf.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/pstopdf
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/pstops b/Master/bin/hppa-hpux/pstops Binary files differindex dca320fe2af..c53c92b3735 100755 --- a/Master/bin/hppa-hpux/pstops +++ b/Master/bin/hppa-hpux/pstops diff --git a/Master/bin/hppa-hpux/rlxtools b/Master/bin/hppa-hpux/rlxtools index 41cea40fc09..a5078af4f10 100755..120000 --- a/Master/bin/hppa-hpux/rlxtools +++ b/Master/bin/hppa-hpux/rlxtools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart rlxtools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/rlxtools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/runtools b/Master/bin/hppa-hpux/runtools index ff9a333791b..127f29a36df 100755..120000 --- a/Master/bin/hppa-hpux/runtools +++ b/Master/bin/hppa-hpux/runtools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart runtools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/runtools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/sjisconv b/Master/bin/hppa-hpux/sjisconv Binary files differindex 8a5aa66c14b..5047a0ceffe 100755 --- a/Master/bin/hppa-hpux/sjisconv +++ b/Master/bin/hppa-hpux/sjisconv diff --git a/Master/bin/hppa-hpux/synctex b/Master/bin/hppa-hpux/synctex Binary files differindex 39610f9de6b..afe0bd89bbf 100755 --- a/Master/bin/hppa-hpux/synctex +++ b/Master/bin/hppa-hpux/synctex diff --git a/Master/bin/hppa-hpux/t1ascii b/Master/bin/hppa-hpux/t1ascii Binary files differindex f1612ac009a..53b1be16c92 100755 --- a/Master/bin/hppa-hpux/t1ascii +++ b/Master/bin/hppa-hpux/t1ascii diff --git a/Master/bin/hppa-hpux/t1asm b/Master/bin/hppa-hpux/t1asm Binary files differindex 8cb89593264..8940a610d23 100755 --- a/Master/bin/hppa-hpux/t1asm +++ b/Master/bin/hppa-hpux/t1asm diff --git a/Master/bin/hppa-hpux/t1binary b/Master/bin/hppa-hpux/t1binary Binary files differindex 0a9d081d50d..69adaba56e6 100755 --- a/Master/bin/hppa-hpux/t1binary +++ b/Master/bin/hppa-hpux/t1binary diff --git a/Master/bin/hppa-hpux/t1disasm b/Master/bin/hppa-hpux/t1disasm Binary files differindex 2e160b56a60..6ee8d4092e7 100755 --- a/Master/bin/hppa-hpux/t1disasm +++ b/Master/bin/hppa-hpux/t1disasm diff --git a/Master/bin/hppa-hpux/t1dotlessj b/Master/bin/hppa-hpux/t1dotlessj Binary files differindex 94f20defe57..9d4f9e37604 100755 --- a/Master/bin/hppa-hpux/t1dotlessj +++ b/Master/bin/hppa-hpux/t1dotlessj diff --git a/Master/bin/hppa-hpux/t1lint b/Master/bin/hppa-hpux/t1lint Binary files differindex 3725c976a3d..212eb9fc19f 100755 --- a/Master/bin/hppa-hpux/t1lint +++ b/Master/bin/hppa-hpux/t1lint diff --git a/Master/bin/hppa-hpux/t1mac b/Master/bin/hppa-hpux/t1mac Binary files differindex 5ce22a7d7e6..e2929408b37 100755 --- a/Master/bin/hppa-hpux/t1mac +++ b/Master/bin/hppa-hpux/t1mac diff --git a/Master/bin/hppa-hpux/t1reencode b/Master/bin/hppa-hpux/t1reencode Binary files differindex 94b2e9bf61f..055493ef1e9 100755 --- a/Master/bin/hppa-hpux/t1reencode +++ b/Master/bin/hppa-hpux/t1reencode diff --git a/Master/bin/hppa-hpux/t1testpage b/Master/bin/hppa-hpux/t1testpage Binary files differindex 2575eab58ee..4df74fd7a8a 100755 --- a/Master/bin/hppa-hpux/t1testpage +++ b/Master/bin/hppa-hpux/t1testpage diff --git a/Master/bin/hppa-hpux/t1unmac b/Master/bin/hppa-hpux/t1unmac Binary files differindex 98849108082..1e82fe39f6c 100755 --- a/Master/bin/hppa-hpux/t1unmac +++ b/Master/bin/hppa-hpux/t1unmac diff --git a/Master/bin/hppa-hpux/t4ht b/Master/bin/hppa-hpux/t4ht Binary files differindex 5b1a24cbed2..7022433bfa5 100755 --- a/Master/bin/hppa-hpux/t4ht +++ b/Master/bin/hppa-hpux/t4ht diff --git a/Master/bin/hppa-hpux/tangle b/Master/bin/hppa-hpux/tangle Binary files differindex 26525eca1df..f840f8d9cbe 100755 --- a/Master/bin/hppa-hpux/tangle +++ b/Master/bin/hppa-hpux/tangle diff --git a/Master/bin/hppa-hpux/tcdialog b/Master/bin/hppa-hpux/tcdialog Binary files differindex 777ae22090b..42e0120cf01 100755 --- a/Master/bin/hppa-hpux/tcdialog +++ b/Master/bin/hppa-hpux/tcdialog diff --git a/Master/bin/hppa-hpux/tex b/Master/bin/hppa-hpux/tex Binary files differindex 62125842f49..4c31081b884 100755 --- a/Master/bin/hppa-hpux/tex +++ b/Master/bin/hppa-hpux/tex diff --git a/Master/bin/hppa-hpux/tex4ht b/Master/bin/hppa-hpux/tex4ht Binary files differindex 22f88b25429..4e9d582b852 100755 --- a/Master/bin/hppa-hpux/tex4ht +++ b/Master/bin/hppa-hpux/tex4ht diff --git a/Master/bin/hppa-hpux/texexec b/Master/bin/hppa-hpux/texexec index 2158172906a..36d22caefe7 100755..120000 --- a/Master/bin/hppa-hpux/texexec +++ b/Master/bin/hppa-hpux/texexec @@ -1,2 +1 @@ -#!/bin/sh -texmfstart texexec.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/texexec
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/texfind b/Master/bin/hppa-hpux/texfind new file mode 120000 index 00000000000..e450f1060a3 --- /dev/null +++ b/Master/bin/hppa-hpux/texfind @@ -0,0 +1 @@ +../../texmf-dist/scripts/context/stubs/unix/texfind
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/texfont b/Master/bin/hppa-hpux/texfont index a91f786e3f8..a3756e037ce 100755..120000 --- a/Master/bin/hppa-hpux/texfont +++ b/Master/bin/hppa-hpux/texfont @@ -1,2 +1 @@ -#!/bin/sh -texmfstart texfont.pl "$@" +../../texmf-dist/scripts/context/stubs/unix/texfont
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/texindex b/Master/bin/hppa-hpux/texindex Binary files differindex 9371e92be9d..904756e97ed 100755 --- a/Master/bin/hppa-hpux/texindex +++ b/Master/bin/hppa-hpux/texindex diff --git a/Master/bin/hppa-hpux/texlinks b/Master/bin/hppa-hpux/texlinks index 48657905634..d8e51550924 100755 --- a/Master/bin/hppa-hpux/texlinks +++ b/Master/bin/hppa-hpux/texlinks @@ -149,7 +149,7 @@ install_link() esac case $src in - */cont-??|*/metafun|*/mptopdf) + */cont-??|*/mptopdf) # context includes wrapper scripts that create/run these. verbose_echo "skipped ConTeXtish symlink $src -> $dest (special case)" ;; diff --git a/Master/bin/hppa-hpux/texmfstart b/Master/bin/hppa-hpux/texmfstart index e43929213f5..db6dee0a29c 100755..120000 --- a/Master/bin/hppa-hpux/texmfstart +++ b/Master/bin/hppa-hpux/texmfstart @@ -1,2501 +1 @@ -#!/usr/bin/env ruby - -# program : texmfstart -# copyright : PRAGMA Advanced Document Engineering -# version : 1.9.0 - 2003/2006 -# author : Hans Hagen -# -# project : ConTeXt / eXaMpLe -# info : j.hagen@xs4all.nl -# www : www.pragma-pod.com / www.pragma-ade.com - -# no special requirements, i.e. no exa modules/classes used - -# texmfstart [switches] filename [optional arguments] -# -# ruby2exe texmfstart --help -> avoids stub test -# -# Of couse I can make this into a nice class, which i'll undoubtely will -# do when I feel the need. In that case it will be part of a bigger game. - -# turning this into a service would be nice, so some day ... - -# --locate => provides location -# --exec => exec instead of system -# --iftouched=a,b => only if timestamp a<>b -# --ifchanged=a,b => only if checksum changed -# -# file: path: bin: - -# texmfstart --exec bin:scite *.tex - -# we don't depend on other libs - -$: << File.expand_path(File.dirname($0)) ; $: << File.join($:.last,'lib') ; $:.uniq! - -require "rbconfig" -require "md5" - -# funny, selfmergs was suddenly broken to case problems - -# kpse_merge_done: require 'base/kpseremote' -# kpse_merge_done: require 'base/kpsedirect' -# kpse_merge_done: require 'base/kpsefast' -# kpse_merge_done: require 'base/merge' - -# kpse_merge_start - -# kpse_merge_file: 't:/ruby/base/kpsefast.rb' - -# module : base/kpsefast -# copyright : PRAGMA Advanced Document Engineering -# version : 2005 -# author : Hans Hagen -# -# project : ConTeXt / eXaMpLe -# concept : Hans Hagen -# info : j.hagen@xs4all.nl - -# todo: multiple cnf files -# - -class String - - def split_path - if self =~ /\;/o || self =~ /^[a-z]\:/io then - self.split(";") - else - self.split(":") - end - end - -end - -class Array - - def join_path - self.join(File::PATH_SEPARATOR) - end - -end - -class File - - def File.locate_file(path,name) - begin - files = Dir.entries(path) - if files.include?(name) then - fullname = File.join(path,name) - return fullname if FileTest.file?(fullname) - end - files.each do |p| - fullname = File.join(path,p) - if p != '.' and p != '..' and FileTest.directory?(fullname) and result = locate_file(fullname,name) then - return result - end - end - rescue - # bad path - end - return nil - end - - def File.glob_file(pattern) - return Dir.glob(pattern).first - end - -end - -module KpseUtil - - # to be adapted, see loading cnf file - - @@texmftrees = ['texmf-local','texmf.local','../..','texmf'] # '../..' is for gwtex - @@texmfcnf = 'texmf.cnf' - - def KpseUtil::identify - # we mainly need to identify the local tex stuff and wse assume that - # the texmfcnf variable is set; otherwise we need to expand the - # TEXMF variable and that takes time since it may involve more - ownpath = File.expand_path($0) - if ownpath.gsub!(/texmf.*?$/o, '') then - ENV['SELFAUTOPARENT'] = ownpath - else - ENV['SELFAUTOPARENT'] = '.' # fall back - # may be too tricky: - # - # (ENV['PATH'] ||'').split_path.each do |p| - # if p.gsub!(/texmf.*?$/o, '') then - # ENV['SELFAUTOPARENT'] = p - # break - # end - # end - end - filenames = Array.new - if ENV['TEXMFCNF'] && ! ENV['TEXMFCNF'].empty? then - ENV['TEXMFCNF'].to_s.split_path.each do |path| - filenames << File.join(path,@@texmfcnf) - end - elsif ENV['SELFAUTOPARENT'] == '.' then - filenames << File.join('.',@@texmfcnf) - else - @@texmftrees.each do |tree| - filenames << File.join(ENV['SELFAUTOPARENT'],tree,'web2c',@@texmfcnf) - end - end - loop do - busy = false - filenames.collect! do |f| - f.gsub(/\$([a-zA-Z0-9\_\-]+)/o) do - if (! ENV[$1]) || (ENV[$1] == $1) then - "$#{$1}" - else - busy = true - ENV[$1] - end - end - end - break unless busy - end - filenames.delete_if do |f| - ! FileTest.file?(f) - end - return filenames - end - - def KpseUtil::environment - Hash.new.merge(ENV) - end - -end - -class KpseFast - - # formats are an incredible inconsistent mess - - @@suffixes = Hash.new - @@formats = Hash.new - @@suffixmap = Hash.new - - @@texmfcnf = 'texmf.cnf' - - @@suffixes['gf'] = ['.<resolution>gf'] # todo - @@suffixes['pk'] = ['.<resolution>pk'] # todo - @@suffixes['tfm'] = ['.tfm'] - @@suffixes['afm'] = ['.afm'] - @@suffixes['base'] = ['.base'] - @@suffixes['bib'] = ['.bib'] - @@suffixes['bst'] = ['.bst'] - @@suffixes['cnf'] = ['.cnf'] - @@suffixes['ls-R'] = ['ls-R', 'ls-r'] - @@suffixes['fmt'] = ['.fmt', '.efmt', '.efm', '.ofmt', '.ofm', '.oft', '.eofmt', '.eoft', '.eof', '.pfmt', '.pfm', '.epfmt', '.epf', '.xpfmt', '.xpf', '.afmt', '.afm'] - @@suffixes['map'] = ['.map'] - @@suffixes['mem'] = ['.mem'] - @@suffixes['mf'] = ['.mf'] - @@suffixes['mfpool'] = ['.pool'] - @@suffixes['mft'] = ['.mft'] - @@suffixes['mp'] = ['.mp'] - @@suffixes['mppool'] = ['.pool'] - @@suffixes['ocp'] = ['.ocp'] - @@suffixes['ofm'] = ['.ofm', '.tfm'] - @@suffixes['opl'] = ['.opl'] - @@suffixes['otp'] = ['.otp'] - @@suffixes['ovf'] = ['.ovf'] - @@suffixes['ovp'] = ['.ovp'] - @@suffixes['graphic/figure'] = ['.eps', '.epsi'] - @@suffixes['tex'] = ['.tex'] - @@suffixes['texpool'] = ['.pool'] - @@suffixes['PostScript header'] = ['.pro'] - @@suffixes['type1 fonts'] = ['.pfa', '.pfb'] - @@suffixes['vf'] = ['.vf'] - @@suffixes['ist'] = ['.ist'] - @@suffixes['truetype fonts'] = ['.ttf', '.ttc'] - @@suffixes['web'] = ['.web', '.ch'] - @@suffixes['cweb'] = ['.w', '.web', '.ch'] - @@suffixes['enc files'] = ['.enc'] - @@suffixes['cmap files'] = ['.cmap'] - @@suffixes['subfont definition files'] = ['.sfd'] - @@suffixes['lig files'] = ['.lig'] - @@suffixes['bitmap font'] = [] - @@suffixes['MetaPost support'] = [] - @@suffixes['TeX system documentation'] = [] - @@suffixes['TeX system sources'] = [] - @@suffixes['Troff fonts'] = [] - @@suffixes['dvips config'] = [] - @@suffixes['type42 fonts'] = [] - @@suffixes['web2c files'] = [] - @@suffixes['other text files'] = [] - @@suffixes['other binary files'] = [] - @@suffixes['misc fonts'] = [] - @@suffixes['opentype fonts'] = [] - @@suffixes['pdftex config'] = [] - @@suffixes['texmfscripts'] = [] - - # replacements - - @@suffixes['fmt'] = ['.fmt'] - @@suffixes['type1 fonts'] = ['.pfa', '.pfb', '.pfm'] - @@suffixes['tex'] = ['.tex', '.xml'] - @@suffixes['texmfscripts'] = ['rb','lua','py','pl'] - - @@suffixes.keys.each do |k| @@suffixes[k].each do |s| @@suffixmap[s] = k end end - - # TTF2TFMINPUTS - # MISCFONTS - # TEXCONFIG - # DVIPDFMINPUTS - # OTFFONTS - - @@formats['gf'] = '' - @@formats['pk'] = '' - @@formats['tfm'] = 'TFMFONTS' - @@formats['afm'] = 'AFMFONTS' - @@formats['base'] = 'MFBASES' - @@formats['bib'] = '' - @@formats['bst'] = '' - @@formats['cnf'] = '' - @@formats['ls-R'] = '' - @@formats['fmt'] = 'TEXFORMATS' - @@formats['map'] = 'TEXFONTMAPS' - @@formats['mem'] = 'MPMEMS' - @@formats['mf'] = 'MFINPUTS' - @@formats['mfpool'] = 'MFPOOL' - @@formats['mft'] = '' - @@formats['mp'] = 'MPINPUTS' - @@formats['mppool'] = 'MPPOOL' - @@formats['ocp'] = 'OCPINPUTS' - @@formats['ofm'] = 'OFMFONTS' - @@formats['opl'] = 'OPLFONTS' - @@formats['otp'] = 'OTPINPUTS' - @@formats['ovf'] = 'OVFFONTS' - @@formats['ovp'] = 'OVPFONTS' - @@formats['graphic/figure'] = '' - @@formats['tex'] = 'TEXINPUTS' - @@formats['texpool'] = 'TEXPOOL' - @@formats['PostScript header'] = 'TEXPSHEADERS' - @@formats['type1 fonts'] = 'T1FONTS' - @@formats['vf'] = 'VFFONTS' - @@formats['ist'] = '' - @@formats['truetype fonts'] = 'TTFONTS' - @@formats['web'] = '' - @@formats['cweb'] = '' - @@formats['enc files'] = 'ENCFONTS' - @@formats['cmap files'] = 'CMAPFONTS' - @@formats['subfont definition files'] = 'SFDFONTS' - @@formats['lig files'] = 'LIGFONTS' - @@formats['bitmap font'] = '' - @@formats['MetaPost support'] = '' - @@formats['TeX system documentation'] = '' - @@formats['TeX system sources'] = '' - @@formats['Troff fonts'] = '' - @@formats['dvips config'] = '' - @@formats['type42 fonts'] = 'T42FONTS' - @@formats['web2c files'] = 'WEB2C' - @@formats['other text files'] = '' - @@formats['other binary files'] = '' - @@formats['misc fonts'] = '' - @@formats['opentype fonts'] = 'OPENTYPEFONTS' - @@formats['pdftex config'] = 'PDFTEXCONFIG' - @@formats['texmfscripts'] = 'TEXMFSCRIPTS' - - attr_accessor :progname, :engine, :format, :rootpath, :treepath, - :verbose, :remember, :scandisk, :diskcache, :renewcache - - @@cacheversion = '1' - - def initialize - @rootpath = '' - @treepath = '' - @progname = 'kpsewhich' - @engine = 'pdftex' - @variables = Hash.new - @expansions = Hash.new - @files = Hash.new - @found = Hash.new - @kpsevars = Hash.new - @lsrfiles = Array.new - @cnffiles = Array.new - @verbose = true - @remember = true - @scandisk = true - @diskcache = true - @renewcache = false - @isolate = false - - @diskcache = false - @cachepath = nil - @cachefile = 'tmftools.log' - - @environment = ENV - end - - def set(key,value) - case key - when 'progname' then @progname = value - when 'engine' then @engine = value - when 'format' then @format = value - end - end - - def push_environment(env) - @environment = env - end - - # {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c} - # - # $SELFAUTOLOC : /usr/tex/bin/platform - # $SELFAUTODIR : /usr/tex/bin - # $SELFAUTOPARENT : /usr/tex - # - # since we live in scriptpath we need a slightly different method - - def load_cnf(filenames=nil) - unless filenames then - ownpath = File.expand_path($0) - if ownpath.gsub!(/texmf.*?$/o, '') then - @environment['SELFAUTOPARENT'] = ownpath - else - @environment['SELFAUTOPARENT'] = '.' - end - unless @treepath.empty? then - unless @rootpath.empty? then - @treepath = @treepath.split(',').collect do |p| File.join(@rootpath,p) end.join(',') - end - @environment['TEXMF'] = @treepath - # only the first one - @environment['TEXMFCNF'] = File.join(@treepath.split(',').first,'texmf/web2c') - end - unless @rootpath.empty? then - @environment['TEXMFCNF'] = File.join(@rootpath,'texmf/web2c') - @environment['SELFAUTOPARENT'] = @rootpath - @isolate = true - end - filenames = Array.new - if @environment['TEXMFCNF'] and not @environment['TEXMFCNF'].empty? then - @environment['TEXMFCNF'].to_s.split_path.each do |path| - filenames << File.join(path,@@texmfcnf) - end - elsif @environment['SELFAUTOPARENT'] == '.' then - filenames << File.join('.',@@texmfcnf) - else - ['texmf-local','texmf'].each do |tree| - filenames << File.join(@environment['SELFAUTOPARENT'],tree,'web2c',@@texmfcnf) - end - end - end - # <root>/texmf/web2c/texmf.cnf - filenames = _expanded_path_(filenames) - @rootpath = filenames.first - 3.times do - @rootpath = File.dirname(@rootpath) - end - filenames.collect! do |f| - f.gsub("\\", '/') - end - filenames.each do |fname| - if FileTest.file?(fname) and f = File.open(fname) then - @cnffiles << fname - while line = f.gets do - loop do - # concatenate lines ending with \ - break unless line.sub!(/\\\s*$/o) do - f.gets || '' - end - end - case line - when /^[\%\#]/o then - # comment - when /^\s*(.*?)\s*\=\s*(.*?)\s*$/o then - key, value = $1, $2 - unless @variables.key?(key) then - value.sub!(/\%.*$/,'') - value.sub!(/\~/, "$HOME") - @variables[key] = value - end - @kpsevars[key] = true - end - end - f.close - end - end - end - - def load_lsr - @lsrfiles = [] - simplified_list(expansion('TEXMF')).each do |p| - ['ls-R','ls-r'].each do |f| - filename = File.join(p,f) - if FileTest.file?(filename) then - @lsrfiles << [filename,File.size(filename)] - break - end - end - end - @files = Hash.new - if @diskcache then - ['HOME','TEMP','TMP','TMPDIR'].each do |key| - if @environment[key] then - if FileTest.directory?(@environment[key]) then - @cachepath = @environment[key] - @cachefile = [@rootpath.gsub(/[^A-Z0-9]/io, '-').gsub(/\-+/,'-'),File.basename(@cachefile)].join('-') - break - end - end - end - if @cachepath and not @renewcache and FileTest.file?(File.join(@cachepath,@cachefile)) then - begin - if f = File.open(File.join(@cachepath,@cachefile)) then - cacheversion = Marshal.load(f) - if cacheversion == @@cacheversion then - lsrfiles = Marshal.load(f) - if lsrfiles == @lsrfiles then - @files = Marshal.load(f) - end - end - f.close - end - rescue - @files = Hash.new - end - end - end - return if @files.size > 0 - @lsrfiles.each do |filedata| - filename, filesize = filedata - filepath = File.dirname(filename) - begin - path = '.' - data = IO.readlines(filename) - if data[0].chomp =~ /% ls\-R \-\- filename database for kpathsea\; do not change this line\./io then - data.each do |line| - case line - when /^[a-zA-Z0-9]/o then - line.chomp! - if @files[line] then - @files[line] << path - else - @files[line] = [path] - end - when /^\.\/(.*?)\:$/o then - path = File.join(filepath,$1) - end - end - end - rescue - # sorry - end - end - if @diskcache and @cachepath and f = File.open(File.join(@cachepath,@cachefile),'wb') then - f << Marshal.dump(@@cacheversion) - f << Marshal.dump(@lsrfiles) - f << Marshal.dump(@files) - f.close - end - end - - def expand_variables - @expansions = Hash.new - if @isolate then - @variables['TEXMFCNF'] = @environment['TEXMFCNF'].dup - @variables['SELFAUTOPARENT'] = @environment['SELFAUTOPARENT'].dup - else - @environment.keys.each do |e| - if e =~ /^([a-zA-Z]+)\_(.*)\s*$/o then - @expansions["#{$1}.#{$2}"] = (@environment[e] ||'').dup - else - @expansions[e] = (@environment[e] ||'').dup - end - end - end - @variables.keys.each do |k| - @expansions[k] = @variables[k].dup unless @expansions[k] - end - loop do - busy = false - @expansions.keys.each do |k| - @expansions[k].gsub!(/\$([a-zA-Z0-9\_\-]*)/o) do - busy = true - @expansions[$1] || '' - end - @expansions[k].gsub!(/\$\{([a-zA-Z0-9\_\-]*)\}/o) do - busy = true - @expansions[$1] || '' - end - end - break unless busy - end - @expansions.keys.each do |k| - @expansions[k] = @expansions[k].gsub("\\", '/') - end - end - - def variable(name='') - (name and not name.empty? and @variables[name.sub('$','')]) or '' - end - - def expansion(name='') - (name and not name.empty? and @expansions[name.sub('$','')]) or '' - end - - def variable?(name='') - name and not name.empty? and @variables.key?(name.sub('$','')) - end - - def expansion?(name='') - name and not name.empty? and @expansions.key?(name.sub('$','')) - end - - def simplified_list(str) - lst = str.gsub(/^\{/o,'').gsub(/\}$/o,'').split(",") - lst.collect do |l| - l.sub(/^[\!]*/,'').sub(/[\/\\]*$/o,'') - end - end - - def original_variable(variable) - if variable?("#{@progname}.#{variable}") then - variable("#{@progname}.#{variable}") - elsif variable?(variable) then - variable(variable) - else - '' - end - end - - def expanded_variable(variable) - if expansion?("#{variable}.#{@progname}") then - expansion("#{variable}.#{@progname}") - elsif expansion?(variable) then - expansion(variable) - else - '' - end - end - - def original_path(filename='') - _expanded_path_(original_variable(var_of_format_or_suffix(filename)).split(";")) - end - - def expanded_path(filename='') - _expanded_path_(expanded_variable(var_of_format_or_suffix(filename)).split(";")) - end - - def _expanded_path_(pathlist) - i, n = 0, 0 - pathlist.collect! do |mainpath| - mainpath.gsub(/([\{\}])/o) do - if $1 == "{" then - i += 1 ; n = i if i > n ; "<#{i}>" - else - i -= 1 ; "</#{i+1}>" - end - end - end - n.times do |i| - loop do - more = false - newlist = [] - pathlist.each do |path| - unless path.sub!(/^(.*?)<(#{n-i})>(.*?)<\/\2>(.*?)$/) do - pre, mid, post = $1, $3, $4 - mid.gsub!(/\,$/,',.') - mid.split(',').each do |m| - more = true - if m == '.' then - newlist << "#{pre}#{post}" - else - newlist << "#{pre}#{m}#{post}" - end - end - end then - newlist << path - end - end - if more then - pathlist = [newlist].flatten # copy -) - else - break - end - end - end - pathlist = pathlist.uniq.collect do |path| - p = path - # p.gsub(/^\/+/o) do '' end - # p.gsub!(/(.)\/\/(.)/o) do "#{$1}/#{$2}" end - # p.gsub!(/\/\/+$/o) do '//' end - p.gsub!(/\/\/+/o) do '//' end - p - end - pathlist - end - - # todo: ignore case - - def var_of_format(str) - @@formats[str] || '' - end - - def var_of_suffix(str) # includes . - if @@suffixmap.key?(str) then @@formats[@@suffixmap[str]] else '' end - end - - def var_of_format_or_suffix(str) - if @@formats.key?(str) then - @@formats[str] - elsif @@suffixmap.key?(File.extname(str)) then # extname includes . - @@formats[@@suffixmap[File.extname(str)]] # extname includes . - else - '' - end - end - -end - -class KpseFast - - # test things - - def list_variables(kpseonly=true) - @variables.keys.sort.each do |k| - if kpseonly then - puts("#{k} = #{@variables[k]}") if @kpsevars[k] - else - puts("#{if @kpsevars[k] then 'K' else 'E' end} #{k} = #{@variables[k]}") - end - end - end - - def list_expansions(kpseonly=true) - @expansions.keys.sort.each do |k| - if kpseonly then - puts("#{k} = #{@expansions[k]}") if @kpsevars[k] - else - puts("#{if @kpsevars[k] then 'K' else 'E' end} #{k} = #{@expansions[k]}") - end - end - end - - def list_lsr - puts("files = #{@files.size}") - end - - def set_test_patterns - @variables["KPSE_TEST_PATTERN_A"] = "foo/{1,2}/bar//" - @variables["KPSE_TEST_PATTERN_B"] = "!!x{A,B{1,2}}y" - @variables["KPSE_TEST_PATTERN_C"] = "x{A,B//{1,2}}y" - @variables["KPSE_TEST_PATTERN_D"] = "x{A,B//{1,2,}}//y" - end - - def show_test_patterns - ['A','B','D'].each do |i| - puts "" - puts @variables ["KPSE_TEST_PATTERN_#{i}"] - puts "" - puts expand_path("KPSE_TEST_PATTERN_#{i}").split_path - puts "" - end - end - -end - -class KpseFast - - # kpse stuff - - def expand_braces(str) # output variable and brace expansion of STRING. - _expanded_path_(original_variable(str).split_path).join_path - end - - def expand_path(str) # output complete path expansion of STRING. - _expanded_path_(expanded_variable(str).split_path).join_path - end - - def expand_var(str) # output variable expansion of STRING. - expanded_variable(str) - end - - def show_path(str) # output search path for file type NAME - expanded_path(str).join_path - end - - def var_value(str) # output the value of variable $STRING. - original_variable(str) - end - -end - -class KpseFast - - def _is_cnf_?(filename) - filename == File.basename((@cnffiles.first rescue @@texmfcnf) || @@texmfcnf) - end - - def find_file(filename) - if _is_cnf_?(filename) then - @cnffiles.first rescue '' - else - [find_files(filename,true)].flatten.first || '' - end - end - - def find_files(filename,first=false) - if _is_cnf_?(filename) then - result = @cnffiles.dup - else - if @remember then - # stamp = "#{filename}--#{@format}--#{@engine}--#{@progname}" - stamp = "#{filename}--#{@engine}--#{@progname}" - return @found[stamp] if @found.key?(stamp) - end - pathlist = expanded_path(filename) - result = [] - filelist = if @files.key?(filename) then @files[filename].uniq else nil end - done = false - if pathlist.size == 0 then - if FileTest.file?(filename) then - done = true - result << '.' - end - else - pathlist.each do |path| - doscan = if path =~ /^\!\!/o then false else true end - recurse = if path =~ /\/\/$/o then true else false end - pathname = path.dup - pathname.gsub!(/^\!+/o, '') - done = false - if not done and filelist then - # checking for exact match - if filelist.include?(pathname) then - result << pathname - done = true - end - if not done and recurse then - # checking for fuzzy // - pathname.gsub!(/\/+$/o, '/.*') - # pathname.gsub!(/\/\//o,'/[\/]*/') - pathname.gsub!(/\/\//o,'/.*?/') - re = /^#{pathname}/ - filelist.each do |f| - if re =~ f then - result << f # duplicates will be filtered later - done = true - end - break if done - end - end - end - if not done and doscan then - # checking for path itself - pname = pathname.sub(/\.\*$/,'') - if not pname =~ /\*/o and FileTest.file?(File.join(pname,filename)) then - result << pname - done = true - end - end - break if done and first - end - end - if not done and @scandisk then - pathlist.each do |path| - pathname = path.dup - unless pathname.gsub!(/^\!+/o, '') then # !! prevents scan - recurse = pathname.gsub!(/\/+$/o, '') - complex = pathname.gsub!(/\/\//o,'/*/') - if recurse then - if complex then - if ok = File.glob_file("#{pathname}/**/#{filename}") then - result << File.dirname(ok) - done = true - end - elsif ok = File.locate_file(pathname,filename) then - result << File.dirname(ok) - done = true - end - elsif complex then - if ok = File.glob_file("#{pathname}/#{filename}") then - result << File.dirname(ok) - done = true - end - elsif FileTest.file?(File.join(pathname,filename)) then - result << pathname - done = true - end - break if done and first - end - end - end - result = result.uniq.collect do |pathname| - File.join(pathname,filename) - end - @found[stamp] = result if @remember - end - return result # redundant - end - -end - -class KpseFast - - class FileData - attr_accessor :tag, :name, :size, :date - def initialize(tag=0,name=nil,size=nil,date=nil) - @tag, @name, @size, @date = tag, name, size, date - end - def FileData.sizes(a) - a.collect do |aa| - aa.size - end - end - def report - case @tag - when 1 then "deleted | #{@size.to_s.rjust(8)} | #{@date.strftime('%m/%d/%Y %I:%M')} | #{@name}" - when 2 then "present | #{@size.to_s.rjust(8)} | #{@date.strftime('%m/%d/%Y %I:%M')} | #{@name}" - when 3 then "obsolete | #{' '*8} | #{' '*16} | #{@name}" - end - end - end - - def analyze_files(filter='',strict=false,sort='',delete=false) - puts("command line = #{ARGV.join(' ')}") - puts("number of files = #{@files.size}") - puts("filter pattern = #{filter}") - puts("loaded cnf files = #{@cnffiles.join(' ')}") - puts('') - if filter.gsub!(/^not:/,'') then - def the_same(filter,filename) - not filter or filter.empty? or /#{filter}/ !~ filename - end - else - def the_same(filter,filename) - not filter or filter.empty? or /#{filter}/ =~ filename - end - end - @files.keys.each do |name| - if @files[name].size > 1 then - data = Array.new - @files[name].each do |path| - filename = File.join(path,name) - # if not filter or filter.empty? or /#{filter}/ =~ filename then - if the_same(filter,filename) then - if FileTest.file?(filename) then - if delete then - data << FileData.new(1,filename,File.size(filename),File.mtime(filename)) - begin - File.delete(filename) if delete - rescue - end - else - data << FileData.new(2,filename,File.size(filename),File.mtime(filename)) - end - else - # data << FileData.new(3,filename) - end - end - end - if data.length > 1 then - if strict then - # if data.collect do |d| d.size end.uniq! then - # data.sort! do |a,b| b.size <=> a.size end - # data.each do |d| puts d.report end - # puts '' - # end - data.sort! do |a,b| - if a.size and b.size then - b.size <=> a.size - else - 0 - end - end - bunch = Array.new - done = false - data.each do |d| - if bunch.size == 0 then - bunch << d - elsif bunch[0].size == d.size then - bunch << d - else - if bunch.size > 1 then - bunch.each do |b| - puts b.report - end - done = true - end - bunch = [d] - end - end - puts '' if done - else - case sort - when 'size' then data.sort! do |a,b| a.size <=> b.size end - when 'revsize' then data.sort! do |a,b| b.size <=> a.size end - when 'date' then data.sort! do |a,b| a.date <=> b.date end - when 'revdate' then data.sort! do |a,b| b.date <=> a.date end - end - data.each do |d| puts d.report end - puts '' - end - end - end - end - end - -end - - - # k = KpseFast.new # (root) - # k.set_test_patterns - # k.load_cnf - # k.expand_variables - # k.load_lsr - - # k.show_test_patterns - - # puts k.list_variables - # puts k.list_expansions - # k.list_lsr - # puts k.expansion("$TEXMF") - # puts k.expanded_path("TEXINPUTS","context") - - # k.progname, k.engine, k.format = 'context', 'pdftex', 'tfm' - # k.scandisk = false # == must_exist - # k.expand_variables - - # 10.times do |i| puts k.find_file('texnansi-lmr10.tfm') end - - # puts "expand braces $TEXMF" - # puts k.expand_braces("$TEXMF") - # puts "expand path $TEXMF" - # puts k.expand_path("$TEXMF") - # puts "expand var $TEXMF" - # puts k.expand_var("$TEXMF") - # puts "expand path $TEXMF" - # puts k.show_path('tfm') - # puts "expand value $TEXINPUTS" - # puts k.var_value("$TEXINPUTS") - # puts "expand value $TEXINPUTS.context" - # puts k.var_value("$TEXINPUTS.context") - - # exit - - - -# kpse_merge_file: 't:/ruby/base/kpse/trees.rb' - -require 'monitor' -# kpse_merge_done: require 'base/kpsefast' - -class KpseTrees < Monitor - - def initialize - @trees = Hash.new - end - - def pattern(filenames) - filenames.join('|').gsub(/\\+/o,'/').downcase - end - - def choose(filenames,environment) - current = pattern(filenames) - load(filenames,environment) unless @trees[current] - puts "enabling tree #{current}" - current - end - - def fetch(filenames,environment) # will send whole object ! - current = pattern(filenames) - load(filenames,environment) unless @trees[current] - puts "fetching tree #{current}" - @trees[current] - end - - def load(filenames,environment) - current = pattern(filenames) - puts "loading tree #{current}" - @trees[current] = KpseFast.new - @trees[current].push_environment(environment) - @trees[current].load_cnf(filenames) - @trees[current].expand_variables - @trees[current].load_lsr - end - - def set(tree,key,value) - case key - when 'progname' then @trees[tree].progname = value - when 'engine' then @trees[tree].engine = value - when 'format' then @trees[tree].format = value - end - end - def get(tree,key) - case key - when 'progname' then @trees[tree].progname - when 'engine' then @trees[tree].engine - when 'format' then @trees[tree].format - end - end - - def load_cnf(tree) - @trees[tree].load_cnf - end - def load_lsr(tree) - @trees[tree].load_lsr - end - def expand_variables(tree) - @trees[tree].expand_variables - end - def expand_braces(tree,str) - @trees[tree].expand_braces(str) - end - def expand_path(tree,str) - @trees[tree].expand_path(str) - end - def expand_var(tree,str) - @trees[tree].expand_var(str) - end - def show_path(tree,str) - @trees[tree].show_path(str) - end - def var_value(tree,str) - @trees[tree].var_value(str) - end - def find_file(tree,filename) - @trees[tree].find_file(filename) - end - def find_files(tree,filename,first) - @trees[tree].find_files(filename,first) - end - -end - - -# kpse_merge_file: 't:/ruby/base/kpse/drb.rb' - -require 'drb' -# kpse_merge_done: require 'base/kpse/trees' - -class KpseServer - - attr_accessor :port - - def initialize(port=7000) - @port = port - end - - def start - puts "starting drb service at port #{@port}" - DRb.start_service("druby://localhost:#{@port}", KpseTrees.new) - trap(:INT) do - DRb.stop_service - end - DRb.thread.join - end - - def stop - # todo - end - -end - -class KpseClient - - attr_accessor :port - - def initialize(port=7000) - @port = port - @kpse = nil - end - - def start - # only needed when callbacks are used / slow, due to Socket::getaddrinfo - # DRb.start_service - end - - def object - @kpse = DRbObject.new(nil,"druby://localhost:#{@port}") - end - -end - - -# SERVER_URI="druby://localhost:8787" -# -# # Start a local DRbServer to handle callbacks. -# # -# # Not necessary for this small example, but will be required -# # as soon as we pass a non-marshallable object as an argument -# # to a dRuby call. -# DRb.start_service -# - - -# kpse_merge_file: 't:/ruby/base/kpseremote.rb' - -# kpse_merge_done: require 'base/kpsefast' - -case ENV['KPSEMETHOD'] - when /soap/o then # kpse_merge_done: require 'base/kpse/soap' - when /drb/o then # kpse_merge_done: require 'base/kpse/drb' - else # kpse_merge_done: require 'base/kpse/drb' -end - -class KpseRemote - - @@port = ENV['KPSEPORT'] || 7000 - @@method = ENV['KPSEMETHOD'] || 'drb' - - def KpseRemote::available? - @@method && @@port - end - - def KpseRemote::start_server(port=nil) - kpse = KpseServer.new(port || @@port) - kpse.start - end - - def KpseRemote::start_client(port=nil) # keeps object in server - kpseclient = KpseClient.new(port || @@port) - kpseclient.start - kpse = kpseclient.object - tree = kpse.choose(KpseUtil::identify, KpseUtil::environment) - [kpse, tree] - end - - def KpseRemote::fetch(port=nil) # no need for defining methods but slower, send whole object - kpseclient = KpseClient.new(port || @@port) - kpseclient.start - kpseclient.object.fetch(KpseUtil::identify, KpseUtil::environment) rescue nil - end - - def initialize(port=nil) - if KpseRemote::available? then - begin - @kpse, @tree = KpseRemote::start_client(port) - rescue - @kpse, @tree = nil, nil - end - else - @kpse, @tree = nil, nil - end - end - - def progname=(value) - @kpse.set(@tree,'progname',value) - end - def format=(value) - @kpse.set(@tree,'format',value) - end - def engine=(value) - @kpse.set(@tree,'engine',value) - end - - def progname - @kpse.get(@tree,'progname') - end - def format - @kpse.get(@tree,'format') - end - def engine - @kpse.get(@tree,'engine') - end - - def load - @kpse.load(KpseUtil::identify, KpseUtil::environment) - end - def okay? - @kpse && @tree - end - def set(key,value) - @kpse.set(@tree,key,value) - end - def load_cnf - @kpse.load_cnf(@tree) - end - def load_lsr - @kpse.load_lsr(@tree) - end - def expand_variables - @kpse.expand_variables(@tree) - end - def expand_braces(str) - clean_name(@kpse.expand_braces(@tree,str)) - end - def expand_path(str) - clean_name(@kpse.expand_path(@tree,str)) - end - def expand_var(str) - clean_name(@kpse.expand_var(@tree,str)) - end - def show_path(str) - clean_name(@kpse.show_path(@tree,str)) - end - def var_value(str) - clean_name(@kpse.var_value(@tree,str)) - end - def find_file(filename) - clean_name(@kpse.find_file(@tree,filename)) - end - def find_files(filename,first=false) - # dodo: each filename - @kpse.find_files(@tree,filename,first) - end - - private - - def clean_name(str) - str.gsub(/\\/,'/') - end - -end - - -# kpse_merge_file: 't:/ruby/base/kpsedirect.rb' - -class KpseDirect - - attr_accessor :progname, :format, :engine - - def initialize - @progname, @format, @engine = '', '', '' - end - - def expand_path(str) - clean_name(`kpsewhich -expand-path=#{str}`.chomp) - end - - def expand_var(str) - clean_name(`kpsewhich -expand-var=#{str}`.chomp) - end - - def find_file(str) - clean_name(`kpsewhich #{_progname_} #{_format_} #{str}`.chomp) - end - - def _progname_ - if @progname.empty? then '' else "-progname=#{@progname}" end - end - def _format_ - if @format.empty? then '' else "-format=\"#{@format}\"" end - end - - private - - def clean_name(str) - str.gsub(/\\/,'/') - end - -end - - -# kpse_merge_stop - - - -$mswindows = Config::CONFIG['host_os'] =~ /mswin/ -$separator = File::PATH_SEPARATOR -$version = "2.0.3" -$ownpath = File.dirname($0) - -if $mswindows then - require "win32ole" - require "Win32API" -end - -# exit if defined?(REQUIRE2LIB) - -$stdout.sync = true -$stderr.sync = true - -$applications = Hash.new -$suffixinputs = Hash.new -$predefined = Hash.new -$runners = Hash.new - -$suffixinputs['pl'] = 'PERLINPUTS' -$suffixinputs['rb'] = 'RUBYINPUTS' -$suffixinputs['py'] = 'PYTHONINPUTS' -$suffixinputs['lua'] = 'LUAINPUTS' -$suffixinputs['jar'] = 'JAVAINPUTS' -$suffixinputs['pdf'] = 'PDFINPUTS' - -$predefined['texexec'] = 'texexec.rb' -$predefined['texutil'] = 'texutil.rb' -$predefined['texfont'] = 'texfont.pl' -$predefined['texshow'] = 'texshow.pl' - -$predefined['makempy'] = 'makempy.pl' -$predefined['mptopdf'] = 'mptopdf.pl' -$predefined['pstopdf'] = 'pstopdf.rb' - -$predefined['examplex'] = 'examplex.rb' -$predefined['concheck'] = 'concheck.rb' - -$predefined['runtools'] = 'runtools.rb' -$predefined['textools'] = 'textools.rb' -$predefined['tmftools'] = 'tmftools.rb' -$predefined['ctxtools'] = 'ctxtools.rb' -$predefined['rlxtools'] = 'rlxtools.rb' -$predefined['pdftools'] = 'pdftools.rb' -$predefined['mpstools'] = 'mpstools.rb' -$predefined['exatools'] = 'exatools.rb' -$predefined['xmltools'] = 'xmltools.rb' -# $predefined['luatools'] = 'luatools.lua' -# $predefined['mtxtools'] = 'mtxtools.rb' - -$predefined['newpstopdf'] = 'pstopdf.rb' -$predefined['newtexexec'] = 'texexec.rb' -$predefined['pdftrimwhite'] = 'pdftrimwhite.pl' - -$makelist = [ - # context - 'texexec', - 'texutil', - 'texfont', - # mp/ps - 'pstopdf', - 'mptopdf', - 'makempy', - # misc - 'ctxtools', - 'pdftools', - 'xmltools', - 'textools', - 'mpstools', - 'tmftools', - 'exatools', - 'runtools', - 'rlxtools', - 'pdftrimwhite', - 'texfind', - 'texshow' - # - # no 'luatools', - # no 'mtxtools', - # no, 'texmfstart' -] - -$scriptlist = 'rb|pl|py|lua|jar' -$documentlist = 'pdf|ps|eps|htm|html' - -$editor = ENV['TEXMFSTART_EDITOR'] || ENV['EDITOR'] || ENV['editor'] || 'scite' - -$crossover = true # to other tex tools, else only local -$kpse = nil - -def set_applications(page=1) - - $applications['unknown'] = '' - $applications['ruby'] = $applications['rb'] = 'ruby' - $applications['lua'] = $applications['lua'] = 'lua' - $applications['perl'] = $applications['pl'] = 'perl' - $applications['python'] = $applications['py'] = 'python' - $applications['java'] = $applications['jar'] = 'java' - - if $mswindows then - $applications['pdf'] = ['',"pdfopen --page #{page} --file",'acroread'] - $applications['html'] = ['','netscape','mozilla','opera','iexplore'] - $applications['ps'] = ['','gview32','gv','gswin32','gs'] - else - $applications['pdf'] = ["pdfopen --page #{page} --file",'acroread'] - $applications['html'] = ['netscape','mozilla','opera'] - $applications['ps'] = ['gview','gv','gs'] - end - - $applications['htm'] = $applications['html'] - $applications['eps'] = $applications['ps'] - - $runners['lua'] = "texlua" - -end - -set_applications() - -def check_kpse - if $kpse then - # already done - else - begin - if KpseRemote::available? then - $kpse = KpseRemote.new - if $kpse.okay? then - puts("kpse : remote") if $verbose - else - $kpse = KpseDirect.new - puts("kpse : direct (forced)") if $verbose - end - else - $kpse = KpseDirect.new - puts("kpse : direct") if $verbose - end - rescue - puts("kpse : direct (fallback)") if $verbose - end - end -end - -if $mswindows then - - GetShortPathName = Win32API.new('kernel32', 'GetShortPathName', ['P','P','N'], 'N') - GetLongPathName = Win32API.new('kernel32', 'GetLongPathName', ['P','P','N'], 'N') - - def dowith_pathname (filename,filemethod) - filename = filename.gsub(/\\/o,'/') # no gsub! because filename can be frozen - case filename - when /\;/o then - # could be a path spec - return filename - when /\s+/o then - # danger lurking - buffer = ' ' * 260 - length = filemethod.call(filename,buffer,buffer.size) - if length>0 then - return buffer.slice(0..length-1) - else - # when the path or file does not exist, nothing is returned - # so we try to handle the path separately from the basename - basename = File.basename(filename) - pathname = File.dirname(filename) - length = filemethod.call(pathname,buffer,260) - if length>0 then - return buffer.slice(0..length-1) + '/' + basename - else - return filename - end - end - else - # no danger - return filename - end - end - - def longpathname (filename) - dowith_pathname(filename,GetLongPathName) - end - - def shortpathname (filename) - dowith_pathname(filename,GetShortPathName) - end - -else - - def longpathname (filename) - filename - end - - def shortpathname (filename) - filename - end - -end - -class File - - # def File.needsupdate(oldname,newname) - # begin - # if $mswindows then - # return File.stat(oldname).mtime > File.stat(newname).mtime - # else - # return File.stat(oldname).mtime != File.stat(newname).mtime - # end - # rescue - # return true - # end - # end - - @@update_eps = 1 - - def File.needsupdate(oldname,newname) - begin - oldtime = File.stat(oldname).mtime.to_i - newtime = File.stat(newname).mtime.to_i - if newtime >= oldtime then - return false - elsif oldtime-newtime < @@update_eps then - return false - else - return true - end - rescue - return true - end - end - - def File.syncmtimes(oldname,newname) - return - begin - if $mswindows then - # does not work (yet) / gives future timestamp - # t = File.mtime(oldname) # i'm not sure if the time is frozen, so we do it here - # File.utime(0,t,oldname,newname) - else - t = File.mtime(oldname) # i'm not sure if the time is frozen, so we do it here - File.utime(0,t,oldname,newname) - end - rescue - end - end - - def File.timestamp(name) - begin - "#{File.stat(name).mtime}" - rescue - return 'unknown' - end - end - -end - -# def hashed (arr=[]) - # arg = if arr.class == String then arr.split(' ') else arr.dup end - # hsh = Hash.new - # if arg.length > 0 - # hsh['arguments'] = '' - # done = false - # arg.each do |s| - # if done then - # if s =~ / / then - # hsh['arguments'] += " \"#{s}\"" # maybe split on = - # else - # hsh['arguments'] += " #{s}" - # end - # else - # kvl = s.split('=') - # if kvl[0].sub!(/^\-+/,'') then - # hsh[kvl[0]] = if kvl.length > 1 then kvl[1] else true end - # else - # hsh['file'] = s - # done = true - # end - # end - # end - # end - # return hsh -# end - -def hashed (arr=[]) - arg = if arr.class == String then arr.split(' ') else arr.dup end - hsh = Hash.new - if arg.length > 0 - hsh['arguments'] = '' - done = false - arg.each do |s| - if done then - if s =~ /\s/ then - kvl = s.split('=') - if kvl[1] and kvl[1] !~ /^[\"\']/ then - hsh['arguments'] += ' ' + kvl[0] + "=" + '"' + kvl[1] + '"' - elsif s =~ /\s/ then - hsh['arguments'] += ' "' + s + '"' - else - hsh['arguments'] += ' ' + s - end - else - hsh['arguments'] += ' ' + s - end - else - kvl = s.split('=') - if kvl[0].sub!(/^\-+/,'') then - hsh[kvl[0]] = if kvl.length > 1 then kvl[1] else true end - else - hsh['file'] = s - done = true - end - end - end - end - return hsh -end - - -def launch(filename) - if $browser && $mswindows then - filename = filename.gsub(/\.[\/\\]/) do - Dir.getwd + '/' - end - report("launching #{filename}") - ie = WIN32OLE.new("InternetExplorer.Application") - ie.visible = true - ie.navigate(filename) - return true - else - return false - end -end - -# env|environment -# rel|relative -# loc|locate|kpse|path|file - -def quoted(str) - if str =~ /^\"/ then - return str - elsif str =~ / / then - return "\"#{str}\"" - else - return str - end -end - -def expanded(arg) # no "other text files", too restricted - arg.gsub(/(env|environment)\:([a-zA-Z\-\_\.0-9]+)/o) do - method, original, resolved = $1, $2, '' - if resolved = ENV[original] then - report("environment variable #{original} expands to #{resolved}") unless $report - quoted(resolved) - else - report("environment variable #{original} cannot be resolved") unless $report - quoted(original) - end - end . gsub(/(rel|relative)\:([a-zA-Z\-\_\.0-9]+)/o) do - method, original, resolved = $1, $2, '' - ['.','..','../..'].each do |r| - if FileTest.file?(File.join(r,original)) then - resolved = File.join(r,original) - break - end - end - if resolved.empty? then - quoted(original) - else - quoted(resolved) - end - end . gsub(/(kpse|loc|locate|file|path)\:([a-zA-Z\-\_\.0-9]+)/o) do - method, original, resolved = $1, $2, '' - if $program && ! $program.empty? then - # pstrings = ["-progname=#{$program}"] - pstrings = [$program] - else - # pstrings = ['','-progname=context'] - pstrings = ['','context'] - end - # auto suffix with texinputs as fall back - if ENV["_CTX_K_V_#{original}_"] then - resolved = ENV["_CTX_K_V_#{original}_"] - report("environment provides #{original} as #{resolved}") unless $report - quoted(resolved) - else - check_kpse - pstrings.each do |pstr| - if resolved.empty? then - # command = "kpsewhich #{pstr} #{original}" - # report("running #{command}") - report("locating '#{original}' in program space '#{pstr}'") - begin - # resolved = `#{command}`.chomp - $kpse.progname = pstr - $kpse.format = '' - resolved = $kpse.find_file(original).gsub(/\\/,'/') - rescue - resolved = '' - end - end - # elsewhere in the tree - if resolved.empty? then - # command = "kpsewhich #{pstr} -format=\"other text files\" #{original}" - # report("running #{command}") - report("locating '#{original}' in program space '#{pstr}' using format 'other text files'") - begin - # resolved = `#{command}`.chomp - $kpse.progname = pstr - $kpse.format = 'other text files' - resolved = $kpse.find_file(original).gsub(/\\/,'/') - rescue - resolved = '' - end - end - end - if resolved.empty? then - original = File.dirname(original) if method =~ /path/ - report("#{original} is not resolved") unless $report - ENV["_CTX_K_V_#{original}_"] = original if $crossover - quoted(original) - else - resolved = File.dirname(resolved) if method =~ /path/ - report("#{original} is resolved to #{resolved}") unless $report - ENV["_CTX_K_V_#{original}_"] = resolved if $crossover - quoted(resolved) - end - end - end -end - -def changeddir?(path) - if path.empty? then - return true - else - oldpath = File.expand_path(path) - begin - Dir.chdir(path) if not path.empty? - rescue - report("unable to change to directory: #{path}") - else - report("changed to directory: #{path}") - end - newpath = File.expand_path(Dir.getwd) - return oldpath == newpath - end -end - -def runcommand(command) - if $locate then - command = command.split(' ').collect do |c| - if c =~ /\//o then - begin - cc = File.expand_path(c) - c = cc if FileTest.file?(cc) - rescue - end - end - c - end . join(' ') - print command # to stdout and no newline - elsif $execute then - report("using 'exec' instead of 'system' call: #{command}") - exec(command) if changeddir?($path) - else - report("using 'system' call: #{command}") - system(command) if changeddir?($path) - end -end - -def join_command(args) - args[0] = $runners[args[0]] || args[0] - [args].join(' ') -end - -def runoneof(application,fullname,browserpermitted) - if browserpermitted && launch(fullname) then - return true - else - fullname = quoted(fullname) # added because MM ran into problems - report("starting #{$filename}") unless $report - output("\n") if $report && $verbose - applications = $applications[application.downcase] - if ! applications then - output("problems with determining application type") - return true - elsif applications.class == Array then - if $report then - output(join_command([fullname,expanded($arguments)])) - return true - else - applications.each do |a| - return true if runcommand(join_command([a,fullname,expanded($arguments)])) - end - end - elsif applications.empty? then - if $report then - output(join_command([fullname,expanded($arguments)])) - return true - else - return runcommand(join_command([fullname,expanded($arguments)])) - end - else - if $report then - output(join_command([applications,fullname,expanded($arguments)])) - return true - else - return runcommand(join_command([applications,fullname,expanded($arguments)])) - end - end - return false - end -end - -def report(str) - $stdout.puts(str) if $verbose -end - -def output(str) - $stdout.puts(str) -end - -def usage - print "version : #{$version} - 2003/2006 - www.pragma-ade.com\n" - print("\n") - print("usage : texmfstart [switches] filename [optional arguments]\n") - print("\n") - print("switches : --verbose --report --browser --direct --execute --locate --iftouched --ifchanged\n") - print(" --program --file --page --arguments --batch --edit --report --clear\n") - print(" --make --lmake --wmake --path --stubpath --indirect --before --after\n") - print(" --tree --autotree --environment --showenv\n") - print("\n") - print("example : texmfstart pstopdf.rb cow.eps\n") - print(" texmfstart --locate examplex.rb\n") - print(" texmfstart --execute examplex.rb\n") - print(" texmfstart --browser examplap.pdf\n") - print(" texmfstart showcase.pdf\n") - print(" texmfstart --page=2 --file=showcase.pdf\n") - print(" texmfstart --program=yourtex yourscript.rb arg-1 arg-2\n") - print(" texmfstart --direct xsltproc kpse:somefile.xsl somefile.xml\n") - print(" texmfstart --direct ruby rel:wn-cleanup-1.rb oldfile.xml newfile.xml\n") - print(" texmfstart bin:xsltproc env:somepreset path:somefile.xsl somefile.xml\n") - print(" texmfstart --iftouched=normal,lowres downsample.rb normal lowres\n") - print(" texmfstart --ifchanged=somefile.dat --direct processit somefile.dat\n") - print(" texmfstart bin:scite kpse:texmf.cnf\n") - print(" texmfstart --exec bin:scite *.tex\n") - print(" texmfstart --edit texmf.cnf\n") - print(" texmfstart --edit kpse:texmf.cnf\n") - print(" texmfstart --serve\n") - print("\n") - print(" texmfstart --stubpath=/usr/local/bin [--make --remove] --verbose all\n") - print(" texmfstart --stubpath=auto [--make --remove] all\n") - print("\n") - check_kpse -end - -# somehow registration does not work out (at least not under windows) -# the . is also not accepted by unix as seperator - -def tag(name) - if $crossover then "_CTX_K_S_#{name}_" else "TEXMFSTART.#{name}" end -end - -def registered?(filename) - return ENV[tag(filename)] != nil -end - -def registered(filename) - return ENV[tag(filename)] || 'unknown' -end - -def register(filename,fullname) - if fullname && ! fullname.empty? then # && FileTest.file?(fullname) - ENV[tag(filename)] = fullname - report("registering '#{filename}' as '#{fullname}'") - return true - else - return false - end -end - -def find(filename,program) - begin - filename = filename.sub(/script:/o, '') # so we have bin: and script: and nothing - if $predefined.key?(filename) then - report("expanding '#{filename}' to '#{$predefined[filename]}'") - filename = $predefined[filename] - end - if registered?(filename) then - report("already located '#{filename}'") - return registered(filename) - end - # create suffix list - if filename =~ /^(.*)\.(.+)$/ then - filename = $1 - suffixlist = [$2] - else - suffixlist = [$scriptlist.split('|'),$documentlist.split('|')].flatten - end - # first we honor a given path - if filename =~ /[\\\/]/ then - report("trying to honor '#{filename}'") - suffixlist.each do |suffix| - fullname = filename+'.'+suffix - if FileTest.file?(fullname) && register(filename,fullname) - return shortpathname(fullname) - end - end - end - filename.sub!(/^.*[\\\/]/, '') - # next we look at the current path and the callerpath - pathlist = [ ] - progpath = $applications[suffixlist[0]] - threadok = registered("THREAD") !~ /unknown/ - pathlist << ['.','current'] - pathlist << [$ownpath,'caller'] if $ownpath != '.' - pathlist << ["#{$ownpath}/../#{progpath}",'caller'] if progpath - pathlist << [registered("THREAD"),'thread'] if threadok - pathlist << ["#{registered("THREAD")}/../#{progpath}",'thread'] if progpath && threadok - pathlist.each do |p| - if p && ! p.empty? && ! (p[0] == 'unknown') then - suffixlist.each do |suffix| - fname = "#{filename}.#{suffix}" - fullname = File.expand_path(File.join(p[0],fname)) - report("locating '#{fname}' in #{p[1]} path '#{p[0]}'") - if FileTest.file?(fullname) && register(filename,fullname) then - report("'#{fname}' located in #{p[1]} path") - return shortpathname(fullname) - end - end - end - end - # now we consult environment settings - fullname = nil - check_kpse - $kpse.progname = program - suffixlist.each do |suffix| - begin - break unless $suffixinputs[suffix] - environment = ENV[$suffixinputs[suffix]] || ENV[$suffixinputs[suffix]+".#{$program}"] - if ! environment || environment.empty? then - begin - # environment = `kpsewhich -expand-path=\$#{$suffixinputs[suffix]}`.chomp - environment = $kpse.expand_path("\$#{$suffixinputs[suffix]}") - rescue - environment = nil - else - if environment && ! environment.empty? then - report("using kpsewhich variable #{$suffixinputs[suffix]}") - end - end - elsif environment && ! environment.empty? then - report("using environment variable #{$suffixinputs[suffix]}") - end - if environment && ! environment.empty? then - environment.split($separator).each do |e| - e.strip! - e = '.' if e == '\.' # somehow . gets escaped - e += '/' unless e =~ /[\\\/]$/ - fullname = e + filename + '.' + suffix - report("testing '#{fullname}'") - if FileTest.file?(fullname) then - break - else - fullname = nil - end - end - end - rescue - report("environment string '#{$suffixinputs[suffix]}' cannot be used to locate '#{filename}'") - fullname = nil - else - return shortpathname(fullname) if register(filename,fullname) - end - end - return shortpathname(fullname) if register(filename,fullname) - # then we fall back on kpsewhich - suffixlist.each do |suffix| - # TDS script scripts location as per 2004 - if suffix =~ /(#{$scriptlist})/ then - begin - report("using 'kpsewhich' to locate '#{filename}' in suffix space '#{suffix}' (1)") - # fullname = `kpsewhich -progname=#{program} -format=texmfscripts #{filename}.#{suffix}`.chomp - $kpse.format = 'texmfscripts' - fullname = $kpse.find_file("#{filename}.#{suffix}").gsub(/\\/,'/') - rescue - report("kpsewhich cannot locate '#{filename}' in suffix space '#{suffix}' (1)") - fullname = nil - else - return shortpathname(fullname) if register(filename,fullname) - end - end - # old TDS location: .../texmf/context/... - begin - report("using 'kpsewhich' to locate '#{filename}' in suffix space '#{suffix}' (2)") - # fullname = `kpsewhich -progname=#{program} -format="other text files" #{filename}.#{suffix}`.chomp - $kpse.format = 'other text files' - fullname = $kpse.find_file("#{filename}.#{suffix}").gsub(/\\/,'/') - rescue - report("kpsewhich cannot locate '#{filename}' in suffix space '#{suffix}' (2)") - fullname = nil - else - return shortpathname(fullname) if register(filename,fullname) - end - end - return shortpathname(fullname) if register(filename,fullname) - # let's take a look at the path - paths = ENV['PATH'].split($separator) - suffixlist.each do |s| - paths.each do |p| - suffixedname = "#{filename}.#{s}" - report("checking #{p} for #{filename}") - if FileTest.file?(File.join(p,suffixedname)) then - fullname = File.join(p,suffixedname) - return shortpathname(fullname) if register(filename,fullname) - end - end - end - # bad luck, we need to search the tree ourselves - if (suffixlist.length == 1) && (suffixlist.first =~ /(#{$documentlist})/) then - report("aggressively locating '#{filename}' in document trees") - begin - # texroot = `kpsewhich -expand-var=$SELFAUTOPARENT`.chomp - texroot = $kpse.expand_var("$SELFAUTOPARENT") - rescue - texroot = '' - else - texroot.sub!(/[\\\/][^\\\/]*?$/, '') - end - if not texroot.empty? then - sffxlst = suffixlist.join(',') - begin - report("locating '#{filename}' in document tree '#{texroot}/doc*'") - if (result = Dir.glob("#{texroot}/doc*/**/#{filename}.{#{sffxlst}}")) && result && result[0] && FileTest.file?(result[0]) then - fullname = result[0] - end - rescue - report("locating '#{filename}.#{suffixlist.join('|')}' in tree '#{texroot}' aborted") - end - end - return shortpathname(fullname) if register(filename,fullname) - end - report("aggressively locating '#{filename}' in tex trees") - begin - # textrees = `kpsewhich -expand-var=$TEXMF`.chomp - textrees = $kpse.expand_var("$TEXMF") - rescue - textrees = '' - end - if not textrees.empty? then - textrees.gsub!(/[\{\}\!]/, '') - textrees = textrees.split(',') - if (suffixlist.length == 1) && (suffixlist.first =~ /(#{$documentlist})/) then - speedup = ['doc**','**'] - else - speedup = ['**'] - end - sffxlst = suffixlist.join(',') - speedup.each do |speed| - textrees.each do |tt| - tt.gsub!(/[\\\/]$/, '') - if FileTest.directory?(tt) then - begin - report("locating '#{filename}' in tree '#{tt}/#{speed}/#{filename}.{#{sffxlst}}'") - if (result = Dir.glob("#{tt}/#{speed}/#{filename}.{#{sffxlst}}")) && result && result[0] && FileTest.file?(result[0]) then - fullname = result[0] - break - end - rescue - report("locating '#{filename}' in tree '#{tt}' aborted") - next - end - end - end - break if fullname && ! fullname.empty? - end - end - if register(filename,fullname) then - return shortpathname(fullname) - else - return '' - end - rescue - error, trace = $!, $@.join("\n") - report("fatal error: #{error}\n#{trace}") - # report("fatal error") - end -end - -def run(fullname) - if ! fullname || fullname.empty? then - output("the file '#{$filename}' is not found") - elsif FileTest.file?(fullname) then - begin - case fullname - when /\.(#{$scriptlist})$/i then - return runoneof($1,fullname,false) - when /\.(#{$documentlist})$/i then - return runoneof($1,fullname,true) - else - return runoneof('unknown',fullname,false) - end - rescue - report("starting '#{$filename}' in program space '#{$program}' fails (#{$!})") - end - else - report("the file '#{$filename}' in program space '#{$program}' is not accessible") - end - return false -end - -def direct(fullname) - begin - return runcommand([fullname.sub(/^(bin|binary)\:/, ''),expanded($arguments)].join(' ')) - rescue - return false - end -end - -def edit(filename) - begin - return runcommand([$editor,expanded(filename),expanded($arguments)].join(' ')) - rescue - return false - end -end - -def make(filename,windows=false,linux=false,remove=false) - basename = File.basename(filename).gsub(/\.[^.]+?$/, '') - if $stubpath == 'auto' then - basename = File.dirname($0) + '/' + basename - else - basename = $stubpath + '/' + basename unless $stubpath.empty? - end - if filename == 'texmfstart' then - program = 'ruby' - command = 'kpsewhich --format=texmfscripts --progname=context texmfstart.rb' - filename = `#{command}`.chomp.gsub(/\\/, '/') - if filename.empty? then - report("failure: #{command}") - return - elsif not remove then - if windows then - ['bat','exe'].each do |suffix| - if FileTest.file?("#{basename}.#{suffix}") then - report("windows stub '#{basename}.#{suffix}' skipped (already present)") - return - end - end - elsif linux && FileTest.file?(basename) then - report("unix stub '#{basename}' skipped (already present)") - return - end - end - else - program = nil - if filename =~ /[\\\/]/ && filename =~ /\.(#{$scriptlist})$/ then - program = $applications[$1] - end - filename = "\"#{filename}\"" if filename =~ /\s/ - program = 'texmfstart' if $indirect || ! program || program.empty? - end - begin - callname = $predefined[filename.sub(/\.*?$/,'')] || filename - if remove then - if windows && (File.delete(basename+'.bat') rescue false) then - report("windows stub '#{basename}.bat' removed (calls #{callname})") - elsif linux && (File.delete(basename) rescue false) then - report("unix stub '#{basename}' removed (calls #{callname})") - end - else - if windows && f = open(basename+'.bat','w') then - f.binmode - f.write("@echo off\015\012") - f.write("#{program} #{callname} %*\015\012") - f.close - report("windows stub '#{basename}.bat' made (calls #{callname})") - elsif linux && f = open(basename,'w') then - f.binmode - f.write("#!/bin/sh\012") - f.write("#{program} #{callname} \"$@\"\012") - f.close - report("unix stub '#{basename}' made (calls #{callname})") - end - end - rescue - report("failed to make stub '#{basename}' #{$!}") - return false - else - return true - end -end - -def process(&block) - if $iftouched then - files = $directives['iftouched'].split(',') - oldname, newname = files[0], files[1] - if oldname && newname && File.needsupdate(oldname,newname) then - report("file #{oldname}: #{File.timestamp(oldname)}") - report("file #{newname}: #{File.timestamp(newname)}") - report("file is touched, processing started") - yield - File.syncmtimes(oldname,newname) - else - report("file #{oldname} is untouched") - end - elsif $ifchanged then - filename = $directives['ifchanged'] - checkname = filename + ".md5" - oldchecksum, newchecksum = "old", "new" - begin - newchecksum = MD5.new(IO.read(filename)).hexdigest.upcase - rescue - newchecksum = "new" - else - begin - oldchecksum = IO.read(checkname).chomp - rescue - oldchecksum = "old" - end - end - if $verbose then - report("old checksum #{filename}: #{oldchecksum}") - report("new checksum #{filename}: #{newchecksum}") - end - if oldchecksum != newchecksum then - report("file is changed, processing started") - begin - File.open(checkname,'w') do |f| - f << newchecksum - end - rescue - end - yield - else - report("file #{filename} is unchanged") - end - else - yield - end -end - -def checkenvironment(tree) - report('') - ENV['TMP'] = ENV['TMP'] || ENV['TEMP'] || ENV['TMPDIR'] || ENV['HOME'] - case RUBY_PLATFORM - when /(mswin|bccwin|mingw|cygwin)/i then ENV['TEXOS'] = ENV['TEXOS'] || 'texmf-mswin' - when /(linux)/i then ENV['TEXOS'] = ENV['TEXOS'] || 'texmf-linux' - when /(darwin|rhapsody|nextstep)/i then ENV['TEXOS'] = ENV['TEXOS'] || 'texmf-macosx' - # when /(netbsd|unix)/i then # todo - else # todo - end - ENV['TEXOS'] = "#{ENV['TEXOS'].sub(/^[\\\/]*/, '').sub(/[\\\/]*$/, '')}" - ENV['TEXPATH'] = tree.sub(/\/+$/,'') # + '/' - ENV['TEXMFOS'] = "#{ENV['TEXPATH']}/#{ENV['TEXOS']}" - report('') - report("preset : TEXPATH => #{ENV['TEXPATH']}") - report("preset : TEXOS => #{ENV['TEXOS']}") - report("preset : TEXMFOS => #{ENV['TEXMFOS']}") - report("preset : TMP => #{ENV['TMP']}") - report('') -end - -def loadfile(filename) - begin - IO.readlines(filename).each do |line| - case line.chomp - when /^[\#\%]/ then - # comment - when /^(.*?)\s*(\>|\=|\<)\s*(.*)\s*$/ then - # = assign | > prepend | < append - key, how, value = $1, $2, $3 - begin - # $SAFE = 0 - value.gsub!(/\%(.*?)\%/) do - ENV[$1] || '' - end - # value.gsub!(/\;/,$separator) if key =~ /PATH/i then - case how - when '=', '<<' then ENV[key] = value - when '?', '??' then ENV[key] = ENV[key] || value - when '<', '+=' then ENV[key] = (ENV[key] || '') + $separator + value - when '>', '=+' then ENV[key] = value + $separator + (ENV[key] ||'') - end - rescue - report("user set failed : #{key} (#{$!})") - else - report("user set : #{key} => #{ENV[key]}") - end - end - end - rescue - report("error in reading file '#{filename}'") - end -end - -def loadtree(tree) - begin - unless tree.empty? then - if File.directory?(tree) then - setuptex = File.join(tree,'setuptex.tmf') - else - setuptex = tree.dup - end - if FileTest.file?(setuptex) then - report("tex tree definition: #{setuptex}") - checkenvironment(File.dirname(setuptex)) - loadfile(setuptex) - else - report("no setup file '#{setuptex}'") - end - end - rescue - # maybe tree is empty or boolean (no arg given) - end -end - -def loadenvironment(environment) - begin - unless environment.empty? then - filename = if $path.empty? then environment else File.expand_path(File.join($path,environment)) end - if FileTest.file?(filename) then - report("environment : #{environment}") - loadfile(filename) - else - report("no environment file '#{environment}'") - end - end - rescue - report("problem while loading '#{environment}'") - end -end - -def show_environment - if $showenv then - keys = ENV.keys.sort - size = 0 - keys.each do |k| - size = k.size if k.size > size - end - report('') - keys.each do |k| - report("#{k.rjust(size)} => #{ENV[k]}") - end - report('') - end -end - -def execute(arguments) # br global - - arguments = arguments.split(/\s+/) if arguments.class == String - $directives = hashed(arguments) - - $help = $directives['help'] || false - $batch = $directives['batch'] || false - $filename = $directives['file'] || '' - $program = $directives['program'] || 'context' - $direct = $directives['direct'] || false - $edit = $directives['edit'] || false - $page = $directives['page'] || 1 - $browser = $directives['browser'] || false - $report = $directives['report'] || false - $verbose = $directives['verbose'] || false - $arguments = $directives['arguments'] || '' - $execute = $directives['execute'] || $directives['exec'] || false - $locate = $directives['locate'] || false - - $autotree = if $directives['autotree'] then (ENV['TEXMFSTART_TREE'] || ENV['TEXMFSTARTTREE'] || '') else '' end - - $path = $directives['path'] || '' - $tree = $directives['tree'] || $autotree || '' - $environment = $directives['environment'] || '' - - $make = $directives['make'] || false - $remove = $directives['remove'] || $directives['delete'] || false - $unix = $directives['unix'] || false - $windows = $directives['windows'] || $directives['mswin'] || false - $stubpath = $directives['stubpath'] || '' - $indirect = $directives['indirect'] || false - - $before = $directives['before'] || '' - $after = $directives['after'] || '' - - $iftouched = $directives['iftouched'] || false - $ifchanged = $directives['ifchanged'] || false - - $openoffice = $directives['oo'] || false - - $crossover = false if $directives['clear'] - - $showenv = $directives['showenv'] || false - $verbose = true if $showenv - - $serve = $directives['serve'] || false - - $verbose = true if (ENV['_CTX_VERBOSE_'] =~ /(y|yes|t|true|on)/io) && ! $locate && ! $report - - set_applications($page) - - # private: - - $selfmerge = $directives['selfmerge'] || false - $selfcleanup = $directives['selfclean'] || $directives['selfcleanup'] || false - - ENV['_CTX_VERBOSE_'] = 'yes' if $verbose - - if $openoffice then - if ENV['OOPATH'] then - if FileTest.directory?(ENV['OOPATH']) then - report("using open office python") - if $mswindows then - $applications['python'] = $applications['py'] = "\"#{File.join(ENV['OOPATH'],'program','python.bat')}\"" - else - $applications['python'] = $applications['py'] = File.join(ENV['OOPATH'],'python') - end - report("python path #{$applications['python']}") - else - report("environment variable 'OOPATH' does not exist") - end - else - report("environment variable 'OOPATH' is not set") - end - end - - if $selfmerge then - output("ruby libraries are cleaned up") if SelfMerge::cleanup - output("ruby libraries are merged") if SelfMerge::merge - return true - elsif $selfcleanup then - output("ruby libraries are cleaned up") if SelfMerge::cleanup - return true - elsif $serve then - if ENV['KPSEMETHOD'] && ENV['KPSEPORT'] then - # # kpse_merge_done: require 'base/kpseremote' - begin - KpseRemote::start_server - rescue - return false - else - return true - end - else - usage - puts("") - puts("message : set 'KPSEMETHOD' and 'KPSEPORT' variables") - return false - end - elsif $help || ! $filename || $filename.empty? then - usage - loadtree($tree) - loadenvironment($environment) - show_environment() - return true - elsif $batch && $filename && ! $filename.empty? then - # todo, take commands from file and avoid multiple starts and checks - return false - else - report("texmfstart version #{$version}") - loadtree($tree) - loadenvironment($environment) - show_environment() - if $make || $remove then - if $filename == 'all' then - makelist = $makelist - else - makelist = [$filename] - end - makelist.each do |filename| - if $windows then - make(filename,true,false,$remove) - elsif $unix then - make(filename,false,true,$remove) - else - make(filename,$mswindows,!$mswindows,$remove) - end - end - return true # guess - elsif $browser && $filename =~ /^http\:\/\// then - return launch($filename) - else - begin - process do - if $direct || $filename =~ /^bin\:/ then - return direct($filename) - elsif $edit && ! $editor.empty? then - return edit($filename) - else # script: or no prefix - command = find(shortpathname($filename),$program) - if command then - register("THREAD",File.dirname(File.expand_path(command))) - return run(command) - else - report('unable to locate program') - return false - end - end - end - rescue - report('fatal error in starting process') - return false - end - end - end - -end - -if execute(ARGV) then - report("\nexecution was successful") if $verbose - exit(0) -else - report("\nexecution failed") if $verbose - exit(1) -end +../../texmf-dist/scripts/context/ruby/texmfstart.rb
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/texshow b/Master/bin/hppa-hpux/texshow new file mode 120000 index 00000000000..52a03692b74 --- /dev/null +++ b/Master/bin/hppa-hpux/texshow @@ -0,0 +1 @@ +../../texmf-dist/scripts/context/stubs/unix/texshow
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/textools b/Master/bin/hppa-hpux/textools index 7445eac371c..d1a20375405 100755..120000 --- a/Master/bin/hppa-hpux/textools +++ b/Master/bin/hppa-hpux/textools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart textools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/textools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/texutil b/Master/bin/hppa-hpux/texutil index 607154af059..78f249c7f02 100755..120000 --- a/Master/bin/hppa-hpux/texutil +++ b/Master/bin/hppa-hpux/texutil @@ -1,2 +1 @@ -#!/bin/sh -texmfstart texutil.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/texutil
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/tftopl b/Master/bin/hppa-hpux/tftopl Binary files differindex c40b802cd46..efb3f427390 100755 --- a/Master/bin/hppa-hpux/tftopl +++ b/Master/bin/hppa-hpux/tftopl diff --git a/Master/bin/hppa-hpux/tie b/Master/bin/hppa-hpux/tie Binary files differindex 8c8a5e4f40f..36005f80f09 100755 --- a/Master/bin/hppa-hpux/tie +++ b/Master/bin/hppa-hpux/tie diff --git a/Master/bin/hppa-hpux/tmftools b/Master/bin/hppa-hpux/tmftools index 7531a966390..444a68a40ee 100755..120000 --- a/Master/bin/hppa-hpux/tmftools +++ b/Master/bin/hppa-hpux/tmftools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart tmftools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/tmftools
\ No newline at end of file diff --git a/Master/bin/hppa-hpux/ttf2afm b/Master/bin/hppa-hpux/ttf2afm Binary files differindex fc54c3a65a9..a50baa01258 100755 --- a/Master/bin/hppa-hpux/ttf2afm +++ b/Master/bin/hppa-hpux/ttf2afm diff --git a/Master/bin/hppa-hpux/ttf2pk b/Master/bin/hppa-hpux/ttf2pk Binary files differindex 1cae44ed88a..dd2594be8da 100755 --- a/Master/bin/hppa-hpux/ttf2pk +++ b/Master/bin/hppa-hpux/ttf2pk diff --git a/Master/bin/hppa-hpux/ttf2tfm b/Master/bin/hppa-hpux/ttf2tfm Binary files differindex a0bdb637fd3..980bcb4d368 100755 --- a/Master/bin/hppa-hpux/ttf2tfm +++ b/Master/bin/hppa-hpux/ttf2tfm diff --git a/Master/bin/hppa-hpux/ttftotype42 b/Master/bin/hppa-hpux/ttftotype42 Binary files differindex 41ce989db53..22dfb1b5ea9 100755 --- a/Master/bin/hppa-hpux/ttftotype42 +++ b/Master/bin/hppa-hpux/ttftotype42 diff --git a/Master/bin/hppa-hpux/vftovp b/Master/bin/hppa-hpux/vftovp Binary files differindex 3e96555803e..a312146e80d 100755 --- a/Master/bin/hppa-hpux/vftovp +++ b/Master/bin/hppa-hpux/vftovp diff --git a/Master/bin/hppa-hpux/vlna b/Master/bin/hppa-hpux/vlna Binary files differnew file mode 100755 index 00000000000..c77a11af668 --- /dev/null +++ b/Master/bin/hppa-hpux/vlna diff --git a/Master/bin/hppa-hpux/vptovf b/Master/bin/hppa-hpux/vptovf Binary files differindex 3f1d96b47c9..4d260c51322 100755 --- a/Master/bin/hppa-hpux/vptovf +++ b/Master/bin/hppa-hpux/vptovf diff --git a/Master/bin/hppa-hpux/weave b/Master/bin/hppa-hpux/weave Binary files differindex 66880694ce6..111b5be3fcc 100755 --- a/Master/bin/hppa-hpux/weave +++ b/Master/bin/hppa-hpux/weave diff --git a/Master/bin/hppa-hpux/xdvi-xaw.bin b/Master/bin/hppa-hpux/xdvi-xaw.bin Binary files differindex 34aa820d490..8aef1c5b055 100755 --- a/Master/bin/hppa-hpux/xdvi-xaw.bin +++ b/Master/bin/hppa-hpux/xdvi-xaw.bin diff --git a/Master/bin/hppa-hpux/xdvipdfmx b/Master/bin/hppa-hpux/xdvipdfmx Binary files differindex 103b5538efe..9dbbffdd6bc 100755 --- a/Master/bin/hppa-hpux/xdvipdfmx +++ b/Master/bin/hppa-hpux/xdvipdfmx diff --git a/Master/bin/hppa-hpux/xetex b/Master/bin/hppa-hpux/xetex Binary files differindex b20a24768e5..a5ee743cada 100755 --- a/Master/bin/hppa-hpux/xetex +++ b/Master/bin/hppa-hpux/xetex diff --git a/Master/bin/hppa-hpux/xmltools b/Master/bin/hppa-hpux/xmltools index 03086d0436b..873458dcc92 100755..120000 --- a/Master/bin/hppa-hpux/xmltools +++ b/Master/bin/hppa-hpux/xmltools @@ -1,2 +1 @@ -#!/bin/sh -texmfstart xmltools.rb "$@" +../../texmf-dist/scripts/context/stubs/unix/xmltools
\ No newline at end of file |