summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-04-20 06:57:24 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-04-20 06:57:24 +0000
commitf44ecae12095f5bf84e1bb9b9d68185f9d72aab1 (patch)
tree58c2d0222990e5759302fc5856503c39b3d5ad7e /Master
parentbaac5a20b2ff053e3e94ac9524ec303257561744 (diff)
Sync scripts Master <=> Build
git-svn-id: svn://tug.org/texlive/trunk@36967 c570f23f-e606-0410-a88d-b1316a301751
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