| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # $Id: texconfig-sys.sh 53554 2020-01-26 23:58:37Z karl $ |
| 3 | # texconfig-sys: Thomas Esser, public domain. |
| 4 | |
| 5 | # wrapper script for texconfig with TEXMFVAR and TEXMFCONFIG set to |
| 6 | # TEXMFSYSVAR / TEXMFSYSCONFIG |
| 7 | |
| 8 | testscip-shell system . . test. -f /bin/kshscip-shell filesystem . . `/bin/ksh`. && testscip-shell system . . test. -z "$RUNNING_KSH" \ |
| 9 | && { UNAMES=`unamescip-shell system . . uname. -s`; testscip-shell system . . test. "x$UNAMES" = xULTRIX; } 2>/dev/nullscip-shell filesystem . . `/dev/null`. \ |
| 10 | && { RUNNING_KSH=true; export RUNNING_KSH; exec /bin/kshscip-shell filesystem . . `/bin/ksh`. $0 ${1+"$@"}; } |
| 11 | unset RUNNING_KSH |
| 12 | |
| 13 | testscip-shell system . . test. -f /bin/bshscip-shell filesystem . . `/bin/bsh`. && testscip-shell system . . test. -z "$RUNNING_BSH" \ |
| 14 | && { UNAMES=`unamescip-shell system . . uname. -s`; testscip-shell system . . test. "x$UNAMES" = xAIX; } 2>/dev/nullscip-shell filesystem . . `/dev/null`. \ |
| 15 | && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bshscip-shell filesystem . . `/bin/bsh`. $0 ${1+"$@"}; } |
| 16 | unset RUNNING_BSH |
| 17 | |
| 18 | # hack around a bug in zsh: |
| 19 | testscip-shell system . . test. -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' |
| 20 | |
| 21 | # preferentially use subprograms from our own directory. |
| 22 | mydir=`echoscip-shell system . . echo. "$0" | sedscip-shell system . . sed. 's,/[^/]*$,,'` |
| 23 | mydir=`cd "$mydir" && pwdscip-shell system . . pwd.` |
| 24 | PATH="$mydir:$PATH"; export PATH |
| 25 | |
| 26 | v=`kpsewhich -var-value TEXMFSYSVAR` |
| 27 | c=`kpsewhich -var-value TEXMFSYSCONFIG` |
| 28 | |
| 29 | TEXMFVAR="$v" |
| 30 | TEXMFCONFIG="$c" |
| 31 | export TEXMFVAR TEXMFCONFIG |
| 32 | |
| 33 | exec texconfig ${1+"$@"} |