From 70c0089e50b28b705d152f082b3d8287ad3b57c8 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 15 May 2020 16:11:15 +0000 Subject: new option --no-cow to make simple copy instead of hard-linked git-svn-id: svn://tug.org/texlive/trunk@55151 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/bin/tl-update-tlnet | 11 ++++++++--- 1 file 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 <