Date: Tue, 31 Oct 2000 09:16:30 -0500 From: James Housley <jim@thehousleys.net> To: Dann Lunsford <dann@greycat.com> Cc: "Jeffrey J. Mountin" <jeff-ml@mountin.net>, ports@FreeBSD.ORG Subject: Re: possible bug with 'make readmes' Message-ID: <39FED43E.DA69EC0C@thehousleys.net> References: <Pine.BSI.4.21.0010280859310.1326-100000@blues.jpj.net> <39FA428A.19C0EAF3@ipass.net> <Pine.BSI.4.21.0010280859310.1326-100000@blues.jpj.net> <20001028104607.A10335@greycat.com> <4.3.2.20001031050743.00bab9c0@207.227.119.2> <20001031054441.A94263@greycat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Dann Lunsford wrote: > > On Tue, Oct 31, 2000 at 05:54:29AM -0600, Jeffrey J. Mountin wrote: > > At 10:46 AM 10/28/00 -0700, Dann Lunsford wrote: > <snip> > > > > >XXTMPDIR += x11-wm > > > > > >.for dir in ${XXTMPDIR} > > >.if exists(${dir}) > > >SUBDIR += ${dir} > > >.endif > > >.endfor > > >-------------------------------------------------------------------- > > > > Rather than change all those lines, even with sed as your friend, why not > > just use: > > > > .for dir in ${SUBDIR} > > .if exists(${dir}) > > SUBDIR_EXISTS += ${dir} > > .endif > > .endfor > > SUBDIR = ${SUBDIR_EXISTS} > > > You're right, that is better. Now, where did I put that excuse > file? Oh yeah, here's one: "Not enough coffee that day." :-) > Thanks. > Might it be better to use ".if exists(${dir}/Makefile)" because I think it will still fail if the directory exists but is missing the files. Jim -- jeh@FreeBSD.org http://www.FreeBSD.org The Power to Serve jim@TheHousleys.Net http://www.TheHousleys.net --------------------------------------------------------------------- "It's a damn poor mind that can only think of one way to spell a word." -- -Andrew Jackson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39FED43E.DA69EC0C>