summaryrefslogtreecommitdiff
path: root/Master/bin/i386-openbsd/mktexlsr
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-06-04 18:20:55 +0000
committerKarl Berry <karl@freefriends.org>2008-06-04 18:20:55 +0000
commit79e3831f6773e021d2e76c753cd156721ddd7621 (patch)
treedeecb6b9588c31c015b1c5b5bcc0f51415004067 /Master/bin/i386-openbsd/mktexlsr
parent8a2f7e29046ab491ab64cb7b5bcf920db12da230 (diff)
i386-openbsd binaries for tl08 from edd
git-svn-id: svn://tug.org/texlive/trunk@8562 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/i386-openbsd/mktexlsr')
-rwxr-xr-xMaster/bin/i386-openbsd/mktexlsr21
1 files changed, 11 insertions, 10 deletions
diff --git a/Master/bin/i386-openbsd/mktexlsr b/Master/bin/i386-openbsd/mktexlsr
index 9f729e4d495..4afc952eca7 100755
--- a/Master/bin/i386-openbsd/mktexlsr
+++ b/Master/bin/i386-openbsd/mktexlsr
@@ -13,7 +13,7 @@
# <te@dbs.uni-hannover.de>, Okt., 1994.
# Public domain.
-version='$Id: mktexlsr,v 1.46 2005/06/21 14:32:26 olaf Exp $'
+version='$Id: mktexlsr 8211 2008-05-18 17:39:24Z karl $'
progname=`echo $0 | sed 's%.*/%%'`
usage="Usage: $progname [DIR]...
@@ -138,18 +138,19 @@ for TEXMFLS_R in "$@"; do
echo "$ls_R_magic" >"$db_file_tmp"
# 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 .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.
+ # found via ls-R. Probably irrelevant in practice. The sed command
+ # inserts the leading ./ for directory names, and removes ., .., and
+ # version control entries from the list. Also omit contents of any
+ # the version 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"
+ vc_dirs='\.\(bzr\|git\|hg\|svn\)\|CVS\|RCS\|_darcs'
(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' \
+ | sed -e '/^$/{n;s%^\./%%;s%^%./%;}; /^\.$/d; /^\.\.$/d; /^'$vc_dirs'$/d;' \
+ -e '/^[\.\/]*lsR[0-9]*\.tmp:*$/d' \
+ | sed -e /$vc_dirs'.*:$/,/^$/d' \
>>"$db_file_tmp"
# To be really safe, a loop.