sync with TL36978; fixed Copyright year; jump to 0.80.1 (again)
[luatex.git] / source / texk / texlive / tl_scripts / updmap-sys.sh
blob4daaf9b3257acb2449eb31e495b835fb3ff321da
1 #!/bin/sh
2 # $Id: updmap-sys.sh 35626 2014-11-20 19:08:47Z karl $
3 # updmap-sys - arrange for updmap to affect system directories.
4 # Public domain. Originally written by Thomas Esser.
6 test -f /bin/ksh && test -z "$RUNNING_KSH" \
7 && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \
8 && { RUNNING_KSH=true; export RUNNING_KSH; exec /bin/ksh $0 ${1+"$@"}; }
9 unset RUNNING_KSH
11 test -f /bin/bsh && test -z "$RUNNING_BSH" \
12 && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \
13 && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; }
14 unset RUNNING_BSH
16 # preferentially use subprograms from our own directory.
17 mydir=`echo "$0" | sed 's,/[^/]*$,,'`
18 mydir=`cd "$mydir" && pwd`
19 PATH="$mydir:$PATH"; export PATH
21 # hack around a bug in zsh:
22 test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
24 exec updmap --sys ${1+"$@"}