Print #include directives when --import'ing.
authorSimon Josefsson <simon@josefsson.org>
Wed, 5 Jan 2005 02:50:04 +0000 (02:50 +0000)
committerSimon Josefsson <simon@josefsson.org>
Wed, 5 Jan 2005 02:50:04 +0000 (02:50 +0000)
ChangeLog
gnulib-tool

index 16beeddacdfcb89ebcc17543334a391795c62473..f1abc3e8f8996c92b54d728f323725225637aa4b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-01  Simon Josefsson  <jas@extundo.com>
+
+       * gnulib-tool: Print #include directives when --import'ing.
+
 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
 
        * modules/error (Depends-on): Remove gettext.
index 08890c8e7f794c7c1d26d54ad68d0a879f444e01..71b5908655ba6791c03747cc82675cca884981e1 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-# Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2004-12-15 22:31:01 $'
+cvsdatestamp='$Date: 2005-01-05 02:50:04 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -618,6 +618,11 @@ func_import ()
   )
   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."