diff options
Diffstat (limited to 'Master/tlpkg')
-rwxr-xr-x | Master/tlpkg/bin/tl-update-tlnet | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/tlpkg/bin/tl-update-tlnet b/Master/tlpkg/bin/tl-update-tlnet index f20e8135b65..8daf1ffa3c4 100755 --- a/Master/tlpkg/bin/tl-update-tlnet +++ b/Master/tlpkg/bin/tl-update-tlnet @@ -17,6 +17,7 @@ yyyy=2020 check_consistency=true chicken=false +cow_shell=cow-shell critical= pretest=false recreate= @@ -35,6 +36,7 @@ while test $# -gt 0; do --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 @@ chgrp texlive $tltry || : # in case of strange system for f in $tlweb/*; do if echo "$f" | grep mactex >/dev/null; then : # skip mactex - else + elif test "x$cow_shell" = xcow-shell; then cp -al "$f" $tltry # assume GNU cp so we can link instead of copy + else + # 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_prog=$Master/tlpkg/bin/tl-update-install-pkg 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 |