[tex-live] mktexlsr should exclude more VCS dirs

Norbert Preining preining at logic.at
Fri May 16 11:31:20 CEST 2008


Hi all,

We got the following suggestion concerning mktexlsr:

On Do, 15 Mai 2008, Michael Schutte wrote:
> /usr/bin/mktexlsr currently excludes .svn directories only.  I???d like to
> maintain parts of my ~/texmf tree in Git, which badly clutters ls-R at
> the moment.  The attached patch supports the most usual DVCSes; it would
> be great if you could review and probably apply it for the next
> revision.
> 
> Cheers,
> -- 
> Michael Schutte <m.schutte.jr at gmail.com>

> --- a/mktexlsr	2008-04-22 19:37:01.000000000 +0200
> +++ b/mktexlsr	2008-05-15 17:08:59.000000000 +0200
> @@ -154,10 +154,11 @@
>    # We do not try to support colons in directory names.
>    # 
>    echo "./:" >>"$db_file_tmp"
> +  VCSDIRS='\(\.svn\|\.git\|\.bzr\|\.hg\|_darcs\)'
>    (cd "$TEXMFLS_R" && \ls -LRa 2>/dev/null) \
> -   | sed -e '/^$/{n;s%^\./%%;s%^%./%;}; /^\.$/d; /^\.\.$/d; /^\.svn$/d;' \
> +   | sed -e '/^$/{n;s%^\./%%;s%^%./%;}; /^\.$/d; /^\.\.$/d; /^'$VCSDIRS'$/d;' \
>          -e '/^[\.\/]*lsR[0-9]*\.tmp:*$/d' \
> -   | sed -e '/\.svn.*:$/,/^$/d' \
> +   | sed -e '/'$VCSDIRS'.*:$/,/^$/d' \
>     >>"$db_file_tmp"
>  
>    cat "$db_file_tmp" > "$db_file"


THis patch actually looks quite reasonable to me, so what about
including it in our texlive repository?

Any comments/remarks/objections please?

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining at logic.at>        Vienna University of Technology
Debian Developer <preining at debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
WETWANG (n.)
A moist penis.
			--- Douglas Adams, The Meaning of Liff


More information about the tex-live mailing list