summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-try-install
blob: e1e1f6814ec24da0ece0342511ae03e25be29a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# $Id$
# Try a TL installation with various profiles into /tmp/ki. Public domain.

renice 20 $$ >&/dev/null

instdir=/tmp/ki # in .pro files too
rm -rf $instdir* && echo "removed $instdir*."

# make installations quieter.
#TEXLIVE_INSTALL_ENV_NOCHECK=1; export TEXLIVE_INSTALL_ENV_NOCHECK
#TEXLIVE_INSTALL_NO_WELCOME=1; export TEXLIVE_INSTALL_NO_WELCOME

real0=`realpath $0`
mydir=`cd \`dirname "$real0"\` && pwd`  # Master/tlpkg/bin
Master=`cd $mydir/../.. && pwd`
profiledir=$Master/tlpkg/dev/profiles

# 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

set -x
pro=--profile=${1-$profiledir/TLinfra.pro} #infra min ... full
exec time $Master/install-tl $pro
cust=--custom-bin=$wb
exec time $Master/install-tl $cust $pro
exec time $lp/install-tl $pro
exec time $lp/install-tl $pro --repo ftp://ftp.cstug.cz/pub/tex/local/tlpretest
exec time $ln/install-tl $pro --repo ctan #--in-place

thisrel=/usr/local/texlive/`date +%Y` # not necessarily, but whatever
prevrel=/usr/local/texlive/`expr "$(date +%Y)" - 1`
exec time $thisrel/install-tl $pro
exec time $prevrel/install-tl $pro
exit $?

# above are just assorted invocations that have been useful from time to
# time, nothing magic. do what's needed.
# 
# $lp = pretest, /home/ftp/texlive/tlpretest on tug.org.
# $ln = tlnet,   /home/ftp/texlive/tlnet     on tug.org.