diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-21 16:57:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-21 16:57:38 +0000 |
commit | 39166786723f188c88fa8748411eb13b77341321 (patch) | |
tree | 65badd9fc9042927fde6c4b998bfb17b0fff9427 /Master/tlpkg/bin/tl-update-auto | |
parent | 54c3140e67c41116370d93a5fb6fc27cc65cd031 (diff) |
tl-update-images:locking; tl-update-auto: mirror day syntax
git-svn-id: svn://tug.org/texlive/trunk@54447 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/tl-update-auto')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-auto | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Master/tlpkg/bin/tl-update-auto b/Master/tlpkg/bin/tl-update-auto index 1783e3367f0..78ba3b01f0c 100755 --- a/Master/tlpkg/bin/tl-update-auto +++ b/Master/tlpkg/bin/tl-update-auto @@ -13,7 +13,7 @@ chicken=echo 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 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 @@ if $config_scripts_only || test `expr $(date +%d) % 2 = 0`; then :; else 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 |