[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gnulib] Re: Print #include directives for gnulib-tool --import
From: |
Simon Josefsson |
Subject: |
[bug-gnulib] Re: Print #include directives for gnulib-tool --import |
Date: |
Wed, 05 Jan 2005 03:51:41 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
Simon Josefsson <address@hidden> writes:
> How about this? It make 'gnulib-tool --import' print some more
> information, as in:
I have installed this, it seemed harmless, and perhaps nobody but me
uses --import anyway (or?).
>
> ...
> m4/wchar_t.m4
> m4/wint_t.m4
> m4/xsize.m4
> Creating ./gl/Makefile.am...
> Creating ./gl/m4/gnulib.m4...
> Finished.
>
> You may need to add #include directives for the following .h files.
> #include "error.h"
> #include "exit.h"
> #include "getaddrinfo.h"
> #include "getline.h"
> #include <getopt.h>
> #include "getpass.h"
> #include "gettext.h"
> #include <iconv.h>
> #include "iconvme.h"
> #include "progname.h"
> #include <stdbool.h>
> #include "strdup.h"
>
> Don't forget to add "gl/Makefile"
> to AC_CONFIG_FILES in "./configure.ac" and to mention
> "gl" in SUBDIRS in some Makefile.am.
>
> 2005-01-01 Simon Josefsson <address@hidden>
>
> * gnulib-tool: Print #include directives when --import'ing.
>
> (The line numbers in the patch are incorrect.)
>
> --- gnulib-tool 16 Dec 2004 01:43:53 +0100 1.37
> +++ gnulib-tool 01 Jan 2005 16:47:44 +0100
> @@ -618,6 +639,11 @@
> )
> echo "Finished."
> echo
> + echo "You may need to add #include directives for the following .h files."
> + for module in $modules; do
> + func_get_include_directive "$module" | sed -e '/^$/d;' -e 's/^/ /'
> + done
> + echo
> echo "Don't forget to add \"$sourcebase/Makefile\""
> echo "to AC_CONFIG_FILES in \"$configure_ac\" and to mention"
> echo "\"`basename $sourcebase`\" in SUBDIRS in some Makefile.am."