texlive[70922] Master: install-tl: restore period.
commits+karl at tug.org
commits+karl at tug.org
Thu Apr 11 22:44:12 CEST 2024
Revision: 70922
https://tug.org/svn/texlive?view=revision&revision=70922
Author: karl
Date: 2024-04-11 22:44:12 +0200 (Thu, 11 Apr 2024)
Log Message:
-----------
install-tl: restore period.
c2l: recognize aarmgh for aarch and armhf from github.
tl-update-bindir: likewise.
tl-update-auto: recognize -v option.
tl-update-containers: special temp debugging for texlive-scripts.
Modified Paths:
--------------
trunk/Master/install-tl
trunk/Master/tlpkg/bin/c2l
trunk/Master/tlpkg/bin/tl-update-auto
trunk/Master/tlpkg/bin/tl-update-bindir
trunk/Master/tlpkg/bin/tl-update-containers
Modified: trunk/Master/install-tl
===================================================================
--- trunk/Master/install-tl 2024-04-11 19:56:07 UTC (rev 70921)
+++ trunk/Master/install-tl 2024-04-11 20:44:12 UTC (rev 70922)
@@ -863,7 +863,7 @@
repository: $texlive_release
Perhaps you need to use a different CTAN mirror?
(For more, see the output of install-tl --help, especially the
- -repository option. Online via https://tug.org/texlive/doc)
+ -repository option. Online via https://tug.org/texlive/doc.)
=============================================================================
END_MISMATCH
}
Modified: trunk/Master/tlpkg/bin/c2l
===================================================================
--- trunk/Master/tlpkg/bin/c2l 2024-04-11 19:56:07 UTC (rev 70921)
+++ trunk/Master/tlpkg/bin/c2l 2024-04-11 20:44:12 UTC (rev 70922)
@@ -77,6 +77,14 @@
print "$0: gh (github/norbert) update done.\n";
exit 0;
+ } elsif ($arg eq "aarmgh") {
+ # usually we get these from cg, but sometimes mojca doesn't build.
+ for my $p (qw(aarch64-linux-gh armhf-linux-gh)) {
+ system ("$0 $p") && die "aarm/$p failed";
+ }
+ print "$0: gh (aarm/norbert) update done.\n";
+ exit 0;
+
} elsif ($arg eq "cg" || $arg eq "moj" || $arg eq "mojca") {
for my $p (qw(aarch64-linux armhf-linux x86_64-darwinlegacy
)) {
@@ -97,7 +105,11 @@
exec ("tl-update-bindir", $arg);
}
- if (-d "$TLROOT/Master/bin/$arg") { # platform name
+ # if known platform name, call tl-update-bindir.
+ # so far no clashes with normal packages.
+ (my $arg_no_gh = $arg) =~ s/-gh$//;
+ if (-d "$TLROOT/Master/bin/$arg" # platform name
+ || -d "$TLROOT/Master/bin/$arg_no_gh") { # maybe with -gh signal
print ("tl-update-bindir $arg\n");
exec ("tl-update-bindir", $arg);
}
Modified: trunk/Master/tlpkg/bin/tl-update-auto
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-auto 2024-04-11 19:56:07 UTC (rev 70921)
+++ trunk/Master/tlpkg/bin/tl-update-auto 2024-04-11 20:44:12 UTC (rev 70922)
@@ -13,8 +13,12 @@
chicken=echo
chicken=
#
-verbose=echo
-verbose=false
+if test "x$1" = x-v; then
+ verbose=echo
+ shift
+else
+ verbose=false
+fi
#
# Toward the end of a release, we may want to update config.{guess,sub}
# but nothing else:
@@ -258,10 +262,11 @@
if test -n "`find $mirrors4tl -newermt '23 hours ago'`"; then
echo "$0: ctan mirror list already updated today, skipping update:" >&2
- ls -l $mirrors4tl >&2
+ ls -lt $mirrors4tl >&2
elif wget --quiet https://ctan.org/tex-archive/CTAN.sites -O $ctan_mirrors \
&& rsync rsync://rsync.dante.ctan.org/MirMon/mirmon.state $ctan_mirmon; then
+ echo "got new mirror data"; ls -l $TMPDIR
$mydir/tl-update-ctan-mirrors -v $ctan_mirrors $ctan_mirmon \
>$mirrors4tl.new
if test $? -ne 0 || test ! -s $mirrors4tl.new; then
Modified: trunk/Master/tlpkg/bin/tl-update-bindir
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-bindir 2024-04-11 19:56:07 UTC (rev 70921)
+++ trunk/Master/tlpkg/bin/tl-update-bindir 2024-04-11 20:44:12 UTC (rev 70922)
@@ -143,9 +143,12 @@
for tlplat in $tlplats; do
destdir=$Master/bin/$tlplat
if test ! -d $destdir; then
- echo "$0: unrecognized platform name \`$tlplat'" >&2
- echo "$0: (no directory $destdir)" >&2
- exit 1
+ destdir=`echo $destdir | sed 's/-gh$//'`
+ if test ! -d $destdir; then
+ echo "$0: unknown platform name \`$tlplat'" >&2
+ echo "$0: (no directory $destdir)" >&2
+ exit 1
+ fi
fi
# updating convenience
@@ -153,11 +156,14 @@
default_bin_loc=$download_loc
grab="$download -O $download_loc"
#
- if test x"$USER" = xkarl; then
- case $tlplat in
+ case $tlplat in
aarch64-linux)
# cg build is much much faster than gh, so use it while it works.
- #do_download ${cgurl}/${cgbranch}$tlplat.tar.xz;;
+ do_download ${cgurl}/${cgbranch}$tlplat.tar.xz;;
+
+ aarch64-linux-gh)
+ # but sometimes we end up with the gh build.
+ tlplat=`echo $tlplat | sed s/-gh//`
do_download `github_url $tlplat`;;
amd64-freebsd)
@@ -170,12 +176,12 @@
armhf-linux)
# as with aarch.
- #do_download ${cgurl}/${cgbranch}$tlplat.tar.xz;;
+ do_download ${cgurl}/${cgbranch}$tlplat.tar.xz;;
+
+ armhf-linux-gh)
+ # as with aarch.
+ tlplat=`echo $tlplat | sed s/-gh//`
do_download `github_url $tlplat`;;
- #do_download `github_url $tlplat`;;
- #remurl=http://dl.contextgarden.net/build/texlive/${cgbranch}$tlplat.tar.xz
- #do_download $remurl;;
- #simon $grab http://getthingsfixed.co.uk/texlive/builds/2022/texlive-armhf.tar.gz
i386-freebsd)
do_download `github_url $tlplat`;;
@@ -240,8 +246,11 @@
x86_64-solaris)
do_download `github_url $tlplat amd64-solaris`;;
- esac
- fi # end $USER=karl
+
+ *)
+ echo "$0: unknown platform in case: $tlplat" >&2;
+ exit 1;;
+ esac
#
test -z "$bin_loc" && test -n "$default_bin_loc" \
Modified: trunk/Master/tlpkg/bin/tl-update-containers
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-containers 2024-04-11 19:56:07 UTC (rev 70921)
+++ trunk/Master/tlpkg/bin/tl-update-containers 2024-04-11 20:44:12 UTC (rev 70922)
@@ -1,6 +1,6 @@
#!/usr/bin/env perl
# $Id$
-# Copyright 2008-2023 Norbert Preining
+# Copyright 2008-2024 Norbert Preining
# This file is licensed under the GNU General Public License version 2
# or any later version.
#
@@ -179,7 +179,7 @@
}
if ($oldrev == $newrev) {
- ddebug("$pkg up to date\n");
+ debug("$pkg up to date (rev $oldrev)\n") if $pkg eq "texlive-scripts";
# check for the existence of all containers in case they go missing
if (($tlp->runfiles && ! -r "$opt_containerdir/$pkg.tar.$type")
|| ($srcsplit && $tlp->srcfiles
@@ -186,7 +186,7 @@
&& ! -r "$opt_containerdir/$pkg.source.tar.$type")
|| ($docsplit && $tlp->docfiles
&& ! -r "$opt_containerdir/$pkg.doc.tar.$type")) {
- info("$prg: container(s) for $pkg disappeared, recreating them.\n");
+ info("$prg: container(s) for $pkg disappeared, recreating them.\n");
push @todopacks, $pkg;
push (@pkgs_updated, $pkg);
debug(" pushed disappeared to updated: $pkg\n");
More information about the tex-live-commits
mailing list.