Date: Thu, 7 Sep 2000 11:34:37 -0500 From: Will Andrews <will@physics.purdue.edu> To: Satoshi Asami <asami@FreeBSD.ORG> Cc: ports@FreeBSD.ORG Subject: Re: fetch-recursive/checksum-recursive Message-ID: <20000907113437.Q23702@radon.gryphonsoft.com> In-Reply-To: <200009060136.e861aBU17761@silvia.hip.berkeley.edu>; from asami@FreeBSD.ORG on Tue, Sep 05, 2000 at 06:36:11PM -0700 References: <200009060136.e861aBU17761@silvia.hip.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 05, 2000 at 06:36:11PM -0700, Satoshi Asami wrote: > What do people say about the following? It will implement the likes > of fetch-recursive, as requested by PR ports/12548. I apologize that I was unable to reply to your private email about this sooner. In any case, thanks for taking the time to make an acceptable patch (to yourself, anyway, and that's not an easy job ;). > for dir in $$(${ECHO} "${FETCH_DEPENDS} ${BUILD_DEPENDS} ${LIB_DEPENDS} ${RUN_DEPENDS}" | ${TR} '\040' '\012' | ${SED} -e 's/^[^:]*://' -e 's/:.*//') $$(${ECHO} ${DEPENDS} | ${TR} '\040' '\012' | ${SED} -e 's/:.*//'); do \ I've always wondered what those '\040' and '\012' escape codes refer to. Does this `tr' command essentially perform the equivalent of chomp() in Perl (my best guess)? > deinstall-depends: > - @for dir in $$(${CLEAN-DEPENDS-LIST}); do \ > - (cd $$dir; ${MAKE} NOCLEANDEPENDS=yes deinstall); \ > + @for dir in $$(${ALL-DEPENDS-LIST}); do \ > + (cd $$dir; ${MAKE} deinstall); \ Won't this result in multiple deinstalls of a particular port (and thus some failed deinstalls) ? > +.if !target(fetch-recursive) > +fetch-recursive: > + @${ECHO_MSG} "===> Fetching all distfiles for ${PKGNAME} and dependencies" > + @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ > + (cd $$dir; ${MAKE} fetch); \ > + done > +.endif > + > +.if !target(fetch-recursive-list) > +fetch-recursive-list: > + @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ > + (cd $$dir; ${MAKE} fetch-list); \ > + done > +.endif > + > +.if !target(checksum-recursive) > +checksum-recursive: > + @${ECHO_MSG} "===> Fetching and checking checksums for ${PKGNAME} and dependencies" > + @for dir in ${.CURDIR} $$(${ALL-DEPENDS-LIST}); do \ > + (cd $$dir; ${MAKE} checksum); \ > done > .endif Ok, this all looks good. The question is: Does it work? :P -- Will Andrews <will@physics.purdue.edu> <will@FreeBSD.org> GCS/E/S @d- s+:+ a--- C++ UB++++$ P+ L- E--- W+ N-- !o ?K w--- O- M+ V- PS+ PE++ Y+ PGP+>+++ t++ 5 X+ R+ tv+ b++ DI+++ D+ G++ e>++++ h! r- y? 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?20000907113437.Q23702>