summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/texlinks.sh16
1 files changed, 5 insertions, 11 deletions
diff --git a/Master/texmf-dist/scripts/texlive/texlinks.sh b/Master/texmf-dist/scripts/texlive/texlinks.sh
index 028b50be9c4..91540eac147 100755
--- a/Master/texmf-dist/scripts/texlive/texlinks.sh
+++ b/Master/texmf-dist/scripts/texlive/texlinks.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: texlinks.sh 33924 2014-05-09 00:31:04Z karl $
+# $Id: texlinks.sh 36938 2015-04-19 21:15:06Z karl $
# Thomas Esser, 1999, 2002, 2003. public domain.
@@ -39,7 +39,7 @@ export PATH
# hack around a bug in zsh:
test -n "${ZSH_VERSION+set}" && alias -g '${1+"$@"}'='"$@"'
-version='$Id: texlinks.sh 33924 2014-05-09 00:31:04Z karl $'
+version='$Id: texlinks.sh 36938 2015-04-19 21:15:06Z karl $'
progname=texlinks
cnf=fmtutil.cnf # name of the config file
@@ -69,10 +69,7 @@ Report bugs to: tex-k@tug.org
TeX Live home page: <http://tug.org/texlive/>
'
-###############################################################################
-# abort(errmsg)
-# print `errmsg' to stderr and exit with error code 1
-###############################################################################
+# print `errmsg' to stderr and exit with error code 1:
abort() { errmsg "texlinks: $1."; cleanup 1; }
# error message to stderr:
@@ -84,10 +81,7 @@ verbose_echo() { $verbose && errmsg "$@"; }
# in verbose mode: show command that is executed:
verbose_do() { verbose_echo "$@"; "$@"; }
-###############################################################################
-# cleanup()
-# clean up the temp area and exit with proper exit status
-###############################################################################
+# clean up the temp area and exit with proper exit status:
cleanup()
{
rc=$1
@@ -177,7 +171,7 @@ install_link()
# fmtutil.cnf with different engines, but the executable link
# must point to pdftex.
verbose_echo "forcing pdfcsplain destination to be pdftex"
- dest=pdftex
+ dest=pdftex$exeext
fi
verbose_do ln -s "$dest" "$src"
fi