changeset 10743:ec39330cb04e

Modules now have a 'status' attribute.
author Bruno Haible <bruno@clisp.org>
date Sun, 02 Nov 2008 15:41:14 +0100
parents 1ee968956cf8
children 7fb7b37150b3
files ChangeLog gnulib-tool modules/TEMPLATE-EXTENDED
diffstat 3 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Nov 01 06:34:24 2008 -0700
+++ b/ChangeLog	Sun Nov 02 15:41:14 2008 +0100
@@ -1,3 +1,11 @@
+2008-11-02  Bruno Haible  <bruno@clisp.org>
+
+	* modules/TEMPLATE-EXTENDED: New field 'Status'.
+	* gnulib-tool: New option --extract-status.
+	(func_usage): Document it.
+	(sed_extract_prog): Recognize it.
+	(func_get_status): New function.
+
 2008-10-30  Simon Josefsson  <simon@josefsson.org>
 
 	* modules/sockets (License): Change from LGPL to LGPLv2+.
--- a/gnulib-tool	Sat Nov 01 06:34:24 2008 -0700
+++ b/gnulib-tool	Sun Nov 02 15:41:14 2008 +0100
@@ -100,6 +100,7 @@
        gnulib-tool --test --dir=directory module1 ... moduleN
        gnulib-tool --megatest --dir=directory [module1 ... moduleN]
        gnulib-tool --extract-description module
+       gnulib-tool --extract-status module
        gnulib-tool --extract-notice module
        gnulib-tool --extract-filelist module
        gnulib-tool --extract-dependencies module
@@ -126,6 +127,7 @@
       --megatest            test the given modules one by one and all together
                             (recommended to use CC=\"gcc -Wall\" here)
       --extract-description        extract the description
+      --extract-status             extract the status (obsolete or not)
       --extract-notice             extract the notice or banner
       --extract-filelist           extract the list of files
       --extract-dependencies       extract the dependencies
@@ -1256,6 +1258,7 @@
   :a
     n
     s/^Description:[	 ]*$//
+    s/^Status:[	 ]*$//
     s/^Notice:[	 ]*$//
     s/^Files:[	 ]*$//
     s/^Depends-on:[	 ]*$//
@@ -1281,6 +1284,15 @@
   sed -n -e "/^Description$sed_extract_prog" < "$lookedup_file"
 }
 
+# func_get_status module
+# Input:
+# - local_gnulib_dir  from --local-dir
+func_get_status ()
+{
+  func_lookup_file "modules/$1"
+  sed -n -e "/^Status$sed_extract_prog" < "$lookedup_file"
+}
+
 # func_get_notice module
 # Input:
 # - local_gnulib_dir  from --local-dir
@@ -4356,6 +4368,16 @@
     done
     ;;
 
+  extract-status )
+    for module
+    do
+      func_verify_module
+      if test -n "$module"; then
+        func_get_status "$module"
+      fi
+    done
+    ;;
+
   extract-notice )
     for module
     do
--- a/modules/TEMPLATE-EXTENDED	Sat Nov 01 06:34:24 2008 -0700
+++ b/modules/TEMPLATE-EXTENDED	Sun Nov 02 15:41:14 2008 +0100
@@ -1,5 +1,7 @@
 Description:
 
+Status:
+
 Notice:
 
 Files: