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 COPYING. 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'. +cu_GNULIB_SYNC_HOOK: + @{ cd $(srcdir) \ + && set -x \ + && cp gnulib/doc/COPYINGv3 COPYING \ + && cp gnulib/build-aux/bootstrap bootstrap \ + && cp gnulib/tests/init.sh tests/init.sh \ + ; } +export _gl_GNULIB_SYNC_HOOK = cu_GNULIB_SYNC_HOOK [1] http://lists.gnu.org/archive/html/coreutils/2018-12/msg00007.html WDYT? Have a nice day, Berny