diff options
author | Karl Berry <karl@freefriends.org> | 2006-12-11 01:07:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-12-11 01:07:44 +0000 |
commit | 814c2a4e6248c2102a433bf8bec2b58aa690c5b7 (patch) | |
tree | 447a0950be4328147c08bdc2510c5079e7d89b9f /Master/bin/i386-solaris/xdvi | |
parent | 129c0e1708ca01426708d7d257bf8a1cc608ec10 (diff) |
i386-solaris binaries from Apostolos
git-svn-id: svn://tug.org/texlive/trunk@2681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/i386-solaris/xdvi')
-rwxr-xr-x | Master/bin/i386-solaris/xdvi | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Master/bin/i386-solaris/xdvi b/Master/bin/i386-solaris/xdvi new file mode 100755 index 00000000000..679b3f05aa7 --- /dev/null +++ b/Master/bin/i386-solaris/xdvi @@ -0,0 +1,46 @@ +#!/bin/sh + +# This is the xdvi wrapper script for teTeX, version 0.2. +# Copyright Thomas Esser, 1998. Permission to distribute under the terms +# of the GNU general public license version 2 or later. + +# This script sets some environment variables to make sure that xdvi's +# resource file in $XDVIINPUTS/xdvi is read by xdvi.bin. + +test -f /bin/sh5 && test -z "$RUNNING_SH5" \ + && test x"`(uname -s) 2>&1`" = xULTRIX \ + && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; } +RUNNING_SH5= + +test -f /bin/bsh && test -z "$RUNNING_BSH" \ + && test x"`(uname -s) 2>&1`" = xAIX \ + && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } +RUNNING_BSH= + +# -help and -version only work if they are the only options. Therefore, +# we cannot give the "-name xdvi" parameter in that case. +# SU: Actually, with current xdvik, they should work in any position; but +# we may keep this for compatibility with older versions and non-k xdvi. +case "$#:$1" in + 1:-help|1:-version) + NAMEOPT=;; + *) + NAMEOPT='-name xdvi';; +esac + +xdviappfile=`kpsewhich -progname=xdvi --format='other text files' XDvi` +if test -n "$xdviappfile"; then + xdviappdir=`dirname "$xdviappfile"` + xdviapppath="${xdviappdir}/%l_%t/%N:${xdviappdir}/%N" + + # For R3, we have to set XAPPLRESDIR. + ### SU: removed, xdvik won't work with R3 anyway, and XAPPLRESDIR is + ### for user customizations in current X + ### XAPPLRESDIR="$xdviappdir"; export XAPPLRESDIR + + # For R4 or later, we have to set XFILESEARCHPATH, since XAPPLRESDIR might + # be ignored (if XUSERFILESEARCHPATH is set) + XFILESEARCHPATH="$xdviapppath:${XFILESEARCHPATH-%D}"; export XFILESEARCHPATH +fi + +exec xdvi-xaw.bin $NAMEOPT ${1+"$@"} |