Re: aclocal/dirlist

Clifford Wolf <[email protected]>
Newsgroups gmane.linux.distributions.rock.devel
Message-ID <[email protected]>
Hi,

On Tue, Oct 11, 2005 at 06:32:06PM +0200, Stepan Kasal wrote:
> All /opt/*/share/aclocal directories should be listed in
> /usr/share/aclocal/dirlist
> (See "info aclocal" for details.)

What do you think about this patch to automake:

	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 applied we could simply add a static /usr/share/aclocal/dirlist
file to the automake package.

I have sent a mail about it to the automake mailinglist already, but it
looks like it did not come thru so far..

yours,
 - clifford

--
  _________  ____ __      __  $_ = q 7nz!y="Ccv'Dpgiutvcbb'oj'Pocj'*'qqq[
 / ___/ __ \/ __ `/ | /| / /  ej`q[iv`";!|=1;!y=~t%].[%nz!z=!1;gps]1..6[{
/ /__/ / / / /_/ /| |/ |/ /   qsjou"!z\c";tfmfdu]voefg,voefg,voefg,0.05[;
\___/_/ /_/\__, / |__/|__/    !z=~t/].[/dis]pse]!1[^!_[/fh;}qsjou !z;%fh;
 CCC Wien /____/www.cngw.org  qsjou "\o"7;s/\n//g;y/[b-za]!/)a-z($/;eval;
 
Logizomechanophobia - Fear of computers. (www.phobialist.com)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.