summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-try-install
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/tl-try-install')
-rwxr-xr-xMaster/tlpkg/bin/tl-try-install5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/tlpkg/bin/tl-try-install b/Master/tlpkg/bin/tl-try-install
index a677dbef25f..7439427d4ab 100755
--- a/Master/tlpkg/bin/tl-try-install
+++ b/Master/tlpkg/bin/tl-try-install
@@ -14,15 +14,16 @@ rm -rf $instdir* && echo "removed $instdir*."
mydir=`cd \`dirname "$0"\` && pwd` # Master/tlpkg/bin
Master=`cd $mydir/../.. && pwd`
-# don't let cwd interfere
+# don't let cwd or existing PATH interfere
cd "$HOME" || exit 1
+PATH=/usr/local/bin:/usr/bin:/bin # /usr/local/bin for good perl on tug
#Master=$tm #`cd $mydir/../.. && pwd`
#
thisrel=/usr/local/texlive/`date +%Y` # not necessarily, but whatever
prevrel=/usr/local/texlive/`expr "$(date +%Y)" - 1`
-pro=--profile=$Master/tlpkg/dev/profiles/TLinfra.pro #infra min small ... full
+pro=--profile=${1-Master/tlpkg/dev/profiles/TLinfra.pro} #infra min ... full
exec time $Master/install-tl $pro
exec time $lp/install-tl $pro
exec time $lp/install-tl $pro --repo ftp://ftp.cstug.cz/pub/tex/local/tlpretest