summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/tl-update-tlnet
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/bin/tl-update-tlnet')
-rwxr-xr-xMaster/tlpkg/bin/tl-update-tlnet11
1 files changed, 10 insertions, 1 deletions
diff --git a/Master/tlpkg/bin/tl-update-tlnet b/Master/tlpkg/bin/tl-update-tlnet
index c9a391d4b60..85b94a544f0 100755
--- a/Master/tlpkg/bin/tl-update-tlnet
+++ b/Master/tlpkg/bin/tl-update-tlnet
@@ -78,7 +78,16 @@ cp --force --backup $tlweb/tlpkg/texlive.tlpdb* /tmp
rm -rf $tltrybase
mkdir -p $tltry
chmod g+w $tltry
-cp -al $tlweb/* $tltry # assuming GNU cp
+
+# cp/link files in a loop so we can exclude the mactex files, which is a
+# waste of time, and more importantly can uselessly fail due to permissions.
+for f in $tlweb/*; do
+ if echo "$f" | grep mactex >/dev/null; then
+ : # skip mactex
+ else
+ cp -al "$f" $tltry # assume GNU cp so we can link instead of copy
+ fi
+done
# Update packages in our working dir.
echo "$0: Updating $tltry with cow-shell..."