Undo last change.
[gnulib.git] / MODULES.html.sh
index 3f353a7..683bb69 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2002-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2008 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
@@ -1406,11 +1406,21 @@ func_module ()
     element='<A HREF="#module='$1'">'$1'</A>'
     func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"20%\">$element"
 
+    # Rendering the description:
+    # - Change the symbol() syntax as suitable for documentation, removing the
+    #   parentheses (as per GNU standards, section "GNU Manuals").
+    # - Flag the remaining symbol() constructs as errors.
+    # - Change 'xxx' to <CODE>xxx</CODE>.
     element=`gnulib-tool --extract-description $1 \
              | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" \
-                   -e 's,^, ,' \
-                   -e 's,\([^a-zA-Z_]\)'"${posix_functions}"'(),\1<A HREF="'"$POSIX2001_URL"'xsh/\2.html">\2</A>(),g' \
-                   -e 's,^ ,,'`
+                   -e 's,^, ,' -e 's,$, ,' \
+                   -e 's,\([^a-zA-Z_]\)'"${posix_functions}"'() \(function\|macro\),\1<A HREF="'"$POSIX2001_URL"'xsh/\2.html">\2</A> \3,g' \
+                   -e 's,\([^a-zA-Z_]\)'"${posix_functions}"' \(function\|macro\),\1<A HREF="'"$POSIX2001_URL"'xsh/\2.html">\2</A> \3,g' \
+                   -e 's,\([^a-zA-Z_]\)'"${posix_functions}"'(),\1<A HREF="'"$POSIX2001_URL"'xsh/\2.html">\2</A> <SPAN STYLE="color:#FF0000;">what?? If you mean a function\, please say so.</SPAN>,g' \
+                   -e 's,\([^a-zA-Z_]\)\([a-zA-Z_][a-zA-Z0-9_]*\)() \(function\|macro\),\1\2 \3,g' \
+                   -e 's,\([^a-zA-Z_]\)\([a-zA-Z_][a-zA-Z0-9_]*\)(),\1\2 <SPAN STYLE="color:#FF0000;">what?? If you mean a function\, please say so.</SPAN>,g' \
+                   -e 's, '"'"'\([a-zA-Z0-9_ -]*\)'"'"'\([^a-zA-Z0-9_]\), <CODE>\1</CODE>\2,g' \
+                   -e 's,^ ,,' -e 's, $,,'`
     func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"80%\">$element"
 
     func_end TR
@@ -1643,7 +1653,9 @@ func_all_modules ()
 
   func_begin_table
   func_module bcopy
+  func_module memchr2
   func_module memmem
+  func_module memmem-simple
   func_module mempcpy
   func_module memrchr
   func_module stpcpy
@@ -1653,6 +1665,7 @@ func_all_modules ()
   func_module c-strcaseeq
   func_module c-strcasestr
   func_module strcasestr
+  func_module strcasestr-simple
   func_module strchrnul
   func_module strdup
   func_module streq
@@ -1660,6 +1673,7 @@ func_all_modules ()
   func_module strnlen1
   func_module strndup
   func_module strsep
+  func_module strstr
   func_module c-strstr
   func_module trim
   func_module fstrcmp
@@ -1971,8 +1985,8 @@ func_all_modules ()
   func_module frexpl
   func_module frexpl-nolibm
   func_module isfinite
-  func_module isnan-nolibm
   func_module isnanf-nolibm
+  func_module isnand-nolibm
   func_module isnanl
   func_module isnanl-nolibm
   func_module ldexpl
@@ -2269,6 +2283,8 @@ func_all_modules ()
   func_module freadable
   func_module freadahead
   func_module freading
+  func_module freadptr
+  func_module freadseek
   func_module fwritable
   func_module fwriting
   func_module getpass
@@ -2718,8 +2734,11 @@ func_all_modules ()
   func_module announce-gen
   func_module autobuild
   func_module git-version-gen
+  func_module gitlog-to-changelog
   func_module gnupload
   func_module maintainer-makefile
+  func_module useless-if-before-free
+  func_module vc-list-files
   func_end_table
 
   element="Misc"
@@ -2728,8 +2747,10 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module gnu-make
   func_module host-os
   func_module perl
+  func_module posix-shell
   func_module uptime
   func_end_table
 }