[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnulib] Print #include directives for gnulib-tool --import

From: Simon Josefsson
Subject: [bug-gnulib] Print #include directives for gnulib-tool --import
Date: Sat, 01 Jan 2005 16:55:19 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

How about this?  It make 'gnulib-tool --import' print some more
information, as in:

Creating ./gl/Makefile.am...
Creating ./gl/m4/gnulib.m4...

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 "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."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]