diff options
Diffstat (limited to 'Master/tlpkg/bin')
-rwxr-xr-x | Master/tlpkg/bin/tl-try-install | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/Master/tlpkg/bin/tl-try-install b/Master/tlpkg/bin/tl-try-install index 0f05e3e49b5..fcdb858913f 100755 --- a/Master/tlpkg/bin/tl-try-install +++ b/Master/tlpkg/bin/tl-try-install @@ -16,18 +16,22 @@ mydir=`cd \`dirname "$real0"\` && pwd` # Master/tlpkg/bin Master=`cd $mydir/../.. && pwd` profiledir=$Master/tlpkg/dev/profiles -opt= +instdir=/tmp/ki profile=$profiledir/TLinfra.pro +quiet=false repo=$Master +verbose= while test $# -gt 0; do case $1 in + -o) shift; instdir=$1;; -p|--profile) shift; profile=$1;; + -q|--quiet) quiet=true;; -r|--repo) shift; repo=$1;; - -v|-vv) opt=$1;; + -v|-vv) verbose=$1;; --help) echo "ustl. sorry."; exit 0;; --version) echo "$vc_id"; exit 0;; - *) echo "$0: unrecognized option \`$1'." >&2 + *) echo "$0: unrecognized argument \`$1'." >&2 exit 1;; esac shift @@ -54,17 +58,26 @@ if test ! -x "$repo/install-tl"; then exit 1 fi -instdir=/tmp/ki # also specified in *.pro, so not enough to change it here. -rm -rf $instdir* && echo "removed $instdir*." +# The installation directory specified in *.pro has to match. +profile_instdir=`awk '$1=="TEXDIR" {print $2}' $profile` +if test x"$profile_instdir" != x"$instdir"; then + echo "$0: instdir ($instdir) != profile TEXDIR ($profile_instdir)" >&2 + exit 1 +fi -# make installations quieter. -#TEXLIVE_INSTALL_ENV_NOCHECK=1; export TEXLIVE_INSTALL_ENV_NOCHECK -#TEXLIVE_INSTALL_NO_WELCOME=1; export TEXLIVE_INSTALL_NO_WELCOME -#TEXLIVE_INSTALL_PAPER=letter; export TEXLIVE_INSTALL_PAPER +rm -rf $instdir && echo "$0: removed $instdir" + +if $quiet; then + # make installations quieter? + TEXLIVE_INSTALL_ENV_NOCHECK=1; export TEXLIVE_INSTALL_ENV_NOCHECK + TEXLIVE_INSTALL_NO_WELCOME=1; export TEXLIVE_INSTALL_NO_WELCOME +fi + +#TEXLIVE_INSTALL_PAPER=letter; export TEXLIVE_INSTALL_PAPER # testing -set -x pro=--profile=$profile -exec time $repo/install-tl $opt $pro +set -x +exec time $repo/install-tl $verbose $pro --repo $repo cust= #--custom-bin=$wb exec time $lp/install-tl $pro |