From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Subject: Re: [PATCH 1/2] bootstrap: Break automake dependency on generated files. (was Re: =?UTF-8?B?TGV04oCZcw==?= translate!) Date: Tue, 23 Apr 2019 12:28:10 +0200 Message-ID: <20190423122752.177e99e2@gmail.com> References: <87zhovlztm.fsf@gnu.org> <87wojyllbk.fsf@riseup.net> <20190423024234.706dcc8a@gmail.com> <20190423024342.1abcff62@gmail.com> <39EC6770-B600-4529-81D3-3DB19119AD7D@lepiller.eu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/KAQgBZewj=cWGnn41e_I9EZ" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:50350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIsf2-0007qV-Qr for guix-devel@gnu.org; Tue, 23 Apr 2019 06:28:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIsey-000222-Vq for guix-devel@gnu.org; Tue, 23 Apr 2019 06:28:24 -0400 In-Reply-To: <39EC6770-B600-4529-81D3-3DB19119AD7D@lepiller.eu> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Julien Lepiller Cc: guix-devel@gnu.org --MP_/KAQgBZewj=cWGnn41e_I9EZ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Julien, First of all, thank you for your work. El Tue, 23 Apr 2019 09:28:19 +0200 Julien Lepiller escribi=C3=B3: > This is a very good idea, but I think it leaves a stub texi that > won't get rebuilt because it's younger than po files.=20 Yes, you are right indeed. I didn't noticed because I was updating the .po file manually. > What if we add a toucgh invocation to reset the modification time > of these stubs, to ensure make will want to rebuild them? What about the attached patch? I've just tested it with the other patch that seems to be missing or blocked by its size, nothing up my sleeves this time. 0:-) Best regards, Miguel --MP_/KAQgBZewj=cWGnn41e_I9EZ Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-bootstrap-Break-automake-dependency-on-generated-fil.patch >From fe873d65dd5795bdafc9eed66888f7d2e9bf6b4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= Date: Tue, 23 Apr 2019 11:30:32 +0200 Subject: [PATCH 1/4] bootstrap: Break automake dependency on generated files. * bootstrap: Generate stub files for the manual translations whose generated files are not included in the VCS. --- bootstrap | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bootstrap b/bootstrap index cb774bc737..c0b5af7677 100755 --- a/bootstrap +++ b/bootstrap @@ -2,4 +2,18 @@ # Create the build system. set -e -x + +# Generate stubs for translations. +langs=`find po/doc -type f -name '*.po' \ + | sed -e 's,guix-manual\.,,' \ + | xargs -n 1 -I{} basename {} .po` +for lang in ${langs}; do + if [ ! -e "doc/guix.${lang}.texi" ]; then + echo "@setfilename guix.${lang}.info" > "doc/guix.${lang}.texi" + echo "@include version-${lang}.texi" >> "doc/guix.${lang}.texi" + # Ensure .po file is newer. + touch "po/doc/guix-manual.${lang}.po" + fi +done + exec autoreconf -vfi -- 2.21.0 --MP_/KAQgBZewj=cWGnn41e_I9EZ--