From owner-freebsd-ports@FreeBSD.ORG Wed Feb 8 01:43:36 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12B421065694 for ; Wed, 8 Feb 2012 01:43:36 +0000 (UTC) (envelope-from scheidell@FreeBSD.org) Received: from mx2.secnap.com.ionspam.net (mx2.secnap.com.ionspam.net [216.134.223.54]) by mx1.freebsd.org (Postfix) with ESMTP id D867A8FC0A for ; Wed, 8 Feb 2012 01:43:35 +0000 (UTC) Received: from mx2.secnap.com.ionspam.net (unknown [10.71.0.54]) by mx2.secnap.com.ionspam.net (Postfix) with ESMTP id F2A88D23C12 for ; Tue, 7 Feb 2012 20:43:34 -0500 (EST) X-Virus-Scanned: SpammerTrap(r) VPS-1500 2.17 at mx2.secnap.com.ionspam.net Received: from USBCTDC001.secnap.com (unknown [10.70.1.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx2.secnap.com.ionspam.net (Postfix) with ESMTPS id 163C7D23C0C for ; Tue, 7 Feb 2012 20:43:34 -0500 (EST) Received: from MikeBook-Air.local (10.80.0.4) by USBCTDC001.secnap.com (10.70.1.1) with Microsoft SMTP Server (TLS) id 14.0.722.0; Tue, 7 Feb 2012 20:43:33 -0500 Message-ID: <4F31D347.9060509@FreeBSD.org> Date: Tue, 7 Feb 2012 20:43:35 -0500 From: Michael Scheidell Organization: SECNAP Network Security Corp User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.2.20) Gecko/20110804 Thunderbird/3.1.12 MIME-Version: 1.0 To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: helping out INDEX builds. best practices? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 01:43:36 -0000 any GOOD way to do this without spawing a shell? SVN_PORTVERSION!= cd ${SVN_PORTDIR} && ${MAKE} -V PORTVERSION by looking for this, its a pretty common thing: I played around for 2 hours and gave up. grep -R -- 'MAKE. -V PORT' /usr/ports ./devel/git-merge-changelog/Makefile:GNULIB_PORTVERSION!= cd ${GNULIB_PORTDIR} && ${MAKE} -V PORTVERSION ./devel/git-merge-changelog/Makefile:GNULIB_PORTREVISION!= cd ${GNULIB_PORTDIR} && ${MAKE} -V PORTREVISION ./devel/git-merge-changelog/Makefile:GNULIB_PORTEPOCH!= cd ${GNULIB_PORTDIR} && ${MAKE} -V PORTEPOCH ./devel/libopensync/Makefile:SWIG_VER!= cd ${PORTSDIR}/devel/swig13 && ${MAKE} -V PORTVERSION ./devel/svn_load_dirs/Makefile:SVN_PORTVERSION!= cd ${SVN_PORTDIR} && ${MAKE} -V PORTVERSION ./devel/svnmerge/Makefile:SVN_PORTVERSION!= cd ${SVN_PORTDIR} && ${MAKE} -V PORTVERSION ./security/sguil-server/Makefile:MYSQLTCL_VER!= cd ${PORTSDIR}/databases/mysqltcl && ${MAKE} -V PORTVERSION if a certain port needs to be kept in sync with another portversion, other than putting a comment in the main port "# must bump portversion in port..." where you have two maintainers, is there a better way to do this? I know != spawns a shell, but I can't think of another way (port I am looking at is ../devel/svnmerge) -- Michael Scheidell, CTO >*| * SECNAP Network Security Corporation d: +1.561.948.2259 w: http://people.freebsd.org/~scheidell