summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/mktexlsr
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-05-28 22:19:34 +0000
committerKarl Berry <karl@freefriends.org>2008-05-28 22:19:34 +0000
commit5bbaf06f384f3df4641f90e92dc8a9ea76ba39b4 (patch)
treea78dc7ed197f5403d1c4da03593dd4d9bba5be75 /Build/source/texk/kpathsea/mktexlsr
parent1aa068456162cd62d4b5345d1b39735fcd1a7ed8 (diff)
run texlinks after all else is installed
git-svn-id: svn://tug.org/texlive/trunk@8399 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/mktexlsr')
-rwxr-xr-xBuild/source/texk/kpathsea/mktexlsr30
1 files changed, 18 insertions, 12 deletions
diff --git a/Build/source/texk/kpathsea/mktexlsr b/Build/source/texk/kpathsea/mktexlsr
index 5546321f271..c383b79c92c 100755
--- a/Build/source/texk/kpathsea/mktexlsr
+++ b/Build/source/texk/kpathsea/mktexlsr
@@ -17,8 +17,9 @@ version='$Id$'
progname=`echo $0 | sed 's%.*/%%'`
usage="Usage: $progname [DIR]...
-Only options are --help, --version, and --verbose. If standard input is
-a terminal, --verbose is on by default.
+The only options are --help, --version, --verbose, --quiet, and --silent.
+If standard input is a terminal, --verbose is on by default.
+--quiet and --silent are synonyms, and cancel --verbose.
Rebuild all necessary ls-R filename databases completely. If one or
more arguments DIRS are given, these are used as texmf directories to
@@ -55,17 +56,22 @@ if tty -s; then verbose=true; else verbose=false; fi
# A copy of some stuff from mktex.opt, so we can run in the presence of
# terminally damaged ls-R files.
-if test "x$1" = x--help || test "x$1" = x-help; then
- echo "$usage"
- exit 0
-elif test "x$1" = x--version || test "x$1" = x-version; then
- echo "`basename $0` $version"
- kpsewhich --version
- exit 0
-elif test "x$1" = x--verbose || test "x$1" = x-verbose; then
- verbose=true
+while test $# -gt 0; do
+ if test "x$1" = x--help || test "x$1" = x-help; then
+ echo "$usage"
+ exit 0
+ elif test "x$1" = x--version || test "x$1" = x-version; then
+ echo "`basename $0` $version"
+ kpsewhich --version
+ exit 0
+ elif test "x$1" = x--verbose || test "x$1" = x-verbose; then
+ verbose=true
+ elif test "x$1" = x--quiet || test "x$1" = x--silent \
+ || test "x$1" = x-quiet || test "x$1" = x-silent ; then
+ verbose=false
+ fi
shift
-fi
+done
# mktexupd and mktexlsr make sure they're coordinated via this. A copy
# is found mktex.opt.