[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bootstrap/autogen.sh and git submodules

From: Bernhard Voelker
Subject: Re: bootstrap/autogen.sh and git submodules
Date: Mon, 4 Mar 2019 08:42:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

On 3/3/19 7:03 PM, Bruno Haible wrote:
>   2) A submodule has to be upgraded occasionally. bootstrap/autogen.sh does
>      not help doing this. I have to keep a command in a cheat-sheet:
>        $ (cd gnulib && git fetch && git merge origin/master); git add gnulib

Additionally to updating gnulib, often some projects need to sync additional
files from the freshly updated gnulib subdirectory, like e.g. bootstrap or 

In December, I've suggested [1] the new makefile target 'update-gnulib-to-lates'
(alias 'gnulib-sync') which allows to specify a hook to perform such additional
tasks - see attached.

In coreutils, the hook for copying the extra files boils down to (in cfg.mk):

+# Override gnulib to copy some files from there during 'make gnulib-sync'.
+       @{ cd $(srcdir) \
+           && set -x \
+           && cp gnulib/doc/COPYINGv3 COPYING \
+           && cp gnulib/build-aux/bootstrap bootstrap \
+           && cp gnulib/tests/init.sh tests/init.sh \
+       ; }

[1] http://lists.gnu.org/archive/html/coreutils/2018-12/msg00007.html


Have a nice day,

Attachment: 0001-maintainer-makefile-provide-make-target-to-update-gn.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]