texlive[54447] Master/tlpkg/bin: tl-update-images:locking;
commits+karl at tug.org
commits+karl at tug.org
Sat Mar 21 17:57:38 CET 2020
Revision: 54447
http://tug.org/svn/texlive?view=revision&revision=54447
Author: karl
Date: 2020-03-21 17:57:38 +0100 (Sat, 21 Mar 2020)
Log Message:
-----------
tl-update-images:locking; tl-update-auto: mirror day syntax
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tl-update-auto
trunk/Master/tlpkg/bin/tl-update-images
Modified: trunk/Master/tlpkg/bin/tl-update-auto
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-auto 2020-03-21 16:45:22 UTC (rev 54446)
+++ trunk/Master/tlpkg/bin/tl-update-auto 2020-03-21 16:57:38 UTC (rev 54447)
@@ -13,7 +13,7 @@
chicken=
#
verbose=echo
-verbose=false
+#verbose=false
#
# Toward the end of a release, we may want to update config.{guess,sub}
# but nothing else:
@@ -242,9 +242,9 @@
fi # !config_scripts_only
-#
ctan mirror list from ctan. Also skip if odd-numbered day,
+#
ctan mirror list from ctan. Also skip if even-numbered day,
# just because daily seems a bit much.
-if $config_scripts_only || test `expr $(date +%d) % 2 = 0`; then :; else
+if $config_scripts_only || test `expr $(date +%d) % 2` = 1; then :; else
ctan_mirrors=$TMPDIR/mirrors # incoming data from CTAN
ctan_mirmon=$TMPDIR/mirmon.state
mirrors4tl=tlpkg/installer/ctan-mirrors.pl # massaged for TL
@@ -257,6 +257,9 @@
rm -f $mirrors4tl.new
else
$chicken $mv $mirrors4tl.new $mirrors4tl
+ $verbose " $mirrors4tl update."
+ test $verbose >/dev/null \
+ && ls -l $ctan_mirrors $ctan_mirmon $mirrors4tl.new
update_list="$update_list $mirrors4tl"
fi
else
Modified: trunk/Master/tlpkg/bin/tl-update-images
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-images 2020-03-21 16:45:22 UTC (rev 54446)
+++ trunk/Master/tlpkg/bin/tl-update-images 2020-03-21 16:57:38 UTC (rev 54447)
@@ -11,14 +11,21 @@
# Send bug reports or suggestions to tex-live at tug.org.
# Historical notes at the end of the script.
+renice 20 $$ >/dev/null 2>&1
+LANG=C; export LANG
+LC_ALL=C; export LC_ALL
+unset CDPATH # avoid output from cd
+umask 022
+
+lockfile=/dev/shm/cron.tlimg.lock # so it'll go away on reboot
+lockfile -r 0 $lockfile || exit 1 # from procmail
+trap "rm -f $lockfile; exit 0;" 0 1 2 15
+
NAME=texlive
V=2020
D=`date +%Y%m%d`
target=/home/ftp/texlive/Images/test
-renice 20 $$ >/dev/null 2>&1
-umask 002
-unset CDPATH # avoid output from cd
XZ_OPT=-6e; export XZ_OPT # compression level, -9 for slowest-but-most,
# which is not worth the (excessive) time.
More information about the tex-live-commits
mailing list.