summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/bin/sparc-linux/afm2plbin87572 -> 137492 bytes
-rwxr-xr-xMaster/bin/sparc-linux/afm2tfmbin89952 -> 146896 bytes
-rwxr-xr-xMaster/bin/sparc-linux/alephbin550376 -> 1021368 bytes
-rwxr-xr-xMaster/bin/sparc-linux/bboxbin8864 -> 10416 bytes
-rwxr-xr-xMaster/bin/sparc-linux/bg5convbin4352 -> 4504 bytes
-rwxr-xr-xMaster/bin/sparc-linux/bibtexbin145260 -> 252604 bytes
-rwxr-xr-xMaster/bin/sparc-linux/bibtex8bin174164 -> 301816 bytes
-rwxr-xr-xMaster/bin/sparc-linux/cef5convbin5644 -> 7288 bytes
-rwxr-xr-xMaster/bin/sparc-linux/cefconvbin5564 -> 7112 bytes
-rwxr-xr-xMaster/bin/sparc-linux/cefsconvbin5644 -> 7352 bytes
-rwxr-xr-xMaster/bin/sparc-linux/cfftot1bin348232 -> 525680 bytes
-rwxr-xr-xMaster/bin/sparc-linux/ctanglebin96096 -> 154284 bytes
-rwxr-xr-xMaster/bin/sparc-linux/ctiebin71056 -> 112796 bytes
-rwxr-xr-xMaster/bin/sparc-linux/cweavebin128876 -> 218972 bytes
-rwxr-xr-xMaster/bin/sparc-linux/detexbin80760 -> 129080 bytes
-rwxr-xr-xMaster/bin/sparc-linux/devnagbin31568 -> 41608 bytes
-rwxr-xr-xMaster/bin/sparc-linux/disdvibin10976 -> 13200 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dmpbin80052 -> 0 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dt2dvbin30888 -> 39064 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dv2dtbin11176 -> 13776 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvi2ttybin21228 -> 30296 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvibookbin21712 -> 31516 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dviconcatbin20128 -> 28576 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvicopybin112684 -> 188232 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvidvibin19256 -> 27488 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dviljbin104628 -> 170916 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvilj2pbin104628 -> 170916 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvilj4bin112844 -> 180316 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvilj4lbin112844 -> 180324 bytes
l---------[-rwxr-xr-x]Master/bin/sparc-linux/dvipdfmbin393956 -> 8 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvipdfmxbin729684 -> 1285244 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvipdft85
-rwxr-xr-xMaster/bin/sparc-linux/dvipngbin931532 -> 1799372 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dviposbin96112 -> 154280 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvipsbin238352 -> 389604 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dviselectbin21224 -> 30680 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvitodvibin28384 -> 36868 bytes
l---------[-rwxr-xr-x]Master/bin/sparc-linux/dvitompbin96144 -> 5 bytes
-rwxr-xr-xMaster/bin/sparc-linux/dvitypebin96388 -> 154620 bytes
-rwxr-xr-xMaster/bin/sparc-linux/epsffitbin9812 -> 12480 bytes
-rwxr-xr-xMaster/bin/sparc-linux/extconvbin4352 -> 4504 bytes
-rwxr-xr-xMaster/bin/sparc-linux/fmtutil60
l---------Master/bin/sparc-linux/fragmaster1
-rwxr-xr-xMaster/bin/sparc-linux/gftodvibin98208 -> 170828 bytes
-rwxr-xr-xMaster/bin/sparc-linux/gftopkbin79972 -> 138204 bytes
-rwxr-xr-xMaster/bin/sparc-linux/gftypebin79756 -> 126328 bytes
-rwxr-xr-xMaster/bin/sparc-linux/gsftopkbin79540 -> 129524 bytes
-rwxr-xr-xMaster/bin/sparc-linux/hbf2gfbin89224 -> 145848 bytes
-rwxr-xr-xMaster/bin/sparc-linux/kpseaccessbin5196 -> 5540 bytes
-rwxr-xr-xMaster/bin/sparc-linux/kpsereadlinkbin5184 -> 5292 bytes
-rwxr-xr-xMaster/bin/sparc-linux/kpsestatbin5800 -> 6600 bytes
-rwxr-xr-xMaster/bin/sparc-linux/kpsewhichbin71524 -> 116960 bytes
-rwxr-xr-xMaster/bin/sparc-linux/lacheckbin57196 -> 74788 bytes
l---------Master/bin/sparc-linux/latex2man1
-rwxr-xr-xMaster/bin/sparc-linux/luatanglebin0 -> 162460 bytes
-rwxr-xr-xMaster/bin/sparc-linux/luatexbin4044608 -> 7668868 bytes
-rwxr-xr-xMaster/bin/sparc-linux/magbin5624 -> 6448 bytes
-rwxr-xr-xMaster/bin/sparc-linux/makeindexbin132896 -> 202308 bytes
-rwxr-xr-xMaster/bin/sparc-linux/makempxbin71004 -> 0 bytes
l---------Master/bin/sparc-linux/man1
-rwxr-xr-xMaster/bin/sparc-linux/mfbin318728 -> 596952 bytes
-rwxr-xr-xMaster/bin/sparc-linux/mf-nowinbin312324 -> 592688 bytes
-rwxr-xr-xMaster/bin/sparc-linux/mftbin101624 -> 187372 bytes
-rwxr-xr-xMaster/bin/sparc-linux/mmafmbin222904 -> 351728 bytes
-rwxr-xr-xMaster/bin/sparc-linux/mmpfbbin291452 -> 433664 bytes
-rwxr-xr-xMaster/bin/sparc-linux/mpostbin394732 -> 902636 bytes
-rwxr-xr-xMaster/bin/sparc-linux/mptobin10468 -> 0 bytes
-rwxr-xr-xMaster/bin/sparc-linux/musixflxbin18780 -> 22612 bytes
-rwxr-xr-xMaster/bin/sparc-linux/newerbin6188 -> 0 bytes
-rwxr-xr-xMaster/bin/sparc-linux/odvicopybin114332 -> 197392 bytes
-rwxr-xr-xMaster/bin/sparc-linux/odvitypebin96388 -> 154620 bytes
-rwxr-xr-xMaster/bin/sparc-linux/omfontsbin155608 -> 246896 bytes
-rwxr-xr-xMaster/bin/sparc-linux/otanglebin46532 -> 155164 bytes
-rwxr-xr-xMaster/bin/sparc-linux/otfinfobin426372 -> 617308 bytes
-rwxr-xr-xMaster/bin/sparc-linux/otftotfmbin788432 -> 1060884 bytes
-rwxr-xr-xMaster/bin/sparc-linux/otp2ocpbin81924 -> 138632 bytes
-rwxr-xr-xMaster/bin/sparc-linux/outocpbin64104 -> 104556 bytes
-rwxr-xr-xMaster/bin/sparc-linux/patgenbin36852 -> 62000 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pdfclosebin7844 -> 9348 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pdfopenbin8588 -> 10628 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pdftexbin1422296 -> 2418156 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pdftosrcbin473204 -> 691076 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pfb2pfabin7752 -> 10904 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pk2bmbin11088 -> 18948 bytes
l---------Master/bin/sparc-linux/pkfix-helper1
-rwxr-xr-xMaster/bin/sparc-linux/pktogfbin76304 -> 127776 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pktypebin71556 -> 121568 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pltotfbin53344 -> 96972 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pooltypebin20372 -> 29104 bytes
-rwxr-xr-xMaster/bin/sparc-linux/ps2eps935
-rwxr-xr-xMaster/bin/sparc-linux/ps2pkbin179000 -> 312776 bytes
-rwxr-xr-xMaster/bin/sparc-linux/psbookbin12456 -> 15752 bytes
-rwxr-xr-xMaster/bin/sparc-linux/psnupbin19952 -> 27540 bytes
-rwxr-xr-xMaster/bin/sparc-linux/psresizebin18064 -> 23916 bytes
-rwxr-xr-xMaster/bin/sparc-linux/psselectbin13552 -> 17984 bytes
-rwxr-xr-xMaster/bin/sparc-linux/pstopsbin19296 -> 24020 bytes
l---------Master/bin/sparc-linux/purifyeps1
-rwxr-xr-xMaster/bin/sparc-linux/sjisconvbin4384 -> 4536 bytes
l---------Master/bin/sparc-linux/svn-multi1
-rwxr-xr-xMaster/bin/sparc-linux/synctexbin115040 -> 218396 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1asciibin24680 -> 38584 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1asmbin29732 -> 46636 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1binarybin24216 -> 37704 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1disasmbin30008 -> 47420 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1dotlessjbin274712 -> 426528 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1lintbin228048 -> 376548 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1macbin35536 -> 52460 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1rawafmbin0 -> 381372 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1reencodebin272280 -> 408844 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1testpagebin248316 -> 401872 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t1unmacbin30260 -> 46596 bytes
-rwxr-xr-xMaster/bin/sparc-linux/t4htbin87356 -> 139436 bytes
-rwxr-xr-xMaster/bin/sparc-linux/tanglebin97716 -> 162500 bytes
-rwxr-xr-xMaster/bin/sparc-linux/tcdialogbin144592 -> 223204 bytes
-rwxr-xr-xMaster/bin/sparc-linux/teckit_compilebin0 -> 1531204 bytes
-rwxr-xr-xMaster/bin/sparc-linux/texbin359372 -> 603612 bytes
-rwxr-xr-xMaster/bin/sparc-linux/tex2xindybin17364 -> 0 bytes
-rwxr-xr-xMaster/bin/sparc-linux/tex4htbin153028 -> 309604 bytes
l---------Master/bin/sparc-linux/texindy1
-rwxr-xr-xMaster/bin/sparc-linux/texlinks31
l---------Master/bin/sparc-linux/texloganalyser1
-rwxr-xr-xMaster/bin/sparc-linux/tftoplbin89868 -> 154276 bytes
-rwxr-xr-xMaster/bin/sparc-linux/tiebin10484 -> 112716 bytes
-rwxr-xr-xMaster/bin/sparc-linux/ttf2afmbin88552 -> 146708 bytes
-rwxr-xr-xMaster/bin/sparc-linux/ttf2pkbin229188 -> 426840 bytes
-rwxr-xr-xMaster/bin/sparc-linux/ttf2tfmbin247008 -> 450288 bytes
-rwxr-xr-xMaster/bin/sparc-linux/ttfdumpbin0 -> 81548 bytes
-rwxr-xr-xMaster/bin/sparc-linux/ttftotype42bin287872 -> 466408 bytes
l---------Master/bin/sparc-linux/ulqda1
-rwxr-xr-xMaster/bin/sparc-linux/updmap3
-rwxr-xr-xMaster/bin/sparc-linux/vftovpbin104408 -> 179008 bytes
-rwxr-xr-xMaster/bin/sparc-linux/vlnabin12152 -> 18752 bytes
-rwxr-xr-xMaster/bin/sparc-linux/vptovfbin69732 -> 123072 bytes
-rwxr-xr-xMaster/bin/sparc-linux/weavebin121660 -> 219880 bytes
-rwxr-xr-xMaster/bin/sparc-linux/xdvi-xawbin811956 -> 1366268 bytes
-rwxr-xr-xMaster/bin/sparc-linux/xdvipdfmxbin1283724 -> 2214948 bytes
-rwxr-xr-xMaster/bin/sparc-linux/xetexbin9354416 -> 10325688 bytes
l---------Master/bin/sparc-linux/xindy1
-rw-r--r--Master/bin/sparc-linux/xindy.membin1366976 -> 0 bytes
-rwxr-xr-xMaster/bin/sparc-linux/xindy.runbin2397084 -> 0 bytes
-rwxr-xr-xMaster/tlpkg/bin/tl-update-bindir2
141 files changed, 1050 insertions, 76 deletions
diff --git a/Master/bin/sparc-linux/afm2pl b/Master/bin/sparc-linux/afm2pl
index 57f4af68c1b..bddbbf2ec77 100755
--- a/Master/bin/sparc-linux/afm2pl
+++ b/Master/bin/sparc-linux/afm2pl
Binary files differ
diff --git a/Master/bin/sparc-linux/afm2tfm b/Master/bin/sparc-linux/afm2tfm
index 9b269dba13f..9a4301a78f8 100755
--- a/Master/bin/sparc-linux/afm2tfm
+++ b/Master/bin/sparc-linux/afm2tfm
Binary files differ
diff --git a/Master/bin/sparc-linux/aleph b/Master/bin/sparc-linux/aleph
index 56a99b45f29..39a9484a549 100755
--- a/Master/bin/sparc-linux/aleph
+++ b/Master/bin/sparc-linux/aleph
Binary files differ
diff --git a/Master/bin/sparc-linux/bbox b/Master/bin/sparc-linux/bbox
index 09baad7c365..a62ce1637cf 100755
--- a/Master/bin/sparc-linux/bbox
+++ b/Master/bin/sparc-linux/bbox
Binary files differ
diff --git a/Master/bin/sparc-linux/bg5conv b/Master/bin/sparc-linux/bg5conv
index 0b07b1e6ddc..bf571f1cc9b 100755
--- a/Master/bin/sparc-linux/bg5conv
+++ b/Master/bin/sparc-linux/bg5conv
Binary files differ
diff --git a/Master/bin/sparc-linux/bibtex b/Master/bin/sparc-linux/bibtex
index 8ff62f6503d..43004e5abda 100755
--- a/Master/bin/sparc-linux/bibtex
+++ b/Master/bin/sparc-linux/bibtex
Binary files differ
diff --git a/Master/bin/sparc-linux/bibtex8 b/Master/bin/sparc-linux/bibtex8
index 24ed80822a9..7e376f25497 100755
--- a/Master/bin/sparc-linux/bibtex8
+++ b/Master/bin/sparc-linux/bibtex8
Binary files differ
diff --git a/Master/bin/sparc-linux/cef5conv b/Master/bin/sparc-linux/cef5conv
index c4173d0021b..9d53e41030a 100755
--- a/Master/bin/sparc-linux/cef5conv
+++ b/Master/bin/sparc-linux/cef5conv
Binary files differ
diff --git a/Master/bin/sparc-linux/cefconv b/Master/bin/sparc-linux/cefconv
index d511c71c26f..35c23577046 100755
--- a/Master/bin/sparc-linux/cefconv
+++ b/Master/bin/sparc-linux/cefconv
Binary files differ
diff --git a/Master/bin/sparc-linux/cefsconv b/Master/bin/sparc-linux/cefsconv
index 54580a69fed..f9775d3daa0 100755
--- a/Master/bin/sparc-linux/cefsconv
+++ b/Master/bin/sparc-linux/cefsconv
Binary files differ
diff --git a/Master/bin/sparc-linux/cfftot1 b/Master/bin/sparc-linux/cfftot1
index bc5c92d0e9b..2bbcc0ec3ef 100755
--- a/Master/bin/sparc-linux/cfftot1
+++ b/Master/bin/sparc-linux/cfftot1
Binary files differ
diff --git a/Master/bin/sparc-linux/ctangle b/Master/bin/sparc-linux/ctangle
index cf3f3fa1398..765e4c44852 100755
--- a/Master/bin/sparc-linux/ctangle
+++ b/Master/bin/sparc-linux/ctangle
Binary files differ
diff --git a/Master/bin/sparc-linux/ctie b/Master/bin/sparc-linux/ctie
index b9acf7afa91..a9ed6a03285 100755
--- a/Master/bin/sparc-linux/ctie
+++ b/Master/bin/sparc-linux/ctie
Binary files differ
diff --git a/Master/bin/sparc-linux/cweave b/Master/bin/sparc-linux/cweave
index a91cdc80e67..8a1d194700b 100755
--- a/Master/bin/sparc-linux/cweave
+++ b/Master/bin/sparc-linux/cweave
Binary files differ
diff --git a/Master/bin/sparc-linux/detex b/Master/bin/sparc-linux/detex
index 1709c924a0d..c68db19a189 100755
--- a/Master/bin/sparc-linux/detex
+++ b/Master/bin/sparc-linux/detex
Binary files differ
diff --git a/Master/bin/sparc-linux/devnag b/Master/bin/sparc-linux/devnag
index e2adb4f1bcf..2f8a21e72d4 100755
--- a/Master/bin/sparc-linux/devnag
+++ b/Master/bin/sparc-linux/devnag
Binary files differ
diff --git a/Master/bin/sparc-linux/disdvi b/Master/bin/sparc-linux/disdvi
index ee7f0e32908..479be21486d 100755
--- a/Master/bin/sparc-linux/disdvi
+++ b/Master/bin/sparc-linux/disdvi
Binary files differ
diff --git a/Master/bin/sparc-linux/dmp b/Master/bin/sparc-linux/dmp
deleted file mode 100755
index c8145796eab..00000000000
--- a/Master/bin/sparc-linux/dmp
+++ /dev/null
Binary files differ
diff --git a/Master/bin/sparc-linux/dt2dv b/Master/bin/sparc-linux/dt2dv
index f3f7e9437f7..99bbe785df2 100755
--- a/Master/bin/sparc-linux/dt2dv
+++ b/Master/bin/sparc-linux/dt2dv
Binary files differ
diff --git a/Master/bin/sparc-linux/dv2dt b/Master/bin/sparc-linux/dv2dt
index f671e8ed4b2..54260abc8a1 100755
--- a/Master/bin/sparc-linux/dv2dt
+++ b/Master/bin/sparc-linux/dv2dt
Binary files differ
diff --git a/Master/bin/sparc-linux/dvi2tty b/Master/bin/sparc-linux/dvi2tty
index 778560045b9..ba50092fe0f 100755
--- a/Master/bin/sparc-linux/dvi2tty
+++ b/Master/bin/sparc-linux/dvi2tty
Binary files differ
diff --git a/Master/bin/sparc-linux/dvibook b/Master/bin/sparc-linux/dvibook
index 9d7e9ba7788..a8781cee411 100755
--- a/Master/bin/sparc-linux/dvibook
+++ b/Master/bin/sparc-linux/dvibook
Binary files differ
diff --git a/Master/bin/sparc-linux/dviconcat b/Master/bin/sparc-linux/dviconcat
index b6968a801d9..83fc0b4ef15 100755
--- a/Master/bin/sparc-linux/dviconcat
+++ b/Master/bin/sparc-linux/dviconcat
Binary files differ
diff --git a/Master/bin/sparc-linux/dvicopy b/Master/bin/sparc-linux/dvicopy
index 8906b838c63..f1af9252ce0 100755
--- a/Master/bin/sparc-linux/dvicopy
+++ b/Master/bin/sparc-linux/dvicopy
Binary files differ
diff --git a/Master/bin/sparc-linux/dvidvi b/Master/bin/sparc-linux/dvidvi
index e0d7e10a768..5a77227b273 100755
--- a/Master/bin/sparc-linux/dvidvi
+++ b/Master/bin/sparc-linux/dvidvi
Binary files differ
diff --git a/Master/bin/sparc-linux/dvilj b/Master/bin/sparc-linux/dvilj
index d8838fcd8e4..a0e170b3564 100755
--- a/Master/bin/sparc-linux/dvilj
+++ b/Master/bin/sparc-linux/dvilj
Binary files differ
diff --git a/Master/bin/sparc-linux/dvilj2p b/Master/bin/sparc-linux/dvilj2p
index c0c03fbf52a..31182a4e322 100755
--- a/Master/bin/sparc-linux/dvilj2p
+++ b/Master/bin/sparc-linux/dvilj2p
Binary files differ
diff --git a/Master/bin/sparc-linux/dvilj4 b/Master/bin/sparc-linux/dvilj4
index b8bb43f776b..08e11a10edd 100755
--- a/Master/bin/sparc-linux/dvilj4
+++ b/Master/bin/sparc-linux/dvilj4
Binary files differ
diff --git a/Master/bin/sparc-linux/dvilj4l b/Master/bin/sparc-linux/dvilj4l
index 56454327874..216c3db74b2 100755
--- a/Master/bin/sparc-linux/dvilj4l
+++ b/Master/bin/sparc-linux/dvilj4l
Binary files differ
diff --git a/Master/bin/sparc-linux/dvipdfm b/Master/bin/sparc-linux/dvipdfm
index 9ce9c63d162..ab4195592f6 100755..120000
--- a/Master/bin/sparc-linux/dvipdfm
+++ b/Master/bin/sparc-linux/dvipdfm
Binary files differ
diff --git a/Master/bin/sparc-linux/dvipdfmx b/Master/bin/sparc-linux/dvipdfmx
index cadb569cc16..6dfef453b07 100755
--- a/Master/bin/sparc-linux/dvipdfmx
+++ b/Master/bin/sparc-linux/dvipdfmx
Binary files differ
diff --git a/Master/bin/sparc-linux/dvipdft b/Master/bin/sparc-linux/dvipdft
index db53bd2f5a0..3bcd0027db1 100755
--- a/Master/bin/sparc-linux/dvipdft
+++ b/Master/bin/sparc-linux/dvipdft
@@ -1,15 +1,24 @@
#!/bin/sh
-
-#
-# dvipdft, completely rewtitten by Thomas Esser for teTeX after an
+# dvipdft, completely rewritten by Thomas Esser for teTeX after an
# original script by Mark A. Wicks
#
# Thomas Esser. Public Domain.
-#
+#
+# Modified by Matthias Franz for dvipdfmx (when running as dvipdfm) and
+# TeX Live.
# This script makes a first (fast) run with dvipdfm, then calls gs on
# the resulting pdf file to get the thumbnails and finally calls dvipdfm.
+progname=dvipdft
+version=20090604.0046
+
+# set trap for error
+trap '
+ echo "$progname: fatal error." >&2
+ exit 1
+' 1
+
test -f /bin/sh5 && test -z "$RUNNING_SH5" \
&& { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \
&& { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; }
@@ -23,16 +32,10 @@ unset RUNNING_BSH
# hack around a bug in zsh:
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
-progname=dvipdft
-version=1111942378 # seconds since `00:00:00 1970-01-01 UTC'
- # date '+%s' (with GNU date)
-
help="Usage: $progname [options] dvifile
$progname --help
$progname --version"
-tmpdir=${TMPDIR-${TEMP-${TMP-/tmp}}}/$progname.$$
-
quoteit()
{
echo "x$1" | sed "s@.@@; s@'@'\\\\''@; s@^@'@; s@\$@'@"
@@ -56,7 +59,7 @@ case $1 in
exit 0
;;
--version)
- echo "$progname version $version by Thomas Esser"
+ echo "$progname version $version by Thomas Esser and others"
exit 0
;;
"")
@@ -66,7 +69,7 @@ case $1 in
esac
# args 1 to (n-1) are gone, last one must be the dvifile
-dvifile=$1
+dvifile="$1"
# outfile comes from -o argument, else it is derived from the input file
test -n "$outfile" \
@@ -75,56 +78,28 @@ test -n "$outfile" \
# outBase is part of the thumbname files just as dvipdfm expects them:
outBase=`echo "$outfile" | sed 's@\.pdf$@@'`
-# restore args 1 to (n-1):
-eval set x "$s"; shift
-
-# Run dvipdfm with the fastest options for the first pass
-echo "$progname: running dvipdfm $@ -e -z0 $dvifile" >&2
-dvipdfm ${1+"$@"} -e -z0 "$dvifile" || {
- echo "$progname: dvipdfm failed." >&2
+ls "$outBase".[1-9]* >/dev/null 2>&1 && {
+ echo "$progname: Please move the following files out of the way:" >&2
+ ls "$outBase".[1-9]* >&2
exit 1
}
-# before we create the tmpdir, set trap for cleanup
-trap '
- rm -rf $tmpdir
- exit 1
-' 1 2 3 7 13 15
+# restore args 1 to (n-1):
+eval set x "$s"; shift
-mkdir "$tmpdir" || {
- echo "$progname: failed to create temp directory." >&2
- exit 1
-}
+# set trap for cleanup
+trap '
+ rm -f "$outBase".[1-9]*
+' 0
-# if outBase contains a /, we might need to create a directory
-case $outBase in
- */*)
- fq=`echo "$tmpdir/$outBase" | sed 's@//@/@g; s@/[^/]*$@@'`
- test -d "$fq" || mkdir -p "$fq" || {
- echo "$progname: failed to create temp thumbnail directory." >&2
- rm -rf $tmpdir
- exit 1
- }
- ;;
-esac
+# Run dvipdfm with the fastest options for the first pass
+echo "$progname: running dvipdfm $@ -z0 $dvifile" >&2
+dvipdfm ${1+"$@"} -z0 "$dvifile"
# run gs
echo "$progname: running gs" >&2
-gs -r10 -dNOPAUSE -dBATCH -sDEVICE=png256 \
- -sOutputFile="$tmpdir/$outBase.%d" "$outfile" || {
- echo "$progname: gs failed." >&2
- rm -rf $tmpdir
- exit 1
-}
+gs -r10 -dNOPAUSE -dBATCH -sDEVICE=png256 -sOutputFile="$outBase.%d" "$outfile"
# run dvipdfm with the users specified options for the last pass
-echo "$progname: running dvipdfm -dt $@ $dvifile" >&2
-TMP=$tmpdir dvipdfm -dt ${1+"$@"} "$dvifile" || {
- echo "$progname: dvipdfm failed." >&2
- rm -rf $tmpdir
- exit 1
-}
-
-# nothing failed, so cleanup and report success to caller
-rm -rf $tmpdir
-exit 0
+echo "$progname: running dvipdfm -t $@ $dvifile" >&2
+dvipdfm ${1+"$@"} -t "$dvifile"
diff --git a/Master/bin/sparc-linux/dvipng b/Master/bin/sparc-linux/dvipng
index 8039e220be8..f65f97c7073 100755
--- a/Master/bin/sparc-linux/dvipng
+++ b/Master/bin/sparc-linux/dvipng
Binary files differ
diff --git a/Master/bin/sparc-linux/dvipos b/Master/bin/sparc-linux/dvipos
index 59b3f207ec8..6c3a18a395c 100755
--- a/Master/bin/sparc-linux/dvipos
+++ b/Master/bin/sparc-linux/dvipos
Binary files differ
diff --git a/Master/bin/sparc-linux/dvips b/Master/bin/sparc-linux/dvips
index 3d44e58d257..2d7d3bf85ac 100755
--- a/Master/bin/sparc-linux/dvips
+++ b/Master/bin/sparc-linux/dvips
Binary files differ
diff --git a/Master/bin/sparc-linux/dviselect b/Master/bin/sparc-linux/dviselect
index 3653fc91f2b..c5f445f6a4d 100755
--- a/Master/bin/sparc-linux/dviselect
+++ b/Master/bin/sparc-linux/dviselect
Binary files differ
diff --git a/Master/bin/sparc-linux/dvitodvi b/Master/bin/sparc-linux/dvitodvi
index b03d55f6665..eaa2942f451 100755
--- a/Master/bin/sparc-linux/dvitodvi
+++ b/Master/bin/sparc-linux/dvitodvi
Binary files differ
diff --git a/Master/bin/sparc-linux/dvitomp b/Master/bin/sparc-linux/dvitomp
index 3c4e4cdf7ea..96672bbb523 100755..120000
--- a/Master/bin/sparc-linux/dvitomp
+++ b/Master/bin/sparc-linux/dvitomp
Binary files differ
diff --git a/Master/bin/sparc-linux/dvitype b/Master/bin/sparc-linux/dvitype
index 29cc12d783b..59f5ae28601 100755
--- a/Master/bin/sparc-linux/dvitype
+++ b/Master/bin/sparc-linux/dvitype
Binary files differ
diff --git a/Master/bin/sparc-linux/epsffit b/Master/bin/sparc-linux/epsffit
index e1f118fd4fa..d48303f0142 100755
--- a/Master/bin/sparc-linux/epsffit
+++ b/Master/bin/sparc-linux/epsffit
Binary files differ
diff --git a/Master/bin/sparc-linux/extconv b/Master/bin/sparc-linux/extconv
index dd52e33bd11..a05e2c1d026 100755
--- a/Master/bin/sparc-linux/extconv
+++ b/Master/bin/sparc-linux/extconv
Binary files differ
diff --git a/Master/bin/sparc-linux/fmtutil b/Master/bin/sparc-linux/fmtutil
index f86a06003de..2a76d08f558 100755
--- a/Master/bin/sparc-linux/fmtutil
+++ b/Master/bin/sparc-linux/fmtutil
@@ -84,8 +84,7 @@ test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
progname=fmtutil
argv0=$0
-version=1205513038 # seconds since `00:00:00 1970-01-01 UTC'
- # date '+%s' (with GNU date)
+version=20090611.2319
cnf=fmtutil.cnf # name of the config file
export PATH
@@ -259,6 +258,23 @@ verboseMsg() {
###############################################################################
byebye()
{
+ if $has_warnings; then
+ {
+ cat <<eof
+
+###############################################################################
+$progname: Warning! Some warnings have been issued.
+Visit the log files in directory
+ $destdir
+for details.
+###############################################################################
+
+This is a summary of all \`warning' messages:
+$log_warning_msg
+eof
+ } >&2
+ fi
+
if $has_errors; then
{
cat <<eof
@@ -270,7 +286,7 @@ Visit the log files in directory
for details.
###############################################################################
-This is a summary of all \`failed' messages and warnings:
+This is a summary of all \`failed' messages:
$log_failure_msg
eof
} >&2
@@ -281,6 +297,16 @@ eof
}
###############################################################################
+# init_log_warning()
+# reset the list of warning messages
+###############################################################################
+init_log_warning()
+{
+ log_warning_msg=
+ has_warnings=false
+}
+
+###############################################################################
# init_log_failure()
# reset the list of failure messages
###############################################################################
@@ -291,6 +317,24 @@ init_log_failure()
}
###############################################################################
+# log_warning(errmsg)
+# report and save warning message `errmsg'
+###############################################################################
+log_warning()
+{
+ echo "Warning: $@" >&2
+ if test -z "$log_warning_msg"; then
+ log_warning_msg="$@"
+ else
+ OLDIFS=$IFS; IFS=
+ log_warning_msg="$log_warning_msg
+$@"
+ IFS=$OLDIFS
+ fi
+ has_warnings=true
+}
+
+###############################################################################
# log_failure(errmsg)
# report and save failure message `errmsg'
###############################################################################
@@ -547,6 +591,7 @@ main()
cache_vars
init_log_failure
+ init_log_warning
# execute the desired command:
case "$cmd" in
all)
@@ -607,15 +652,16 @@ parse_line()
texargs="$@"
- eval lastarg=\$$#
- inifile=`echo $lastarg | sed 's%^\*%%'`
-
case "$engine" in
mpost) fmtfile="$format.mem"; kpsefmt=mp; texengine=metapost;;
mf|mfw|mf-nowin) fmtfile="$format.base"; kpsefmt=mf; texengine=metafont;;
*) fmtfile="$format.fmt"; kpsefmt=tex; texengine=$engine;;
esac
+ # remove any * for the sake of the kpsewhich lookup.
+ eval lastarg=\$$#
+ inifile=`echo $lastarg | sed 's%^\*%%'`
+
# See if we can find $inifile for return code:
kpsewhich -progname=$format -format=$kpsefmt $inifile >/dev/null 2>&1
}
@@ -705,7 +751,7 @@ run_initex()
mkdir -p "$fulldestdir"
if test -f $fmtfile; then
grep '^! ' $format.log >/dev/null 2>&1 &&
- log_failure "\`$engine -ini $tcxflag $jobswitch $prgswitch $texargs' possibly failed."
+ log_warning "\`$engine -ini $tcxflag $jobswitch $prgswitch $texargs' possibly failed."
# We don't want user-interaction for the following "mv" commands:
mv "$format.log" "$fulldestdir/$format.log" </dev/null
diff --git a/Master/bin/sparc-linux/fragmaster b/Master/bin/sparc-linux/fragmaster
new file mode 120000
index 00000000000..ca1bb398b4b
--- /dev/null
+++ b/Master/bin/sparc-linux/fragmaster
@@ -0,0 +1 @@
+../../texmf-dist/scripts/fragmaster/fragmaster.pl \ No newline at end of file
diff --git a/Master/bin/sparc-linux/gftodvi b/Master/bin/sparc-linux/gftodvi
index 6a18f1506a7..f19ff4c1a9e 100755
--- a/Master/bin/sparc-linux/gftodvi
+++ b/Master/bin/sparc-linux/gftodvi
Binary files differ
diff --git a/Master/bin/sparc-linux/gftopk b/Master/bin/sparc-linux/gftopk
index 1857797a484..9da4179b724 100755
--- a/Master/bin/sparc-linux/gftopk
+++ b/Master/bin/sparc-linux/gftopk
Binary files differ
diff --git a/Master/bin/sparc-linux/gftype b/Master/bin/sparc-linux/gftype
index 1c285979b04..81a1c22990a 100755
--- a/Master/bin/sparc-linux/gftype
+++ b/Master/bin/sparc-linux/gftype
Binary files differ
diff --git a/Master/bin/sparc-linux/gsftopk b/Master/bin/sparc-linux/gsftopk
index e80602dd78f..1ccfd211117 100755
--- a/Master/bin/sparc-linux/gsftopk
+++ b/Master/bin/sparc-linux/gsftopk
Binary files differ
diff --git a/Master/bin/sparc-linux/hbf2gf b/Master/bin/sparc-linux/hbf2gf
index deceae211d3..151ff79cdd7 100755
--- a/Master/bin/sparc-linux/hbf2gf
+++ b/Master/bin/sparc-linux/hbf2gf
Binary files differ
diff --git a/Master/bin/sparc-linux/kpseaccess b/Master/bin/sparc-linux/kpseaccess
index e431c6b1a98..847fb362fb5 100755
--- a/Master/bin/sparc-linux/kpseaccess
+++ b/Master/bin/sparc-linux/kpseaccess
Binary files differ
diff --git a/Master/bin/sparc-linux/kpsereadlink b/Master/bin/sparc-linux/kpsereadlink
index 7f9f5fc6e72..84a85846bb6 100755
--- a/Master/bin/sparc-linux/kpsereadlink
+++ b/Master/bin/sparc-linux/kpsereadlink
Binary files differ
diff --git a/Master/bin/sparc-linux/kpsestat b/Master/bin/sparc-linux/kpsestat
index 03c9be8659f..7d0a0da571d 100755
--- a/Master/bin/sparc-linux/kpsestat
+++ b/Master/bin/sparc-linux/kpsestat
Binary files differ
diff --git a/Master/bin/sparc-linux/kpsewhich b/Master/bin/sparc-linux/kpsewhich
index 048032e9285..cd52a5a5688 100755
--- a/Master/bin/sparc-linux/kpsewhich
+++ b/Master/bin/sparc-linux/kpsewhich
Binary files differ
diff --git a/Master/bin/sparc-linux/lacheck b/Master/bin/sparc-linux/lacheck
index 13dc3282b7c..fae7440f50a 100755
--- a/Master/bin/sparc-linux/lacheck
+++ b/Master/bin/sparc-linux/lacheck
Binary files differ
diff --git a/Master/bin/sparc-linux/latex2man b/Master/bin/sparc-linux/latex2man
new file mode 120000
index 00000000000..66d79f878b7
--- /dev/null
+++ b/Master/bin/sparc-linux/latex2man
@@ -0,0 +1 @@
+../../texmf-dist/scripts/latex2man/latex2man \ No newline at end of file
diff --git a/Master/bin/sparc-linux/luatangle b/Master/bin/sparc-linux/luatangle
new file mode 100755
index 00000000000..58ae39b1783
--- /dev/null
+++ b/Master/bin/sparc-linux/luatangle
Binary files differ
diff --git a/Master/bin/sparc-linux/luatex b/Master/bin/sparc-linux/luatex
index c10692d84ec..9dd7e45d79a 100755
--- a/Master/bin/sparc-linux/luatex
+++ b/Master/bin/sparc-linux/luatex
Binary files differ
diff --git a/Master/bin/sparc-linux/mag b/Master/bin/sparc-linux/mag
index 48dc3bcc5be..01f749bef97 100755
--- a/Master/bin/sparc-linux/mag
+++ b/Master/bin/sparc-linux/mag
Binary files differ
diff --git a/Master/bin/sparc-linux/makeindex b/Master/bin/sparc-linux/makeindex
index 2c0c9d3011b..0d2cb5a72db 100755
--- a/Master/bin/sparc-linux/makeindex
+++ b/Master/bin/sparc-linux/makeindex
Binary files differ
diff --git a/Master/bin/sparc-linux/makempx b/Master/bin/sparc-linux/makempx
deleted file mode 100755
index b2872bb390b..00000000000
--- a/Master/bin/sparc-linux/makempx
+++ /dev/null
Binary files differ
diff --git a/Master/bin/sparc-linux/man b/Master/bin/sparc-linux/man
new file mode 120000
index 00000000000..9616d4ec099
--- /dev/null
+++ b/Master/bin/sparc-linux/man
@@ -0,0 +1 @@
+../../texmf/doc/man \ No newline at end of file
diff --git a/Master/bin/sparc-linux/mf b/Master/bin/sparc-linux/mf
index a24efd9770d..037545ca40a 100755
--- a/Master/bin/sparc-linux/mf
+++ b/Master/bin/sparc-linux/mf
Binary files differ
diff --git a/Master/bin/sparc-linux/mf-nowin b/Master/bin/sparc-linux/mf-nowin
index ab43671a0f7..781d5c3dcf1 100755
--- a/Master/bin/sparc-linux/mf-nowin
+++ b/Master/bin/sparc-linux/mf-nowin
Binary files differ
diff --git a/Master/bin/sparc-linux/mft b/Master/bin/sparc-linux/mft
index 15f3404fa69..0ddeaed6317 100755
--- a/Master/bin/sparc-linux/mft
+++ b/Master/bin/sparc-linux/mft
Binary files differ
diff --git a/Master/bin/sparc-linux/mmafm b/Master/bin/sparc-linux/mmafm
index ce690c854e9..e3f482e358d 100755
--- a/Master/bin/sparc-linux/mmafm
+++ b/Master/bin/sparc-linux/mmafm
Binary files differ
diff --git a/Master/bin/sparc-linux/mmpfb b/Master/bin/sparc-linux/mmpfb
index 2682996f790..9d8b40406d5 100755
--- a/Master/bin/sparc-linux/mmpfb
+++ b/Master/bin/sparc-linux/mmpfb
Binary files differ
diff --git a/Master/bin/sparc-linux/mpost b/Master/bin/sparc-linux/mpost
index 0b63ddde7b9..b0449c018ba 100755
--- a/Master/bin/sparc-linux/mpost
+++ b/Master/bin/sparc-linux/mpost
Binary files differ
diff --git a/Master/bin/sparc-linux/mpto b/Master/bin/sparc-linux/mpto
deleted file mode 100755
index d8362f083b7..00000000000
--- a/Master/bin/sparc-linux/mpto
+++ /dev/null
Binary files differ
diff --git a/Master/bin/sparc-linux/musixflx b/Master/bin/sparc-linux/musixflx
index 81393f132d6..90f114d2d0a 100755
--- a/Master/bin/sparc-linux/musixflx
+++ b/Master/bin/sparc-linux/musixflx
Binary files differ
diff --git a/Master/bin/sparc-linux/newer b/Master/bin/sparc-linux/newer
deleted file mode 100755
index e9f8fb3807b..00000000000
--- a/Master/bin/sparc-linux/newer
+++ /dev/null
Binary files differ
diff --git a/Master/bin/sparc-linux/odvicopy b/Master/bin/sparc-linux/odvicopy
index 64bee33b11f..e36b18ba2b8 100755
--- a/Master/bin/sparc-linux/odvicopy
+++ b/Master/bin/sparc-linux/odvicopy
Binary files differ
diff --git a/Master/bin/sparc-linux/odvitype b/Master/bin/sparc-linux/odvitype
index 55d2f460d76..6b0b68376f6 100755
--- a/Master/bin/sparc-linux/odvitype
+++ b/Master/bin/sparc-linux/odvitype
Binary files differ
diff --git a/Master/bin/sparc-linux/omfonts b/Master/bin/sparc-linux/omfonts
index c15c5de28e8..1a3e0386510 100755
--- a/Master/bin/sparc-linux/omfonts
+++ b/Master/bin/sparc-linux/omfonts
Binary files differ
diff --git a/Master/bin/sparc-linux/otangle b/Master/bin/sparc-linux/otangle
index 3d96016a221..7c20668f235 100755
--- a/Master/bin/sparc-linux/otangle
+++ b/Master/bin/sparc-linux/otangle
Binary files differ
diff --git a/Master/bin/sparc-linux/otfinfo b/Master/bin/sparc-linux/otfinfo
index f3988126047..6a5f5191705 100755
--- a/Master/bin/sparc-linux/otfinfo
+++ b/Master/bin/sparc-linux/otfinfo
Binary files differ
diff --git a/Master/bin/sparc-linux/otftotfm b/Master/bin/sparc-linux/otftotfm
index dc7bd714c17..91677666a90 100755
--- a/Master/bin/sparc-linux/otftotfm
+++ b/Master/bin/sparc-linux/otftotfm
Binary files differ
diff --git a/Master/bin/sparc-linux/otp2ocp b/Master/bin/sparc-linux/otp2ocp
index 98dddf119d4..0e1f86398f0 100755
--- a/Master/bin/sparc-linux/otp2ocp
+++ b/Master/bin/sparc-linux/otp2ocp
Binary files differ
diff --git a/Master/bin/sparc-linux/outocp b/Master/bin/sparc-linux/outocp
index 9f15e1b98d2..b6ac0a82d51 100755
--- a/Master/bin/sparc-linux/outocp
+++ b/Master/bin/sparc-linux/outocp
Binary files differ
diff --git a/Master/bin/sparc-linux/patgen b/Master/bin/sparc-linux/patgen
index d5be2757cae..ae2d7124611 100755
--- a/Master/bin/sparc-linux/patgen
+++ b/Master/bin/sparc-linux/patgen
Binary files differ
diff --git a/Master/bin/sparc-linux/pdfclose b/Master/bin/sparc-linux/pdfclose
index 5ce2da092a4..0d5d5d148c2 100755
--- a/Master/bin/sparc-linux/pdfclose
+++ b/Master/bin/sparc-linux/pdfclose
Binary files differ
diff --git a/Master/bin/sparc-linux/pdfopen b/Master/bin/sparc-linux/pdfopen
index 4384fd52f69..c051367aa68 100755
--- a/Master/bin/sparc-linux/pdfopen
+++ b/Master/bin/sparc-linux/pdfopen
Binary files differ
diff --git a/Master/bin/sparc-linux/pdftex b/Master/bin/sparc-linux/pdftex
index 63989466762..725fcd0ae25 100755
--- a/Master/bin/sparc-linux/pdftex
+++ b/Master/bin/sparc-linux/pdftex
Binary files differ
diff --git a/Master/bin/sparc-linux/pdftosrc b/Master/bin/sparc-linux/pdftosrc
index ed745370af3..fa40c3aff64 100755
--- a/Master/bin/sparc-linux/pdftosrc
+++ b/Master/bin/sparc-linux/pdftosrc
Binary files differ
diff --git a/Master/bin/sparc-linux/pfb2pfa b/Master/bin/sparc-linux/pfb2pfa
index 15592842fb8..72f85599c5a 100755
--- a/Master/bin/sparc-linux/pfb2pfa
+++ b/Master/bin/sparc-linux/pfb2pfa
Binary files differ
diff --git a/Master/bin/sparc-linux/pk2bm b/Master/bin/sparc-linux/pk2bm
index 0324f21fb1b..2a39a5c9563 100755
--- a/Master/bin/sparc-linux/pk2bm
+++ b/Master/bin/sparc-linux/pk2bm
Binary files differ
diff --git a/Master/bin/sparc-linux/pkfix-helper b/Master/bin/sparc-linux/pkfix-helper
new file mode 120000
index 00000000000..44ef5278bd4
--- /dev/null
+++ b/Master/bin/sparc-linux/pkfix-helper
@@ -0,0 +1 @@
+../../texmf-dist/scripts/pkfix-helper/pkfix-helper \ No newline at end of file
diff --git a/Master/bin/sparc-linux/pktogf b/Master/bin/sparc-linux/pktogf
index e392f8ff376..d29155eb639 100755
--- a/Master/bin/sparc-linux/pktogf
+++ b/Master/bin/sparc-linux/pktogf
Binary files differ
diff --git a/Master/bin/sparc-linux/pktype b/Master/bin/sparc-linux/pktype
index fe4aef85a8b..12beafc4ce9 100755
--- a/Master/bin/sparc-linux/pktype
+++ b/Master/bin/sparc-linux/pktype
Binary files differ
diff --git a/Master/bin/sparc-linux/pltotf b/Master/bin/sparc-linux/pltotf
index 046e7938371..003d1a14ae8 100755
--- a/Master/bin/sparc-linux/pltotf
+++ b/Master/bin/sparc-linux/pltotf
Binary files differ
diff --git a/Master/bin/sparc-linux/pooltype b/Master/bin/sparc-linux/pooltype
index f6122f29325..9f58e283b91 100755
--- a/Master/bin/sparc-linux/pooltype
+++ b/Master/bin/sparc-linux/pooltype
Binary files differ
diff --git a/Master/bin/sparc-linux/ps2eps b/Master/bin/sparc-linux/ps2eps
new file mode 100755
index 00000000000..7092cbb0007
--- /dev/null
+++ b/Master/bin/sparc-linux/ps2eps
@@ -0,0 +1,935 @@
+#!/usr/bin/env perl
+# The expression in the previous line replaces the unix specific line
+# {#!/usr/bin/perl}.
+# ps2eps - convert PostScript to EPS (Encapsulated PostScript) files
+# -------------------------------------------------------------------
+# $Id: ps2eps,v 1.64 2007/01/24 12:32:59 bless Exp $
+# -------------------------------------------------------
+# (C)opyright 1999-2007 Roland Bless
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# Author: Roland Bless
+# Send bug reports to roland <at> bless.de
+# -------------------------------------------------------------------
+# Additional filtering is performed when Windows generated PostScript files
+# are processed. Some instructions will otherwise lead to bad output
+# if EPS-file gets embedded into other PostScript files.
+#
+# Requirements:
+# + perl
+# + gs (ghostscript supporting pbm output)
+# + bbox (a little C program [ANSI-C - should work on every platform]
+# for calculation of the actual BoundingBox)
+
+use POSIX;
+
+#use warnings;
+
+#use Getopt package
+use Getopt::Long;
+Getopt::Long::Configure("no_ignore_case");
+
+$prgname= "ps2eps";
+
+if (! -d "/usr/bin")
+{ # we assume that we are running under native windows
+ $ghostscriptname = "gswin32c";
+ $NULLDEV = "nul";
+}
+else
+{ # Unix or cygwin
+ $ghostscriptname = "gs";
+ $NULLDEV = "/dev/null 2>&1";
+}
+
+$bboxver=`bbox >$NULLDEV -V`;
+$bboxname= ($?== -1) ? "" : "bbox";
+$version= '$Id: ps2eps,v 1.64 2007/01/24 12:32:59 bless Exp $'; #'
+$insertPScode= 1; # Insert surrounding Postscript code
+$infhandle = STDIN; # Standard input is the default input file
+$outfhandle = STDOUT; # Standard output is default output if STDIN is input
+$infname= '-';
+$outfname= '-';
+$forceoverwrite=0; # do not overwrite existing files
+$ignoreBB= 0; # ignore existing Bounding Box comment
+$removeDSC= 1; # remove Adobe document structure comments
+$removeADO= 1; # remove Adobe printer Driver console Output [Page: ...]
+$ignoreEOFDSC= 0; # ignore %%EOF DSC hint
+$removePreview= 0; # remove preview
+$quiet= 0; # write progress to stdout
+$resolution= 144; # resolution for bounding box calculation is 2x72 dpi
+$trytofixps= 1; # try to fix postscript code
+$forcefixps= 0; # fix postscript code unconditionally if eq 1
+$filterorientation= 1;# filter Orientation line
+$looseBB=''; # default: tight bounding box
+$clip=0; # do not clip
+$warnings=0; # do not print warnings concerning postscript sanity
+$debuggs=0; # no debugging of ghostscript call, turn this on if you want to see the gs call
+$inch=2.54; # one inch is 2.54cm
+$fullcolors= 1; # use ppm format (24-bit full color)
+$trailerseen= 0; # Trailer comment seen?
+$PSversion="2.0"; # default Postscript Version
+$PSDSCversion="2.0"; # default Postscript DSC Version
+$translate_x= 0; # translate by x postscript points
+$translate_y= 0; # translate by y postscript points
+
+$defaultext = '(ps|prn)'; # default extension
+$defaultoutext = '.eps'; # default output extension
+$envname_size = 'PS2EPS_SIZE';
+$envname_gsbbox = 'PS2EPS_GSBBOX';
+
+$gpar="";
+$known_papersizes="11x17|ledger|legal|letter(small)?|arch[A-E]|a([0-9]|10)|isob[0-6]|b[0-5]|c[0-6]|jisb[0-6]|fls(a|e)|halfletter";
+$papersize_help="11x17,ledger,legal,letter,lettersmall,archA,archB,archC,archD,archE\
+a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,isob0,isob1,isob2,isob3,isob4,isob5,isob6,\
+b0,b1,b2,b3,b4,b5,c0,c1,c2,c3,c4,c5,c6,\
+jisb0,jisb1,jisb2,jisb3,jisb4,jisb5,jisb6,flsa,flse,halfletter\n";
+$trigger= 0;
+$notsane= 0;
+$dummy="";
+
+@ver= split(/ /,$version);
+
+# filename for temporary files
+if ($^O =~ /MSWin32/i or $^O =~ /cygwin/i)
+{
+ # it is less trouble to use the current directory if working on
+ # cygwin and nevertheless using gswin32c.
+ $tmpfname= "$prgname.$$";
+ $win=1;
+}
+elsif (defined($ENV{'TMP'}))
+{
+ $tmpdir= $ENV{'TMP'};
+ $filesep= ($tmpdir =~ /^?\:\\/) ? '\\' : '/';
+ if ($tmpdir =~ /$filesep$/)
+ { $tmpfname= $tmpdir . "$prgname.$$"; }
+ else
+ { $tmpfname= $tmpdir . "$filesep$prgname.$$"; }
+ $win=1;
+}
+else #assume we're on a UNIXBOX
+{
+ $tmpfname= "/tmp/" . "$prgname.$$";
+ $win=0;
+}
+
+
+$licensetxt= "\
+ This program is free software; you can redistribute it and/or modify\
+ it under the terms of the GNU General Public License as published by\
+ the Free Software Foundation; either version 2 of the License, or\
+ (at your option) any later version.\
+\
+ This program is distributed in the hope that it will be useful,\
+ but WITHOUT ANY WARRANTY; without even the implied warranty of\
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\
+ GNU General Public License for more details.\
+\
+ You should have received a copy of the GNU General Public License\
+ along with this program; if not, write to the Free Software\
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n";
+
+@prgidtxt= ( "$prgname - convert PostScript to EPS (Encapsulated PostScript) files\n",
+ "(C)opyright 1998-2007 Roland Bless\n\n" );
+
+@helptxt= ("Version: $ver[2]\n",
+ "Operation:\n",
+ " Without any argument, $prgname reads from standard input\n",
+ " and writes to standard output.\n",
+ " If filenames are given as arguments they are processed\n",
+ " one by one and output files are written to filenames\n",
+ " with extension '$defaultoutext'. If input filenames have the extension\n",
+ " '.ps' or '.prn', this extension is replaced with '$defaultoutext'.\n",
+ " In all other cases '$defaultoutext' is appended to the input filename.\n",
+ " Please note that PostScript files for input should contain\n",
+ " only one single page.\n\n",
+ " If BoundingBox in output seems to be wrong, please try options --size or --ignoreBB.\n\n" );
+
+@usagetxt= ("Syntax:\n",
+ " $prgname [-f] [-q] [-N] [-O] [-n] [-P] [-c] [-C] [-m] [-B] [-E] [-s <pagedim>] [-R +|-|^] [-t <x,y>] [-l] [-g] [-d] [-H] [-h|--help] [-g] [-W] [-L] [-V|--version] [--] [psfile1] [psfile2] [...]\n",
+ "Options:\n",
+ " -f, --force force overwriting existing files\n",
+ " -q, --quiet quiet operation (no output while processing files)\n",
+ " -N, --noinsert do not insert any postscript code\n",
+ " -O, --preserveorientation do not filter Orientation: header comment\n",
+ " -n, --nofix do not try to fix postscript code\n",
+ " -P, --removepreview remove preview image (smaller file, but no preview)\n",
+ " -F, --fixps fix postscript code unconditionally\n",
+ " -c, --comments preserve document structure comments\n",
+ " -C, --clip insert postscript code for clipping\n",
+ " -m, --mono use black/white bitmap as base for calculation\n",
+ " -s, --size=<pagedim> page size (a0-a10,letter,...) or in format XxY[cm|in] (default:cm), where X and Y are numbers\n",
+ " use --size=list to list pre-defined page sizes\n",
+ " -R, --rotate=<direction> rotate resulting EPS. <direction>: +=+90 (clockw.),-=-90 (counter-clockw.) ^=180 degrees\n",
+ " -t, --translate specify x,y offset (may be negative) in postscript points (1/72 dpi)\n",
+ " -r, --resolution specify dpi resolution to render with ghostscript (default 144)",
+ " -l, --loose expand the original bounding box by one point in each direction\n",
+ " -B, --ignoreBB do not use existing bounding box as page size for rendering\n",
+ " -E, --ignoreEOF do not use %%EOF as hint for end of file\n",
+ " -g, --gsbbox use internal bbox device of ghostscript\n",
+ " -H, --no-hires do not use a HiResBoundingBox\n",
+ " -h, --help help information\n",
+ " -L, --license show licensing information\n",
+ " -V, --version show version information\n",
+ " -d, --debuggs show ghostscript call\n",
+ " -W, --warnings show warnings about sanity of generated eps file\n",
+ " -- all following arguments are treated as files\n",
+ " (allows filenames starting with -)\n",
+ "\n",
+ "Arguments:\n",
+ " One or more names of PostScript files for input\n");
+
+## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+## -- argument checking --
+## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+#environment variable for papersize
+if (defined($ENV{"$envname_size"}))
+{
+ $opt_s= $ENV{"$envname_size"};
+}
+else
+{
+ $opt_s = ''; # for s-option
+}
+
+if (defined($ENV{"$envname_gsbbox"}))
+{
+ $bboxname="";
+}
+
+$opt_t = ''; # for t-option
+$opt_R = ''; # for R-option
+$opt_r = ''; # for r-option
+$stopnow = 0;
+die "Wrong option(s), please check usage with $prgname --help\n" unless
+GetOptions('f|force' => \$forceoverwrite,
+ 'q|quiet' => \$quiet,
+ 'm|mono' => sub { $fullcolors = 0 },
+ 'n|nofix' => sub { $trytofixps = 0 },
+ 'F|fixps' => \$forcefixps,
+ 'N|noinsert' => sub { $insertPScode = 0 },
+ 'O|preserveorientation' => sub { $filterorientation= 0 },
+ 'P|removepreview' => \$removePreview,
+ 'c|comments' => sub { $removeDSC = 0 },
+ 'C|clip' => \$clip,
+ 'l|loose' => sub { $looseBB = '-l' },
+ 'B|ignoreBB' => \$ignoreBB,
+ 'E|ignoreEOF'=> \$ignoreEOFDSC,
+ 's|size=s' => \$opt_s,
+ 't|translate=s' => \$opt_t,
+ 'r|resolution=s' => \$opt_r,
+ 'R|rotate=s' => \$opt_R,
+ 'g|gsbbox' => sub { $bboxname=""; },
+ 'H|nohires' => \$nohires,
+ 'h|help' => sub { $stopnow = 1; print @prgidtxt,@helptxt,@usagetxt,"\nAuthor: Roland Bless (roland\@bless.de)\n\n"; },
+ 'L|license' => sub { $stopnow = 1; print @prgidtxt,$licensetxt,"\nAuthor: Roland Bless (roland\@bless.de)\n\n"; },
+ 'd|debuggs' => \$debuggs,
+ 'W|warnings' => \$warnings,
+ 'V|version' => sub { $stopnow = 1; print @prgidtxt,"Version: $ver[2]\n"; });exit if ($stopnow);
+
+## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+## -- wildcard processing --
+## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+## internal wildcard processing for current directory,
+## only used for non UNIX-based OSs (which may lack shell wildcard expansion)
+@filenames = ();
+foreach $object (@ARGV) {
+ if ($win && $object =~ m/\*/o) # asterisk is present in filename
+ {
+ $wildcard = $object;
+ $wildcard =~ s/\./\\\./g; # replace . in pattern with \.
+ $wildcard =~ s/\*/\(\.\*\)/g; # replace * in pattern with (.*)
+ opendir(DIR,'.') || die 'Unable to open current directory, stopped'; # open current directory
+ print STDERR $wildcard;
+ @fid = grep { /$wildcard(\.$defaultext)?/i } readdir(DIR);
+ foreach (@fid) { push @filenames, $_; }
+ closedir DIR;
+ }
+ else { push @filenames, $object; }
+} # end foreach
+$filenames[0]= '-' if (scalar(@filenames) == 0); # no file arguments, use STDIN as input
+
+print STDERR "Input files: @filenames\n" if (!$quiet);
+
+if ($opt_r ne '')
+{
+ $resolution=$opt_r;
+}
+
+# papersize stuff
+if ($opt_s ne '')
+{
+ # if explicit size is given, ignore existing BoundingBox always
+ $ignoreBB = 1;
+ $pagedimension = $opt_s;
+ if ($opt_s eq "list")
+ {
+ print STDERR "Available paper sizes: $papersize_help";
+ exit 0;
+ }
+
+ #explicit format XxY[cm|in]
+ if ($pagedimension =~ /(\d*\.?\d+)x(\d*\.?\d+)/)
+ {
+ ($x_dim, $dummy, $y_dim, $unit)= split(/(x|cm|in)/,$pagedimension);
+ if ( $x_dim !~ /^\d*\.?\d+$/ )
+ { die "$x_dim in $arg is not a valid number, stopped"; }
+ if ( $y_dim !~ /^\d*\.?\d+$/ )
+ { die "$y_dim in $arg is not a valid number, stopped"; }
+
+ #print STDERR "xdim: $x_dim ydim: $y_dim unit:$unit\n" ;
+ if (!defined($unit) )
+ {
+ $unit='cm';
+ $opt_s=$opt_s . $unit;
+ }
+ if ( $unit ne 'in' ) # assume centimeters
+ { # calculate dimension in pixels (remember: resolution is in dpi)
+ $xpixels= int(($x_dim * $resolution) / $inch)+1;
+ $ypixels= int(($y_dim * $resolution) / $inch)+1;
+ $gpar= "-g${xpixels}x${ypixels}";
+ }
+ else
+ {
+ $xpixels= int($x_dim * $resolution)+1;
+ $ypixels= int($y_dim * $resolution)+1;
+ $gpar= "-g${xpixels}x${ypixels}";
+ }
+ } #endif XxY in opt_s
+ else
+ {
+ if ($opt_s =~ /$known_papersizes/)
+ {
+ $gpar="-sPAPERSIZE=$opt_s";
+ }
+ else
+ {
+ print STDERR "Error: Unknown paper size: $opt_s\n Acceptable papersizes are:$papersize_help\n";
+ exit 1;
+ }
+ }
+}
+
+#translate option
+if ($opt_t ne '')
+{
+ ($translate_x,$translate_y)= split(/\,/,$opt_t);
+}
+
+#rotate
+$rotright='-90 rotate';
+$rotleft='90 rotate';
+$rotupsidedown='180 rotate';
+$rotate='';
+if ($opt_R ne '')
+{
+ if ($opt_R eq '+') { $rotate=$rotright; }
+ elsif ($opt_R eq '-') { $rotate=$rotleft; }
+ elsif ($opt_R eq '^') { $rotate=$rotupsidedown; }
+ else { die "Wrong parameter for option -R: Valid are only +,-,^\n"; };
+}
+
+$device= $fullcolors ? "ppmraw" : "pbmraw";
+
+## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+## -- iterate over different input files --
+## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+PROCESSFILE:
+while ($infname= (shift @filenames))
+{
+ # reset filter definitions for each file
+ undef $linefilter;
+ undef $rangefilter_begin;
+ undef $rangefilter_end;
+ $fixthisps= $trytofixps;
+ $fixmsgprinted= 0;
+
+ if (!$quiet) { print STDERR "Processing: $infname\n"; }
+ unless (open($infhandle,"<$infname"))
+ { # skip over this file
+ print STDERR "$prgname: Can't open $infname: $!\n";
+ next PROCESSFILE;
+ }
+
+ # buffer input from stdin into temporary file, because it has to be read twice
+ # one time for ghostscript processing, the second time for generating output
+ if ($infname eq '-') # input is stdin
+ {
+ $tmpfhandle='';
+ open($tmpfhandle,">$tmpfname") or
+ die "Cannot open temporary file $tmpfname for writing: $!\n";
+ }
+ else # input is not stdin
+ {
+ undef $tmpfhandle;
+ #if filename ends with $defaultext usually .ps or .prn, replace the extension with $defaultoutext
+ if ($infname =~ /\.$defaultext$/i)
+ {
+ $outfname= $infname; $outfname =~ s/\.$defaultext$/$defaultoutext/i;
+ }
+ else # otherwise simply append the extension $defaultoutext
+ {
+ $outfname= $infname . "$defaultoutext";
+ }
+ if (!$forceoverwrite and -s "$outfname")
+ {
+ die "$prgname: Sorry, file named $outfname already exists,",
+ " will not overwrite it.\n",
+ " You will have to use the -f option, delete it or rename it",
+ " before running $prgname again.\n";
+ }
+ else
+ {
+ open($outfhandle,">$outfname") or die "Can't open file $outfname for writing: $!\n";
+ }
+ } #end else input is not stdin
+
+ ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ ## -- process input file --
+ ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ $linefilter= '^$'; #'# filter empty lines by default
+ while (<$infhandle>)
+ {
+ # get postscript and DSC version
+ if (/%!PS-Adobe-(\S+).*EPSF-(\S+)/)
+ {
+ $PSversion=$1;
+ $PSDSCversion=$2;
+ if (! ($PSversion =~ /\d+\.\d+/))
+ {
+ $PSDSCversion="2.0";
+ }
+ if (! ($PSDSCversion =~ /\d+\.\d+/))
+ {
+ $PSDSCversion="2.0";
+ }
+ }
+
+ # check for existing BoundingBox parameters
+ if ( /^%%\s*BoundingBox:\s*(.*)/ && !defined($eBBllx) )
+ {
+ $BBarg= $1;
+ # accept even negative and fractional BBs
+ if ( $BBarg =~ /(\-?\d+\.?\d*\s+){3,}\d+/ ) # ignore %% BoundingBox: (atend) comments
+ {
+ ($eBBllx,$eBBlly,$eBBurx,$eBBury,$dummy)= split /\s/,$BBarg;
+ #print STDERR "Existing BB: $eBBllx,$eBBlly,$eBBurx,$eBBury\n";
+ if (int($eBBllx) < 0) { $translate_x= - int($eBBllx-0.5); }
+ if (int($eBBlly) < 0) { $translate_y= - int($eBBlly-0.5); }
+
+ $xpixels= int((($eBBurx-$eBBllx) * $resolution)/72)+1;
+ $ypixels= int((($eBBury-$eBBlly) * $resolution)/72)+1;
+ if (!$ignoreBB)
+ {
+ $gpar= "-g${xpixels}x${ypixels}";
+ # check for meaningful values
+ if (($xpixels <= 1) || ($ypixels <= 1))
+ {
+ $gpar=""; undef $eBBllx; undef $eBBlly;
+ }
+ else
+ {
+ if (!$quiet)
+ {
+ print STDERR "Rendering with existing $_";
+ if (int($eBBllx) < 0 || int($eBBlly) < 0)
+ {
+ print STDERR "WARNING: existing Bounding Box shows negative values - shifting\n";
+ }
+ }
+ }
+ } #endif !$ignoreBB
+ } #endif $BBarg =~
+ }
+
+
+ if ($fixthisps) # try to fix bad postscript code
+ {
+ # check for Windows 3.x output
+ if ( /^Win.*Dict/ )
+ {
+ if (!$quiet && !$fixmsgprinted)
+ { print STDERR "Windows 3.5 generated Postscript file detected, fixing\n"; }
+ $linefilter= '^(EJ|RS)';
+ $rangefilter_begin= '^statusdict';
+ $rangefilter_end= 'cvx\ settransfer$'; #'
+ $fixmsgprinted= 1; # stop printing message
+ }
+ else
+ {
+ if ( /^%%Creator:\s*Wind.U\s*Xprinter/ )
+ {
+ if (!$quiet && !$fixmsgprinted)
+ { print STDERR "Star/OpenOffice generated Postscript file detected, fixing\n"; }
+ $linefilter= '^rs';
+ $fixmsgprinted= 1; # stop printing message
+ }
+ else
+ {
+ if ( $forcefixps ||
+ /^\/NTPS/ ||
+ /Creator:\s*(AdobePS|Pscript|.*Windows)/i ) #check for NT generated output
+ {
+ if (!$quiet && !$fixmsgprinted)
+ {
+ if ($forcefixps)
+ {
+ print STDERR "Postscript filtering requested, fixing\n";
+ }
+ else
+ {
+ print STDERR "Windows generated Postscript file detected, fixing\n";
+ }
+ }
+ $rangefilter_begin= '^((\[\{)|(featurebegin\{))$'; #'
+ $rangefilter_end= '^(\} stopped cleartomark|\}featurecleanup)';
+ $exclude_rangefilter_begin= '^(?i)%%BeginNonPPDFeature'; #'
+ $exclude_rangefilter_end= '^(?i)%%EndNonPPDFeature';
+ #$triggered_rangefilter_begin= ''; #'
+ #$triggered_rangefilter_end= ''; #'
+ $fixsearchpat='(^|\s)(initmatrix|initclip|initgraphics)(\s|$)';
+ $fixreplacepat=' ';
+ $fixmsgprinted= 1; # stop printing message
+ } # end if NTPS
+ } #end else
+ }
+ } #end if trytofixps
+
+ if (defined($tmpfhandle))
+ {
+ print $tmpfhandle $_ or die "$prgname: Failure during writing to temporary file $tmpfname";
+ }
+
+ if (/^%%EOF\s*$/)
+ {
+ $totalEOFDSC++
+ }
+ } #end while <$infhandle>
+
+ if (defined($tmpfhandle))
+ {
+ close($tmpfhandle);
+ }
+ else
+ {
+ $tmpfhandle= $infhandle;
+ $tmpfname= $infname;
+ }
+
+ ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ ## -- calculate the bounding box --
+ ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ if ($translate_x!=0 || $translate_y!=0)
+ {
+ $translation="$translate_x $translate_y translate";
+ $translatecmd="-c $translation";
+ }
+ else
+ {
+ $translation="";
+ $translatecmd="";
+ }
+
+ if (!$quiet)
+ {
+ print STDERR "Calculating Bounding Box...";
+ if ($opt_s)
+ {
+ print STDERR "using page size $opt_s...";
+ }
+ }
+
+ $rotatecmd='';
+ if ($rotate ne '')
+ {
+ $rotatecmd="-c \"$rotate\""
+ }
+ if ($bboxname ne '')
+ {
+ $cmdline="$ghostscriptname -dSAFER -dNOPAUSE -q $gpar -r$resolution -sDEVICE=$device -sOutputFile=- $translatecmd -f $tmpfname -c showpage -c quit | $bboxname -r $resolution";
+ }
+ else
+ {
+ if (!$quiet) {
+ print STDERR "...using bbox device of $ghostscriptname...";
+ }
+ $cmdline = "$ghostscriptname -dSAFER -dBATCH -dNOPAUSE -q $gpar -r$resolution -sDEVICE=bbox -sOutputFile=- -c \"/setpagedevice {pop} def\" $translatecmd -f $tmpfname -c quit 2>&1";
+ }
+
+ if ($debuggs) { print STDERR "\nCalling: $cmdline\n"; }
+
+ # actual ghostscript call
+ $boundingbox=`$cmdline`;
+ if ($debuggs) { print STDERR "Call result: $boundingbox"; }
+
+ # check result of gs call
+ if ($boundingbox !~ /^%%BoundingBox/m)
+ {
+ print STDERR "Error: Could not determine bounding box!\n",
+ "I suppose $ghostscriptname had some trouble interpreting the postscript-file\n";
+ }
+
+ $boundingbox =~ /^%%HiResBoundingBox:\s*(.*)/m;
+ if (defined($1)) # HiResBoundingBox given
+ {
+ ($hcBBllx,$hcBBlly,$hcBBurx,$hcBBury,$dummy)= split(/\s/,$1);
+ $hiresboundingbox="%%HiResBoundingBox: $hcBBllx $hcBBlly $hcBBurx $hcBBury\n";
+ $cBBllx = floor($hcBBllx);
+ $cBBlly = floor($hcBBlly);
+ $cBBurx = ceil($hcBBurx);
+ $cBBury = ceil($hcBBury);
+ }
+ else
+ { #use normal BoundingBox
+ $boundingbox =~ /^%%.*BoundingBox:\s*(.*)/;
+ ($cBBllx,$cBBlly,$cBBurx,$cBBury,$dummy)= split(/\s/,$1);
+ }
+ # if loose BB should be performed by ps2eps
+ # apply changes to resulting bounding box if needed
+ if ($looseBB ne '')
+ {
+ if ($cBBllx > 0) { $cBBllx--; }
+ if ($cBBlly > 0) { $cBBlly--; }
+ $cBBurx++; $cBBury++;
+ }
+ # extend clipping box by 1 point
+ if ($clip)
+ {
+ if ($cBBllx > 0) { $cBBllx--; }
+ if ($cBBlly > 0) { $cBBlly--; }
+ $cBBurx++; $cBBury++;
+ }
+ if ($cBBllx < 0 || $cBBlly < 0)
+ {
+ if (!$quiet)
+ {
+ print STDERR "WARNING! Your drawing had a negative Bounding Box which is deprecated and may cause problems!. I'll shift it.\n";
+ }
+ $translate_x= -int($cBBllx);
+ $translate_y= -int($cBBlly);
+ $cBBllx=0;
+ $cBBurx= $cBBurx + $translate_x;
+ $cBBlly=0;
+ $cBBury= $cBBury + $translate_y;
+
+ $hcBBurx= $hcBBurx + $hcBBllx;
+ $hcBBury= $hcBBury + $hcBBlly;
+ $hcBBllx= 0;
+ $hcBBlly= 0;
+
+ $hiresboundingbox="%%HiResBoundingBox: $hcBBllx $hcBBlly $hcBBurx $hcBBury\n";
+
+ $translation="$translate_x $translate_y translate";
+ $translatecmd="-c \'$translation\'";
+ }
+ $boundingbox = "%%BoundingBox: $cBBllx $cBBlly $cBBurx $cBBury\n";
+
+ if (!$quiet) { print STDERR "ready. $boundingbox" };
+
+ $before_startps= 1;
+ $inserted_prolog= 0;
+ $prolog_passed= 0;
+
+ ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ ## -- Create output file --
+ ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ if (!$quiet) { print STDERR "Creating output file $outfname..."; }
+
+ open($tmpfhandle,"<$tmpfname") or die "Cannot open file $tmpfname for reading";
+ CREATEOUTPUT:
+ while (<$tmpfhandle>)
+ {
+ # check whether we are in a binary section
+
+ $binarysection=(/^(%%BeginBinary)|(beginimage)\r?\n?$/ ... /^(%%EndBinary)|^(endimage)/) ||
+ (/^(doNimage)|(doclutimage)\r?\n?$/ ... /(^|~> )Z\r?\n?$/) || # Pscript_Win_Dib_L2 5.0 0
+ (/^beginjpeg / ... /~> endjpeg\r?\n?$/) || # Pscript_Win_Dib_L2 5.0 0
+ (/^pdfIm/ ... /^%-EOD-/);
+
+ if ( !$binarysection )
+ {
+ s/\r?\n?$//; # remove CR and/or LF at end of line if not in binary section
+ }
+
+ # check where magic Postscript header starts - skip leading binary stuff, e.g., HP PCL/PJL code
+ if ($before_startps)
+ {
+ if ( /%!/ ) # This is usually the smallest magic sequence
+ { # Note: Adobe Photoshop generated a binary heading, so ^ is not applicable
+ # %! may be part of a binary sequence, but then control characters follow
+ # so skip %! if non alphanumeric characters follow
+ if ( ! /%!.*[^\w]{2,}/ )
+ {
+ # some heading without two control characters found
+ $before_startps= 0;
+ if (! /%!PS-Adobe.*/i) # some strange programs use other magics
+ {
+ print STDERR "** Warning **: Weird heading line -- ",$_," -- ";
+ }
+ }
+ }
+ next CREATEOUTPUT;
+ }
+ else # we are hopefully in regular postscript code now
+ {
+ # count %%EOFs as we want to know when we got the last EOF
+ if ( /^%%EOF\s*$/ )
+ {
+ $seenEOF++;
+ }
+
+ # We should insert our own prologue including the newly calculated BoundingBox
+ if (! $inserted_prolog)
+ {
+ print $outfhandle "%!PS-Adobe-$PSversion EPSF-$PSDSCversion\n";
+ # check if we need to rotate
+ $transrotcmd='';
+ if ($rotatecmd)
+ {
+ if ($rotate eq $rotright)
+ {
+ $transrotcmd="-$cBBlly $cBBurx translate";
+ $boundingbox='%%BoundingBox: 0 0 ' . ($cBBury-$cBBlly) . ' ' . ($cBBurx-$cBBllx) . "\n";
+ if ($hiresboundingbox ne "")
+ {
+ $hiresboundingbox='%%HiResBoundingBox: 0 0 ' . ($hcBBury-$hcBBlly) . ' ' . ($hcBBurx-$hcBBllx) . "\n";
+ }
+
+ }
+ elsif ($rotate eq $rotleft)
+ {
+ $transrotcmd="$cBBury -$cBBllx translate";
+ $boundingbox='%%BoundingBox: 0 0 ' . ($cBBury-$cBBlly) . ' ' . ($cBBurx-$cBBllx) . "\n";
+ if ($hiresboundingbox ne "")
+ {
+ $hiresboundingbox= '%%HiResBoundingBox: 0 0 ' . ($hcBBury-$hcBBlly) . ' ' . ($hcBBurx-$hcBBllx) . "\n";
+ }
+ }
+ elsif ($rotate eq $rotupsidedown)
+ {
+ $transrotcmd="$cBBurx $cBBury translate";
+ $boundingbox='%%BoundingBox: 0 0 ' . ($cBBurx-$cBBllx) . ' ' . ($cBBury-$cBBlly) . "\n";
+ if ($hiresboundingbox ne "")
+ {
+ $hiresboundingbox='%%HiResBoundingBox: 0 0 ' . ($hcBBurx-$hcBBllx) . ' ' . ($hcBBury-$hcBBlly) . "\n";
+ }
+ }
+ }
+ print $outfhandle $boundingbox;
+ if (!defined($hiresboundingbox))
+ {
+ $nohires=1;
+ }
+ if (defined($hiresboundingbox) && !defined($nohires)) { print $outfhandle $hiresboundingbox; }
+ $inserted_prolog= 1;
+ redo CREATEOUTPUT;
+ }
+ else # already inserted_prolog
+ {
+ if (! $prolog_passed)
+ {
+ #ignore the following lines in the prologue
+ if ( /^%%(HiRes)?BoundingBox/ ||
+ /^%%Pages/ ||
+ /^%%BeginProlog/ ||
+ /^%%EndProlog/ ||
+ ($filterorientation && /^%%Orientation/) ||
+ ($removeDSC && /^%%.*: \(atend\)/) ||
+ ($removePreview && (/^%%BeginPreview/ ... /^%%EndPreview/)) )
+ {
+ next CREATEOUTPUT;
+ }
+ else
+ {
+ if ( /^[^%].*/ ||
+ /^%%EndComments/ ) # line is not a comment
+ {
+ #output postscript code for proper EPS file
+ if ($insertPScode)
+ {
+ print $outfhandle "%%EndComments\n",
+ "% EPSF created by ps2eps $ver[2]\n",
+ "%%BeginProlog\n";
+ }
+ # Insert own postscript code for clipping
+ if ($clip)
+ {
+ if (!defined($nohires))
+ {
+ printf $outfhandle "newpath %f %f moveto %f %f lineto %f %f lineto %f %f lineto closepath clip\n",$hcBBllx-0.1,$hcBBlly-0.1,$hcBBurx+0.1,$hcBBlly-0.1,$hcBBurx+0.1,$hcBBury+0.1,$hcBBllx-0.1,$hcBBury+0.1;
+ }
+ else
+ {
+ printf $outfhandle "newpath %d %d moveto %d %d lineto %d %d lineto %d %d lineto closepath clip\n",$cBBllx,$cBBlly,$cBBurx,$cBBlly,$cBBurx,$cBBury,$cBBllx,$cBBury;
+ }
+ } #endif clip
+
+ if ($rotate ne '')
+ {
+ print $outfhandle "$transrotcmd\n";
+ print $outfhandle "$rotate\n";
+ }
+ if ($translation ne '')
+ {
+ print $outfhandle "$translation\n";
+ }
+
+ #insert surrounding postscript code
+ if ($insertPScode)
+ {
+ print $outfhandle "save\n",
+ "countdictstack\n",
+ "mark\n",
+ "newpath\n",
+ "/showpage {} def\n",
+ "/setpagedevice {pop} def\n",
+ "%%EndProlog\n",
+ "%%Page 1 1\n";
+ }
+ $prolog_passed= 1;
+ if (/^%%EndComments/) { next CREATEOUTPUT; }
+ } #endif line is not a comment
+ } #end else
+ } #endif (we are in the prologue section)
+ else #we are in the main part of postscript file
+ {
+ #end of postscript file reached?
+ #Usually the DSC %%EOF signifies the end
+ if ( eof($tmpfhandle) ||
+ ($ignoreEOFDSC == 0 && /^%%EOF\s*$/ && $seenEOF == $totalEOFDSC)
+ || ( $trailerseen && /^II\*\000.*/ )
+ )
+ {
+ #do not forget to print last line if not terminated by LF
+ if ( eof($tmpfhandle) && !/^$/ && !/^%%EOF\s*$/ ) # do not insert %%EOF twice
+ {
+ print $outfhandle $_,"\n";
+ }
+ #add appropriate trailer
+ if ($insertPScode)
+ {
+ print $outfhandle "%%Trailer\n",
+ "cleartomark\n",
+ "countdictstack\n",
+ "exch sub { end } repeat\n",
+ "restore\n",
+ "%%EOF\n";
+ }
+ last CREATEOUTPUT;
+ } # stop output
+
+ # Trailer comment seen?
+ if ( /^%%Trailer\s*$/ )
+ {
+ $trailerseen=1;
+ }
+ else
+ {
+ if (!/^\s*$/) #non empty lines follow
+ {
+ $trailerseen=0;
+ }
+ }
+
+ # check for trigger
+ if (defined($triggerstring) && /^$triggerstring$/)
+ {
+ $trigger= 1;
+ };
+
+ # remove complete lines if one of the expression matches
+ if ( !$binarysection # only when not in binary section
+ &&
+ (
+ ($removePreview && (/^%%BeginPreview/ ... /^%%EndPreview/))
+ || # no preview
+ (defined($rangefilter_begin) &&
+ (/$rangefilter_begin/ ... /$rangefilter_end/) &&
+ (!(/$exclude_rangefilter_begin/ ... /$exclude_rangefilter_end/))
+ )
+ ||
+ (defined($triggered_rangefilter_begin) && defined($triggered_rangefilter_end) &&
+ $trigger &&
+ (/$triggered_rangefilter_begin/ ... /$triggered_rangefilter_end/)
+ )
+ ||
+ /$linefilter/ # lines by linefilter
+ ||
+ ($removeDSC && (/^%( |!)(\w )+/ || /^%%([A-Za-z]+\s)/)) # any type of structured comment
+ ||
+ ($removeADO &&
+ (/^statusdict begin.*ProductName.*print product print.*flush end\r?\n?$/ ||
+ /^\(%%\[\s*(Page:.*|LastPage)\s*\]%%\)\s*=\s*\w*\s*\r?\n?/ ))
+ ||
+ /^$/ # empty lines
+ )
+ )
+ {
+ next CREATEOUTPUT;
+ }
+
+ # replacement
+ if ( defined($fixsearchpat) )
+ {
+ #if (/$fixsearchpat/) { print STDERR "**filter** before:",$_,"\n"; }
+ #if (s/$fixsearchpat/$fixreplacepat/) { print STDERR "**filter** after:",$_,"\n";}
+ s/$fixsearchpat/$fixreplacepat/;
+ }
+
+ # sanity check for potential dangerous commands
+ if ( /(^|\s)(clear|erasepage|initmatrix|initclip|initgraphics|startjob|cleardictstack|setmatrix|setpagedevice|copypage|grestoreall|exitserver|quit)(\s|$)/ )
+ {
+ $notsane= 1;
+ #print STDERR "Warning: dangerous command in line: ",$_,"\n";
+ }
+ } # end else (this is main part)
+
+ # Output the postscript line to result file
+ print $outfhandle $_;
+
+ if (!$binarysection)
+ {
+ print $outfhandle "\n"; # terminate line with LF
+ }
+ } # end else prolog_passed
+ } # end else inserted_prolog
+ } # end while CREATEOUTPUT
+
+ close($tmpfhandle);
+
+ if ($tmpfname ne $infname) { unlink "$tmpfname"; } #remove temporary file
+
+ close ($outfhandle);
+
+ # print warning if magic sequence not found
+ if ( $before_startps )
+ {
+ print STDERR "\n ** Error!! **: could not identify begin of postscript code in file $infname, please check header line!\n First line should start with %!. No output generated.\n";
+ }
+
+ if (!$quiet) { print STDERR "ready.\n"; }
+ if ($warnings and $notsane and !$quiet)
+ {
+ print STDERR "** Warning **: EPS-output for $infname is not sane, at least one\n",
+ "of the following commands was still present:\n",
+ "clear erasepage initmatrix initclip initgraphics startjob\n",
+ "cleardictstack setmatrix setpagedevice copypage grestoreall\n",
+ "exitserver quit\n";
+ }
+} #end while PROCESSFILE
+
+# ---- end of perl-script -------
diff --git a/Master/bin/sparc-linux/ps2pk b/Master/bin/sparc-linux/ps2pk
index 0812960e558..388856d0cbd 100755
--- a/Master/bin/sparc-linux/ps2pk
+++ b/Master/bin/sparc-linux/ps2pk
Binary files differ
diff --git a/Master/bin/sparc-linux/psbook b/Master/bin/sparc-linux/psbook
index 33f08e3b569..1e85dfcdeeb 100755
--- a/Master/bin/sparc-linux/psbook
+++ b/Master/bin/sparc-linux/psbook
Binary files differ
diff --git a/Master/bin/sparc-linux/psnup b/Master/bin/sparc-linux/psnup
index 3364f8601a5..4c9a7e4bd70 100755
--- a/Master/bin/sparc-linux/psnup
+++ b/Master/bin/sparc-linux/psnup
Binary files differ
diff --git a/Master/bin/sparc-linux/psresize b/Master/bin/sparc-linux/psresize
index b5dae1f5831..1c243b53358 100755
--- a/Master/bin/sparc-linux/psresize
+++ b/Master/bin/sparc-linux/psresize
Binary files differ
diff --git a/Master/bin/sparc-linux/psselect b/Master/bin/sparc-linux/psselect
index dc67fb63fbd..c0788a16a30 100755
--- a/Master/bin/sparc-linux/psselect
+++ b/Master/bin/sparc-linux/psselect
Binary files differ
diff --git a/Master/bin/sparc-linux/pstops b/Master/bin/sparc-linux/pstops
index 642bd8cb0a4..6f8615220f4 100755
--- a/Master/bin/sparc-linux/pstops
+++ b/Master/bin/sparc-linux/pstops
Binary files differ
diff --git a/Master/bin/sparc-linux/purifyeps b/Master/bin/sparc-linux/purifyeps
new file mode 120000
index 00000000000..d6919b530ed
--- /dev/null
+++ b/Master/bin/sparc-linux/purifyeps
@@ -0,0 +1 @@
+../../texmf-dist/scripts/purifyeps/purifyeps \ No newline at end of file
diff --git a/Master/bin/sparc-linux/sjisconv b/Master/bin/sparc-linux/sjisconv
index b5e77626d14..34c5b582606 100755
--- a/Master/bin/sparc-linux/sjisconv
+++ b/Master/bin/sparc-linux/sjisconv
Binary files differ
diff --git a/Master/bin/sparc-linux/svn-multi b/Master/bin/sparc-linux/svn-multi
new file mode 120000
index 00000000000..9f3e6f9d9b7
--- /dev/null
+++ b/Master/bin/sparc-linux/svn-multi
@@ -0,0 +1 @@
+../../texmf-dist/scripts/svn-multi/svn-multi.pl \ No newline at end of file
diff --git a/Master/bin/sparc-linux/synctex b/Master/bin/sparc-linux/synctex
index a0283b29a4b..8daf40cfe6c 100755
--- a/Master/bin/sparc-linux/synctex
+++ b/Master/bin/sparc-linux/synctex
Binary files differ
diff --git a/Master/bin/sparc-linux/t1ascii b/Master/bin/sparc-linux/t1ascii
index d3ce125f5d8..81f672fac25 100755
--- a/Master/bin/sparc-linux/t1ascii
+++ b/Master/bin/sparc-linux/t1ascii
Binary files differ
diff --git a/Master/bin/sparc-linux/t1asm b/Master/bin/sparc-linux/t1asm
index 79164c27a9d..e98552183f3 100755
--- a/Master/bin/sparc-linux/t1asm
+++ b/Master/bin/sparc-linux/t1asm
Binary files differ
diff --git a/Master/bin/sparc-linux/t1binary b/Master/bin/sparc-linux/t1binary
index d412dee5d29..802a04cb7c8 100755
--- a/Master/bin/sparc-linux/t1binary
+++ b/Master/bin/sparc-linux/t1binary
Binary files differ
diff --git a/Master/bin/sparc-linux/t1disasm b/Master/bin/sparc-linux/t1disasm
index 529731d0518..dea16b47bd5 100755
--- a/Master/bin/sparc-linux/t1disasm
+++ b/Master/bin/sparc-linux/t1disasm
Binary files differ
diff --git a/Master/bin/sparc-linux/t1dotlessj b/Master/bin/sparc-linux/t1dotlessj
index 9bbd6b129d0..d2df40868c9 100755
--- a/Master/bin/sparc-linux/t1dotlessj
+++ b/Master/bin/sparc-linux/t1dotlessj
Binary files differ
diff --git a/Master/bin/sparc-linux/t1lint b/Master/bin/sparc-linux/t1lint
index 9c3e801769d..a11b86013b1 100755
--- a/Master/bin/sparc-linux/t1lint
+++ b/Master/bin/sparc-linux/t1lint
Binary files differ
diff --git a/Master/bin/sparc-linux/t1mac b/Master/bin/sparc-linux/t1mac
index 5941a20329d..a3c60406945 100755
--- a/Master/bin/sparc-linux/t1mac
+++ b/Master/bin/sparc-linux/t1mac
Binary files differ
diff --git a/Master/bin/sparc-linux/t1rawafm b/Master/bin/sparc-linux/t1rawafm
new file mode 100755
index 00000000000..c84efe4ac14
--- /dev/null
+++ b/Master/bin/sparc-linux/t1rawafm
Binary files differ
diff --git a/Master/bin/sparc-linux/t1reencode b/Master/bin/sparc-linux/t1reencode
index 15fecfdef12..83f510dfbc9 100755
--- a/Master/bin/sparc-linux/t1reencode
+++ b/Master/bin/sparc-linux/t1reencode
Binary files differ
diff --git a/Master/bin/sparc-linux/t1testpage b/Master/bin/sparc-linux/t1testpage
index 7346c5dec8b..a5b4e3e6d81 100755
--- a/Master/bin/sparc-linux/t1testpage
+++ b/Master/bin/sparc-linux/t1testpage
Binary files differ
diff --git a/Master/bin/sparc-linux/t1unmac b/Master/bin/sparc-linux/t1unmac
index 437e5bcc8ed..852d427fb07 100755
--- a/Master/bin/sparc-linux/t1unmac
+++ b/Master/bin/sparc-linux/t1unmac
Binary files differ
diff --git a/Master/bin/sparc-linux/t4ht b/Master/bin/sparc-linux/t4ht
index 1a4e806108d..e47be9c4a9b 100755
--- a/Master/bin/sparc-linux/t4ht
+++ b/Master/bin/sparc-linux/t4ht
Binary files differ
diff --git a/Master/bin/sparc-linux/tangle b/Master/bin/sparc-linux/tangle
index e64c8821239..ef05da22e77 100755
--- a/Master/bin/sparc-linux/tangle
+++ b/Master/bin/sparc-linux/tangle
Binary files differ
diff --git a/Master/bin/sparc-linux/tcdialog b/Master/bin/sparc-linux/tcdialog
index c8a5029a96d..bd789b17f34 100755
--- a/Master/bin/sparc-linux/tcdialog
+++ b/Master/bin/sparc-linux/tcdialog
Binary files differ
diff --git a/Master/bin/sparc-linux/teckit_compile b/Master/bin/sparc-linux/teckit_compile
new file mode 100755
index 00000000000..771f0e718ea
--- /dev/null
+++ b/Master/bin/sparc-linux/teckit_compile
Binary files differ
diff --git a/Master/bin/sparc-linux/tex b/Master/bin/sparc-linux/tex
index 69f39c36cce..b99868bb650 100755
--- a/Master/bin/sparc-linux/tex
+++ b/Master/bin/sparc-linux/tex
Binary files differ
diff --git a/Master/bin/sparc-linux/tex2xindy b/Master/bin/sparc-linux/tex2xindy
deleted file mode 100755
index bf0af575fb2..00000000000
--- a/Master/bin/sparc-linux/tex2xindy
+++ /dev/null
Binary files differ
diff --git a/Master/bin/sparc-linux/tex4ht b/Master/bin/sparc-linux/tex4ht
index 15df608a5d2..fd4c8012c97 100755
--- a/Master/bin/sparc-linux/tex4ht
+++ b/Master/bin/sparc-linux/tex4ht
Binary files differ
diff --git a/Master/bin/sparc-linux/texindy b/Master/bin/sparc-linux/texindy
deleted file mode 120000
index e9a29f8828c..00000000000
--- a/Master/bin/sparc-linux/texindy
+++ /dev/null
@@ -1 +0,0 @@
-../../texmf/scripts/xindy/texindy.pl \ No newline at end of file
diff --git a/Master/bin/sparc-linux/texlinks b/Master/bin/sparc-linux/texlinks
index d8e51550924..c77ceea60c0 100755
--- a/Master/bin/sparc-linux/texlinks
+++ b/Master/bin/sparc-linux/texlinks
@@ -1,4 +1,5 @@
#!/bin/sh
+# $Id: texlinks 13904 2009-06-23 00:47:00Z karl $
# Thomas Esser, 1999, 2002, 2003. public domain.
@@ -38,24 +39,26 @@ export PATH
# hack around a bug in zsh:
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
-cnf=fmtutil.cnf # name of the config file
-version=20080528.1847 # utc timestamp
+version=20090623.0228
progname=texlinks
+cnf=fmtutil.cnf # name of the config file
usage='Usage: texlinks [OPTION]... [DIRECTORY]...
Create symbolic links format -> engine according to fmtutil setup.
Mandatory arguments to long options are mandatory for short options too.
- -h, --help show this help text
- --version show version string
+ -e, --exeext EXT append EXT to symlink targets (default: none)
-f, --cnffile FILE use FILE as config file (default: fmtutil.cnf)
- -v, --verbose enable verbose messages (default: off)
-m, --multiplatform operate in all platform specific directories
(default: operate only in directory for this platform)
- -s, --silent silently skip existing scripts / binaries
+ -q, --quiet silently skip existing scripts / binaries
(default: issue warning)
+ -s, --silent same as -q
-u, --unlink remove symlinks created by texlinks
+ -v, --verbose enable verbose messages (default: off)
+ -h, --help show this help text
+ --version show version string
The DIRECTORY arguments are an optional list of directories in which to
operate. If no directories are specified and --multiplatform is
@@ -125,7 +128,8 @@ check_for_binary()
###############################################################################
# install_link(dest src)
# create a symlink like ln -s dest src, but make sure that src is not
-# an existing binary
+# an existing binary, possibly adding the executable extension if
+# passed on the command.
###############################################################################
install_link()
{
@@ -148,6 +152,9 @@ install_link()
;;
esac
+ # append .exe if supplied (for cygwin).
+ test -n "$exeext" && dest="$dest$exeext"
+
case $src in
*/cont-??|*/mptopdf)
# context includes wrapper scripts that create/run these.
@@ -155,7 +162,7 @@ install_link()
;;
*)
test "x$src" != "x`(ls -ld $src | awk '{print $NF}') 2>/dev/null`" &&
- verbose_do rm -f "$src"
+ rm -f "$src"
if test -f "$src"; then
case $silent in
@@ -235,6 +242,7 @@ main()
dirs=
needsCleanup=false
+ exeext=
multiplatform=false
verbose=false
unlink=false
@@ -247,13 +255,14 @@ main()
--h*|-h)
echo "$usage"; exit 0;;
--version)
- echo "$progname version $version."; exit 0;;
+ echo "$progname version $version"; exit 0;;
--cnffile|-f)
shift; cnf_file=$1;;
- --v*|-v) verbose=true;;
- --s*|-s) silent=true;;
+ --e*|-e) shift; exeext=$1;;
--m*|-m) multiplatform=true;;
+ --s*|-s|--q*|-q) silent=true;;
--u*|-u) unlink=true;;
+ --v*|-v) verbose=true;;
-*) errmsg "fmtutil: unknown option \`$1' ignored.";;
*) break;;
esac
diff --git a/Master/bin/sparc-linux/texloganalyser b/Master/bin/sparc-linux/texloganalyser
new file mode 120000
index 00000000000..a0dd3486cd7
--- /dev/null
+++ b/Master/bin/sparc-linux/texloganalyser
@@ -0,0 +1 @@
+../../texmf-dist/scripts/texloganalyser/texloganalyser \ No newline at end of file
diff --git a/Master/bin/sparc-linux/tftopl b/Master/bin/sparc-linux/tftopl
index 363ec15608d..06a637ba00f 100755
--- a/Master/bin/sparc-linux/tftopl
+++ b/Master/bin/sparc-linux/tftopl
Binary files differ
diff --git a/Master/bin/sparc-linux/tie b/Master/bin/sparc-linux/tie
index bcfd6cdac6f..10def9cc1c8 100755
--- a/Master/bin/sparc-linux/tie
+++ b/Master/bin/sparc-linux/tie
Binary files differ
diff --git a/Master/bin/sparc-linux/ttf2afm b/Master/bin/sparc-linux/ttf2afm
index c6071f97e8e..99db980f07f 100755
--- a/Master/bin/sparc-linux/ttf2afm
+++ b/Master/bin/sparc-linux/ttf2afm
Binary files differ
diff --git a/Master/bin/sparc-linux/ttf2pk b/Master/bin/sparc-linux/ttf2pk
index a2ef60cdd6c..5768f45f249 100755
--- a/Master/bin/sparc-linux/ttf2pk
+++ b/Master/bin/sparc-linux/ttf2pk
Binary files differ
diff --git a/Master/bin/sparc-linux/ttf2tfm b/Master/bin/sparc-linux/ttf2tfm
index 58f46619260..a51a45a08dd 100755
--- a/Master/bin/sparc-linux/ttf2tfm
+++ b/Master/bin/sparc-linux/ttf2tfm
Binary files differ
diff --git a/Master/bin/sparc-linux/ttfdump b/Master/bin/sparc-linux/ttfdump
new file mode 100755
index 00000000000..1e9d0958f2d
--- /dev/null
+++ b/Master/bin/sparc-linux/ttfdump
Binary files differ
diff --git a/Master/bin/sparc-linux/ttftotype42 b/Master/bin/sparc-linux/ttftotype42
index 7b04ef12284..e4046d38595 100755
--- a/Master/bin/sparc-linux/ttftotype42
+++ b/Master/bin/sparc-linux/ttftotype42
Binary files differ
diff --git a/Master/bin/sparc-linux/ulqda b/Master/bin/sparc-linux/ulqda
new file mode 120000
index 00000000000..8ca9386b37d
--- /dev/null
+++ b/Master/bin/sparc-linux/ulqda
@@ -0,0 +1 @@
+../../texmf-dist/scripts/ulqda/ulqda.pl \ No newline at end of file
diff --git a/Master/bin/sparc-linux/updmap b/Master/bin/sparc-linux/updmap
index e09c817451b..a71378a01bc 100755
--- a/Master/bin/sparc-linux/updmap
+++ b/Master/bin/sparc-linux/updmap
@@ -774,7 +774,7 @@ cleanup()
{
rc=$1
$needsCleanup && test -n "$tmpdir" && test -d "$tmpdir" \
- && { cd / && rm -rf "$tmpdir"; }
+ && { cd $orig_pwd && rm -rf "$tmpdir"; }
(exit $rc); exit $rc
}
@@ -1323,6 +1323,7 @@ main()
link_cmd="ln -s"
copy_cmd="cp"
copy=false
+ orig_pwd=`pwd`
cfgparam=
outputdirparam=
diff --git a/Master/bin/sparc-linux/vftovp b/Master/bin/sparc-linux/vftovp
index 9d19d2a2b5a..7175420d9e8 100755
--- a/Master/bin/sparc-linux/vftovp
+++ b/Master/bin/sparc-linux/vftovp
Binary files differ
diff --git a/Master/bin/sparc-linux/vlna b/Master/bin/sparc-linux/vlna
index edf460f8070..c0fa5a1d4fc 100755
--- a/Master/bin/sparc-linux/vlna
+++ b/Master/bin/sparc-linux/vlna
Binary files differ
diff --git a/Master/bin/sparc-linux/vptovf b/Master/bin/sparc-linux/vptovf
index e5389130862..4978aaec6df 100755
--- a/Master/bin/sparc-linux/vptovf
+++ b/Master/bin/sparc-linux/vptovf
Binary files differ
diff --git a/Master/bin/sparc-linux/weave b/Master/bin/sparc-linux/weave
index 2d7712ef51a..06767aa528b 100755
--- a/Master/bin/sparc-linux/weave
+++ b/Master/bin/sparc-linux/weave
Binary files differ
diff --git a/Master/bin/sparc-linux/xdvi-xaw b/Master/bin/sparc-linux/xdvi-xaw
index fb29248565f..0b0cdb4b4e7 100755
--- a/Master/bin/sparc-linux/xdvi-xaw
+++ b/Master/bin/sparc-linux/xdvi-xaw
Binary files differ
diff --git a/Master/bin/sparc-linux/xdvipdfmx b/Master/bin/sparc-linux/xdvipdfmx
index c02eb7d2a17..a72de0b9bb9 100755
--- a/Master/bin/sparc-linux/xdvipdfmx
+++ b/Master/bin/sparc-linux/xdvipdfmx
Binary files differ
diff --git a/Master/bin/sparc-linux/xetex b/Master/bin/sparc-linux/xetex
index da4710eb11b..08ca088cdc3 100755
--- a/Master/bin/sparc-linux/xetex
+++ b/Master/bin/sparc-linux/xetex
Binary files differ
diff --git a/Master/bin/sparc-linux/xindy b/Master/bin/sparc-linux/xindy
deleted file mode 120000
index ddaf92f5c89..00000000000
--- a/Master/bin/sparc-linux/xindy
+++ /dev/null
@@ -1 +0,0 @@
-../../texmf/scripts/xindy/xindy.pl \ No newline at end of file
diff --git a/Master/bin/sparc-linux/xindy.mem b/Master/bin/sparc-linux/xindy.mem
deleted file mode 100644
index 035e236d099..00000000000
--- a/Master/bin/sparc-linux/xindy.mem
+++ /dev/null
Binary files differ
diff --git a/Master/bin/sparc-linux/xindy.run b/Master/bin/sparc-linux/xindy.run
deleted file mode 100755
index 4d582a43a0e..00000000000
--- a/Master/bin/sparc-linux/xindy.run
+++ /dev/null
Binary files differ
diff --git a/Master/tlpkg/bin/tl-update-bindir b/Master/tlpkg/bin/tl-update-bindir
index d73ce1e72a3..bf221004ef2 100755
--- a/Master/tlpkg/bin/tl-update-bindir
+++ b/Master/tlpkg/bin/tl-update-bindir
@@ -123,6 +123,8 @@ for tlname in $tlnames; do
$download http://www.uoregon.edu/~koch/$tlname.tar.gz;;
powerpc-linux)
default_bin_loc=/home/tschmitz/ppc-linux.tar.bz2;;
+ sparc-linux)
+ default_bin_loc=/home/karl/s.tgz;;
win32)
default_bin_loc=${TMPDIR-$tmpdir}/tl.$tlname.zip
$download http://members2.jcom.home.ne.jp/wt1357ak/tl2009w32-02.zip;;