summaryrefslogtreecommitdiff
path: root/Master/tl-portable
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tl-portable')
-rwxr-xr-xMaster/tl-portable21
1 files changed, 18 insertions, 3 deletions
diff --git a/Master/tl-portable b/Master/tl-portable
index 47151860a77..feba0264816 100755
--- a/Master/tl-portable
+++ b/Master/tl-portable
@@ -1,8 +1,23 @@
#! /bin/sh
+# $Id$
# Copyright 2008 Siep Kroonenberg.
# You may freely use, modify and/or distribute this file.
-#calculate TeXLive root
+if test "x$1" = x--help; then
+ cat <<END_USAGE
+Usage: tl-portable
+Start a new subshell with the environment set so TeX Live
+can be run with minimal impact on the host, that is,
+run more or less directly from DVD or USB.
+
+For more, see the "Maximally portable" section in the TeX Live
+documentation (http://tug.org/texlive).
+END_USAGE
+
+ exit 0
+fi
+
+#calculate TeX Live root
#it appears that dirname isn't always available
TEXDIR0=$0
TEXDIR=${TEXDIR0%/*}
@@ -17,7 +32,7 @@ TEXDIR=`pwd`
export TEXDIR
cd $dirsave
-# Test whether the TeXLive directory is writable. We need an actual
+# Test whether the TeX Live directory is writable. We need an actual
# write test, because network drives aren't always identified
# correctly. We accept negatives at face value.
@@ -81,7 +96,7 @@ elif test ! -d $TEXDIR/bin/$platform; then
fi
if $TEXDIR/install-tl --portable; then :; else
- echo Initialization of TeXLive failed!
+ echo "$0: Initialization of TeX Live failed!" >&2
exit 1
fi