texlive[61592] Master/tlpkg: generalize tl-try-install for new
commits+karl at tug.org
commits+karl at tug.org
Thu Jan 13 00:12:22 CET 2022
Revision: 61592
http://tug.org/svn/texlive?view=revision&revision=61592
Author: karl
Date: 2022-01-13 00:12:22 +0100 (Thu, 13 Jan 2022)
Log Message:
-----------
generalize tl-try-install for new /home/texlive/hyphtest
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tl-try-install
trunk/Master/tlpkg/dev/profiles/TLfmt.pro
Added Paths:
-----------
trunk/Master/tlpkg/dev/profiles/TLhyphtest.pro
Modified: trunk/Master/tlpkg/bin/tl-try-install
===================================================================
--- trunk/Master/tlpkg/bin/tl-try-install 2022-01-12 22:30:35 UTC (rev 61591)
+++ trunk/Master/tlpkg/bin/tl-try-install 2022-01-12 23:12:22 UTC (rev 61592)
@@ -16,18 +16,22 @@
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 @@
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
+
+pro=--profile=$profile
set -x
-pro=--profile=$profile
-exec time $repo/install-tl $opt $pro
+exec time $repo/install-tl $verbose $pro --repo $repo
cust= #--custom-bin=$wb
exec time $lp/install-tl $pro
Modified: trunk/Master/tlpkg/dev/profiles/TLfmt.pro
===================================================================
--- trunk/Master/tlpkg/dev/profiles/TLfmt.pro 2022-01-12 22:30:35 UTC (rev 61591)
+++ trunk/Master/tlpkg/dev/profiles/TLfmt.pro 2022-01-12 23:12:22 UTC (rev 61592)
@@ -5,11 +5,8 @@
TEXMFLOCAL /tmp/ki/texmf-local
TEXMFSYSCONFIG /tmp/ki/sys/config
TEXMFSYSVAR /tmp/ki/sys/var
-selected_scheme scheme-minimal
TEXMFCONFIG /tmp/ki/user/config
TEXMFVAR /tmp/ki/user/var
-TEXMFSYSCONFIG /tmp/ki/sys/config
-TEXMFSYSVAR /tmp/ki/sys/var
option_doc 0
option_fmt 1
option_letter 0
Added: trunk/Master/tlpkg/dev/profiles/TLhyphtest.pro
===================================================================
--- trunk/Master/tlpkg/dev/profiles/TLhyphtest.pro (rev 0)
+++ trunk/Master/tlpkg/dev/profiles/TLhyphtest.pro 2022-01-12 23:12:22 UTC (rev 61592)
@@ -0,0 +1,32 @@
+# $Id: TLfmt.pro 44249 2017-05-08 17:26:47Z karl $
+TEXDIR /home/texlive/hyphtest/inst
+TEXMFHOME /home/texlive/hyphtest/inst/user/home
+TEXMFLOCAL /home/texlive/hyphtest/inst/texmf-local
+TEXMFSYSCONFIG /home/texlive/hyphtest/inst/sys/config
+TEXMFSYSVAR /home/texlive/hyphtest/inst/sys/var
+TEXMFCONFIG /home/texlive/hyphtest/inst/user/config
+TEXMFVAR /home/texlive/hyphtest/inst/user/var
+option_adjustrepo 0
+option_doc 1
+option_fmt 1
+option_letter 0
+option_src 1
+option_symlinks 0
+collection-basic 1
+collection-langarabic 0
+collection-langchinese 0
+collection-langcjk 0
+collection-langcyrillic 0
+collection-langczechslovak 0
+collection-langenglish 0
+collection-langeuropean 0
+collection-langfrench 0
+collection-langgerman 0
+collection-langgreek 0
+collection-langitalian 0
+collection-langjapanese 0
+collection-langkorean 0
+collection-langother 0
+collection-langpolish 0
+collection-langportuguese 0
+collection-langspanish 0
Property changes on: trunk/Master/tlpkg/dev/profiles/TLhyphtest.pro
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
More information about the tex-live-commits
mailing list.