Niels Möller wrote:
> > That being said, you don't need to use gnulib-tool to use Gnulib's
> > getopt-related source files. Just use 'cp'. Emacs does that, for some
> > (though thankfully not all) files that it gets from Gnulib; see
> > emacs/admin/merge-gnulib.
> 
> Thanks for the pointer, I'll have a look at that.

Note that if you do this (just copy some files from Gnulib, without using
gnulib-tool), you don't get the benefit of Gnulib's testing across platforms.

Namely, Gnulib is regularly tested on many platforms, from Android to Windows,
with the test of the 'getopt-gnu' module alone being 110 KB large, with
dozens of test cases. If you use some *.[hc] files without the corresponding
*.m4 files, you are in a situation where no one has looked at whether these
tests pass.

Bruno





Reply via email to