Date: Thu, 17 Jun 2004 12:27:35 +0200 From: Roman Neuhauser <neuhauser@chello.cz> To: Dan Langille <dan@langille.org> Cc: ports@FreeBSD.org Subject: Re: HEADS UP - master/slave ports Message-ID: <20040617102735.GA1924@isis.wad.cz> In-Reply-To: <40D03202.11738.76559182@localhost> References: <40D03202.11738.76559182@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
# dan@langille.org / 2004-06-16 11:41:54 -0400: > Note: FreshPorts beta is making use of this patch to obtain this > master/slave information (tabs will be corrupted in this paste and > lines will be wrapped): ... > +MASTERPORT!= ${ECHO_CMD} "${_MASTERDIR}" | ${SED} -Ee 's;^.*/([^/]+/[^/]+)/?$$;\1;' You don't need the sed, or rely on the fact that the category hierarchy is flat. Instead: _REALPORTSDIR!= ${REALPATH} "${PORTSDIR}" MASTERPORT= ${MASTERDIR:S#^${_REALPORTSDIR}##} -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040617102735.GA1924>