summaryrefslogtreecommitdiff
path: root/Master/bin/i386-darwin/mktexlsr
diff options
context:
space:
mode:
authorJonathan Kew <jfkthame@googlemail.com>2006-12-12 13:06:24 +0000
committerJonathan Kew <jfkthame@googlemail.com>2006-12-12 13:06:24 +0000
commit841b188679aeb0370a90b8589995dc9e2eac9e29 (patch)
treeeb9d5630dfa2a52925187d50058cf5070b8c8168 /Master/bin/i386-darwin/mktexlsr
parentffb4945c317ad300d0ea194a12fc4048f405b2bd (diff)
new i386-darwin binaries
git-svn-id: svn://tug.org/texlive/trunk@2698 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/i386-darwin/mktexlsr')
-rwxr-xr-xMaster/bin/i386-darwin/mktexlsr14
1 files changed, 10 insertions, 4 deletions
diff --git a/Master/bin/i386-darwin/mktexlsr b/Master/bin/i386-darwin/mktexlsr
index 3d2523d875b..663c36c1598 100755
--- a/Master/bin/i386-darwin/mktexlsr
+++ b/Master/bin/i386-darwin/mktexlsr
@@ -133,11 +133,17 @@ for TEXMFLS_R in "$@"; do
# The main task. We put ./: in the output, so top-level files can be
# found via ls-R. Probably irrelevant in practice.
# The sed command inserts the leading ./ for directory names, and
- # removes . and .. from the list. Note that using colons in directory
- # names results in nothing but grief.
+ # removes ., .., and .svn entries from the list. Also omit contents
+ # of any .svn directories; sed apparently requires that we do that
+ # operation in a separate invocation.
+ # We do not try to support colons in directory names.
+ #
echo "./:" >>"$db_file_tmp"
- (cd "$TEXMFLS_R" && \ls -LRa 2>/dev/null) |
- sed '/^$/{n;s%^\./%%;s%^%./%;}; /^\.$/d; /^\.\.$/d; /^[\.\/]*lsR[0-9]*\.tmp:*$/d' >>"$db_file_tmp"
+ (cd "$TEXMFLS_R" && \ls -LRa 2>/dev/null) \
+ | sed -e '/^$/{n;s%^\./%%;s%^%./%;}; /^\.$/d; /^\.\.$/d; /^\.svn$/d;' \
+ -e '/^[\.\/]*lsR[0-9]*\.tmp:*$/d' \
+ | sed -e '/\.svn.*:$/,/^$/d' \
+ >>"$db_file_tmp"
# To be really safe, a loop.
until PERMS=`kpsestat = "$db_file"`; do sleep 1; done