Re: aclocal/dirlist
Stepan Kasal <[email protected]>
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
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.
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.
Thanks again,
Stepan