Re: aclocal/dirlist
Stefan Fiedler <[email protected]>
| Newsgroups | gmane.linux.distributions.rock.devel |
|---|---|
| Message-ID | <[email protected]> |
Am Mittwoch 12 Oktober 2005 11:50 schrieb Stepan Kasal: > Hello Stefan, > > On Tue, Oct 11, 2005 at 10:56:16PM +0200, Stefan Fiedler wrote: > > > All /opt/*/share/aclocal directories should be listed in > > > /usr/share/aclocal/dirlist > > > > An implementation can be found at > > https://www.rocklinux.net/submaster/smadm.cgi?i=2005101122523004578 > > thank you very much for this prompt solution. > > A few comments: > 1) I see no need to touch the file if it doesn't exist. Hi Stepan, [ -z "`grep \"$aclocaldir\" $dirlist`" ] issues a warning if the file doesn't exist. 2>/dev/null does the trick as well. > > 2) I don't understand how much it is reliable to use > all_installed "opt/.*/share/aclocal/$" > > Is it possible that some of that directories would be missed? > > For example, my system has: > $ mine -l |grep share.aclocal/*\$ > firefox: opt/firefox/share/aclocal > $ > even though there are many files in /opt/gnome2/share/aclocal and > /opt/gnome/share/aclocal (and mine knows about them). > (But perhaps /var/adm/postinstall/*-install.?????? is more reliable.) mine -l prints directories without a trailing / while directories have a trailing / /var/adm/postinstall/*-install.??????. So you'd use 'mine -l | opt/.*/share/aclocal$' but ' all_installed "opt/.*/share/aclocal/$" '. Btw. here 'mine -l |grep share.aclocal/*\$' returns: gnome2-dirtree: opt/gnome2/share/aclocal gnome14-dirtree: opt/gnome/share/aclocal gettext: usr/share/aclocal firefox: opt/firefox/share/aclocal > > Anyway, I'd expect > all_installed "opt/[^/]*/share/aclocal" | sed '....' |sort -u | > This is done in https://www.rocklinux.net/submaster/smadm.cgi?i=2005101217145307686 Have fun, Stefan Fiedler