texlive[44116] Master/tlpkg/bin/tl-update-tlnet: skip mactex files

commits+karl at tug.org commits+karl at tug.org
Sun Apr 30 00:19:37 CEST 2017


Revision: 44116
          http://tug.org/svn/texlive?view=revision&revision=44116
Author:   karl
Date:     2017-04-30 00:19:37 +0200 (Sun, 30 Apr 2017)
Log Message:
-----------
skip mactex files when setting up trial dir.

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tl-update-tlnet

Modified: trunk/Master/tlpkg/bin/tl-update-tlnet
===================================================================
--- trunk/Master/tlpkg/bin/tl-update-tlnet	2017-04-29 21:57:43 UTC (rev 44115)
+++ trunk/Master/tlpkg/bin/tl-update-tlnet	2017-04-29 22:19:37 UTC (rev 44116)
@@ -78,8 +78,17 @@
 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..."
 cd $tltry



More information about the tex-live-commits mailing list