texlive[55151] Master/tlpkg/bin/tl-update-tlnet: new option --no-cow
commits+karl at tug.org
commits+karl at tug.org
Fri May 15 18:11:15 CEST 2020
Revision: 55151
http://tug.org/svn/texlive?view=revision&revision=55151
Author: karl
Date: 2020-05-15 18:11:15 +0200 (Fri, 15 May 2020)
Log Message:
-----------
new option --no-cow to make simple copy instead of hard-linked
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tl-update-tlnet
Modified: trunk/Master/tlpkg/bin/tl-update-tlnet
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-tlnet 2020-05-15 15:35:22 UTC (rev 55150)
+++ trunk/Master/tlpkg/bin/tl-update-tlnet 2020-05-15 16:11:15 UTC (rev 55151)
@@ -17,6 +17,7 @@
check_consistency=true
chicken=false
+cow_shell=cow-shell
critical=
pretest=false
recreate=
@@ -35,6 +36,7 @@
--gpgcmd) shift; gpgcmd="--gpgcmd \"$1\"";;
--master) shift; Master=$1;;
--no-consistency) check_consistency=false;; # takes a long time.
+ --no-cow) cow_shell=/bin/sh;;
--no-install-pkg) update_install_pkg=false;;# trunk update after freeze
--no-testinstall|-N) testinstall=false;; # and no updates; quit early.
--pretest) tlweb=/home/ftp/texlive/tlpretest;;
@@ -100,14 +102,17 @@
for f in $tlweb/*; do
if echo "$f" | grep mactex >/dev/null; then
: # skip mactex
+ elif test "x$cow_shell" = xcow-shell; then
+ cp -al "$f" $tltry # assume GNU cp so we can link instead of copy
else
- cp -al "$f" $tltry # assume GNU cp so we can link instead of copy
+ # no cow-shell, straight copy, for testing.
+ cp -a "$f" $tltry # still assuming GNU cp for -a
fi
done
# Update packages in our working dir.
# These shell assignments have to come outside the cow-shell.
-echo "$prg: Updating $tltry (from $Master) with cow-shell..."
+echo "$prg: Updating $tltry (from $Master) with $cow_shell..."
containers_prog="$Master/tlpkg/bin/tl-update-containers"
containers_args=" $verbose -location $tltry $critical $recreate $gpgcmd"
containers_invoke="$containers_prog $containers_args"
@@ -116,7 +121,7 @@
update_install_invoke="$update_install_prog $gpgcmd -o $tltry"
#
cd $tltry
-cow-shell <<END_COW
+$cow_shell <<END_COW
echo "$prg: Updating containers with (critical=$critical recreate=$recreate gpgcmd=$gpgcmd)"
echo "$prg: $containers_invoke"
if $containers_invoke; then :; else
More information about the tex-live-commits
mailing list.