Re: aclocal/dirlist

Stefan Fiedler <[email protected]>
Newsgroups gmane.linux.distributions.rock.devel
Message-ID <[email protected]>
Am Freitag 14 Oktober 2005 10:50 schrieb Stepan Kasal:
> Hello Stefan,
>
> thank you for fixing my code.  There is one problem though:
> In the first loop the hash gets paths with leading slash, while in the
> second one without it.

Thanks for noting. I fixed it in 
https://www.rocklinux.net/submaster/smadm.cgi?i=2005101503151913953

>
> I suggest to change the second loop to:
>
> 	match($0, "^(/opt/[^/]+/share/aclocal)(/|$)", a) && ! (a[1] in have) {
> 		print "Adding entry " a[1] " to " dirlist " ..."
> 		print a[1] >>dirlist
> 		have[a[1]]
>
> I think this should work, since all_installed lists the files with the
> leading slash.

Afaics files are listed without a leading slash.

Greetings,
	Stefan Fiedler

>
> Thanks again,
> 	Stepan
> _______________________________________________
> rock-devel mailing list
> [email protected]
> http://www.rocklinux.net/mailman/listinfo/rock-devel
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.