From 0421d8c68a966eb0b8c781ffded5de8769b7f843 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 15 Apr 2015 02:42:33 +0000 Subject: use -sys instead of exporting vars for fmtutil-sys git-svn-id: svn://tug.org/texlive/trunk@36860 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/fmtutil-sys.sh | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/Master/texmf-dist/scripts/texlive/fmtutil-sys.sh b/Master/texmf-dist/scripts/texlive/fmtutil-sys.sh index a272b66d007..37fb0fafc46 100755 --- a/Master/texmf-dist/scripts/texlive/fmtutil-sys.sh +++ b/Master/texmf-dist/scripts/texlive/fmtutil-sys.sh @@ -1,6 +1,6 @@ #!/bin/sh -# $Id: fmtutil-sys.sh 35626 2014-11-20 19:08:47Z karl $ -# fmtutil-sys - arrange for fmtutil to affect system directories. +# $Id: updmap-sys.sh 35626 2014-11-20 19:08:47Z karl $ +# fmtutil-sys - arrange for fmtutil to affect system directories. # Public domain. Originally written by Thomas Esser. test -f /bin/ksh && test -z "$RUNNING_KSH" \ @@ -13,19 +13,12 @@ test -f /bin/bsh && test -z "$RUNNING_BSH" \ && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; } unset RUNNING_BSH -# hack around a bug in zsh: -test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' - # preferentially use subprograms from our own directory. mydir=`echo "$0" | sed 's,/[^/]*$,,'` mydir=`cd "$mydir" && pwd` PATH="$mydir:$PATH"; export PATH -v=`kpsewhich -var-value TEXMFSYSVAR` -c=`kpsewhich -var-value TEXMFSYSCONFIG` - -TEXMFVAR="$v" -TEXMFCONFIG="$c" -export TEXMFVAR TEXMFCONFIG +# hack around a bug in zsh: +test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"' -exec fmtutil ${1+"$@"} +exec fmtutil --sys ${1+"$@"} -- cgit v1.2.3