summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-05-15 16:11:15 +0000
committerKarl Berry <karl@freefriends.org>2020-05-15 16:11:15 +0000
commit70c0089e50b28b705d152f082b3d8287ad3b57c8 (patch)
tree7df87506e6341ea464faee27d244a5999b4d5582
parent7d841f003df6838bb9e6e115b4f8e592f1bb0e82 (diff)
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
-rwxr-xr-xMaster/tlpkg/bin/tl-update-tlnet11
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