From c5ed65b04c412a97674dd9129a0cac10500fdf7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Arruga=20Vivas?= Date: Tue, 23 Apr 2019 00:21:44 +0200 Subject: [PATCH 1/2] 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bootstrap b/bootstrap index cb774bc737..62f6cb0fab 100755 --- a/bootstrap +++ b/bootstrap @@ -2,4 +2,16 @@ # 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" + fi +done + exec autoreconf -vfi -- 2.21.0