Next: Finishing touches, Previous: Initial import, Up: Invoking gnulib-tool
From time to time, you may want to invoke `gnulib-tool --import' to update the files in your package. Once you have set up your package for gnulib, this step is quite simple. For example:
~/src/libfoo$ gnulib-tool --import --source-base gl --m4-base gl/m4 strdup Module list with included dependencies: strdup File list: lib/strdup.c lib/strdup.h m4/onceonly_2_57.m4 m4/strdup.m4 Creating ./lib/Makefile.am... Creating ./m4/gnulib.m4... Finished. Don't forget to add "lib/Makefile" to AC_CONFIG_FILES in "./configure.ac" and to mention "lib" in SUBDIRS in some Makefile.am. ~/src/libfoo$
If you don't recall how you invoked the tool last time, the commands used (and the operations it resulted in) are placed in comments within the generated Makefile.am and gnulib.m4, as in:
... # Invoked as: gnulib-tool --import strdup # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --libtool strdup ...