[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] RFC: Added wildcard support to dirlist parsing
From: |
Clifford Wolf |
Subject: |
[PATCH] RFC: Added wildcard support to dirlist parsing |
Date: |
Mon, 17 Oct 2005 13:20:23 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi,
I wrote a little patch to aclocal for wildcard matchin in the dirlist
parser:
http://www.clifford.at/priv/aclocal-dirlist-glob.patch
> Clifford Wolf:
> Added wildcard support to the dirlist parser
>
> --- automake-1.9.3/aclocal.in 2005-10-17 13:06:07.000000000 +0200
> +++ automake-1.9.3/aclocal.in 2005-10-17 13:07:59.000000000 +0200
> @@ -672,11 +672,11 @@
> # Ignore '#' lines.
> next if /^#/;
> # strip off newlines and end-of-line comments
> - s/\s*\#.*$//;
> + s/\s*\#.*$//; chomp;
> chomp ($contents=$_);
> - if (-d $contents )
> + foreach $contents (glob)
> {
> - push (@dirlist, $contents);
> + push (@dirlist, $contents) if -d $contents;
> }
> }
> close (DEFAULT_DIRLIST);
With this patch applied it is possible to use entries such as
"/opt/*/share/aclocal" in the /usr/share/aclocal/dirlist file.
what do you think? how are my chances to get this applied in the official
tree?
yours,
- clifford
--
/"\ ASCII Ribbon Campaign - against html email
\ / - against microsoft office attachments
X - against text above fullquote below
/ \ - against lines longer than 79 characters
The only thing more dangerous than a hardware guy with a code patch is a
programmer with a soldering iron.
- [PATCH] RFC: Added wildcard support to dirlist parsing,
Clifford Wolf <=