Collin Funk <[email protected]> writes: > Simon Josefsson <[email protected]> writes: > >> Bruno Haible via Gnulib discussion list <[email protected]> writes: >> >>> Collin Funk wrote: >>>> Coreutils makes use of 'gnulib-tool --local-dir', which I have not seen >>>> used much elsewhere [1]. >>> >>> GNU gettext makes extensive use of it. gsasl uses it as well. >> >> Libtasn1 too, and maybe some more projects. I'm using it to setup one >> gnulib directory with LGPL-only modules, and and one gnulib directory >> with some gnulib GPL modules. This is useful in projects which has a >> LGPL'ed library and some GPL'ed command-line tools. > > Oh, interesting. Good to know. I guess I must have not been paying > attention enough when building and missed those.
It can be invoked like this in bootstrap.conf:
bootstrap_post_import_hook () {
${GNULIB_SRCDIR}/gnulib-tool --import ... --local-dir=src/gl ...
I've always found this approach a somewhat ugly hack: bootstrap invokes
gnulib-tool internally based on prescriptive values from bootstrap.conf,
but it doesn't know how to invoke gnulib-tool more than one time, hence
doing it in a imperative way through a hook. Solving this cleanly
(i.e., having bootstrap.conf contain an array of settings) is probably
not worth the work involved though.
/Simon
signature.asc
Description: PGP signature
