From owner-freebsd-ports@freebsd.org Thu Apr 16 16:56:32 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 508C42C1E11 for ; Thu, 16 Apr 2020 16:56:32 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49353N1JHSz3HMH for ; Thu, 16 Apr 2020 16:56:32 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2C44D2C1E0F; Thu, 16 Apr 2020 16:56:32 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2BE132C1E0E for ; Thu, 16 Apr 2020 16:56:32 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 49353M2gtdz3HMF for ; Thu, 16 Apr 2020 16:56:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from yv.noip.me (c-73-189-35-76.hsd1.ca.comcast.net [73.189.35.76]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 03GGuTdU025824 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 16 Apr 2020 09:56:29 -0700 (PDT) (envelope-from yuri@FreeBSD.org) X-Authentication-Warning: shell1.rawbw.com: Host c-73-189-35-76.hsd1.ca.comcast.net [73.189.35.76] claimed to be yv.noip.me To: "ports@freebsd.org" From: Yuri Subject: New feature suggestion: print-gh-tuple: Print GH_TUPLE corresponding to submodules of a GitHub repository ${GH_ACCOUNT}/${GH_PROJECT} Message-ID: <33f61c4f-2351-ffac-54c8-6fe1708d0f14@rawbw.com> Date: Thu, 16 Apr 2020 09:56:27 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 49353M2gtdz3HMF X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.88 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.96)[-0.959,0]; NEURAL_HAM_LONG(-0.92)[-0.923,0]; ASN(0.00)[asn:7961, ipnet:198.144.192.0/20, country:US] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Apr 2020 16:56:32 -0000 Hi, I am suggesting a new feature: make print-gh-tuple https://reviews.freebsd.org/D24231 It works when USE_GITHUB=yes is set. When a GitHub repository has git submodules, that themselves can also have embedded submodules, it can traverse all of them and output the value of GH_TUPLE that would include all of them. This is quite tedious and difficult to do manually. It checks out the GitHub repository with submodules, traverses the list using a combination of shell and awk scripting, and prints GH_TUPLE that can be pasted into a ports's Makefile. Yuri