* m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
[gnulib.git] / MODULES.html.sh
index d2c619d..e3e74f4 100755 (executable)
@@ -17,7 +17,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 
-# Usage: MODULES.html.sh > MODULES.html
+# Usage: MODULES.html.sh [--cvs-urls|--git-urls] > MODULES.html
 
 # Extend the PATH so that gnulib-tool is found.
 PATH=`dirname "$0"`:$PATH; export PATH
@@ -28,6 +28,25 @@ case $USER in
     POSIX2001_URL='file:/packages/www/www.opengroup.org/susv3' ;;
 esac
 
+repo_url_prefix=
+repo_url_suffix=
+if test $# != 0; then
+  case "$1" in
+    --cvs-urls)
+      # Generate URLs to the official gnulib CVS repository.
+      repo_url_prefix='http://cvs.sv.gnu.org/viewcvs/*checkout*/gnulib/'
+      repo_url_suffix='?root=gnulib&content-type=text/plain'
+      ;;
+    --git-urls)
+      # Generate URLs to the official gnulib git repository.
+      repo_url_prefix='http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f='
+      repo_url_suffix=''
+      ;;
+  esac
+fi
+# For sed replacements: Escape the '&'.
+repo_url_suffix_repl=`echo "$repo_url_suffix" | sed -e 's,[&],\\\&,'`
+
 sed_lt='s,<,\&lt;,g'
 sed_gt='s,>,\&gt;,g'
 sed_escape_dot='s,\.,\\.,g'
@@ -254,7 +273,6 @@ conj
 conjf
 conjl
 connect
-contents
 copysign
 copysignf
 copysignl
@@ -331,7 +349,6 @@ erfcl
 erff
 erfl
 errno
-exec
 execl
 execle
 execlp
@@ -1141,7 +1158,6 @@ timezone
 tmpfile
 tmpnam
 toascii
-toc
 tolower
 toupper
 towctrans
@@ -1404,14 +1420,15 @@ func_module ()
 
     func_begin TR
 
-    element='<A NAME="module='$1'"></A><A HREF="modules/'$1'">'$1'</A>'
+    element='<A NAME="module='$1'"></A><A HREF="'$repo_url_prefix'modules/'$1$repo_url_suffix'">'$1'</A>'
     func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
 
     includes=`gnulib-tool --extract-include-directive $1`
-    files=`gnulib-tool --extract-filelist $1`
+    files=`gnulib-tool --extract-filelist $1 \
+           | grep -v '^m4/gnulib-common\.m4$'`
     element=`echo "$includes" \
              | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" \
-                   -e 's,^#include "\(.*\)"$,#include "<A HREF="lib/\1">\1</A>",' \
+                   -e 's,^#include "\(.*\)"$,#include "<A HREF="'$repo_url_prefix'lib/\1'$repo_url_suffix_repl'">\1</A>",' \
                    -e 's,^#include &lt;'"${posix_headers}"'\.h&gt;$,#include \&lt;<A HREF="'"$POSIX2001_URL"'xbd/\1.h.html">\1.h</A>\&gt;,' \
                    -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
     test -n "$element" || element='---'
@@ -1426,7 +1443,7 @@ func_module ()
              | sed -e '/^$/d' \
              | sed -n -e "$sed_choose_lib_files" \
              | sed -e '/^'"${includefile}"'$/d' \
-                   -e 's,^\(.*\)$,<A HREF="lib/\1">\1</A>,' \
+                   -e 's,^\(.*\)$,<A HREF="'$repo_url_prefix'lib/\1'$repo_url_suffix_repl'">\1</A>,' \
                    -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
     test -n "$element" || element='---'
     func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
@@ -1436,7 +1453,7 @@ func_module ()
               | sed -e "$sed_remove_trailing_empty_line" \
               | sed -n -e "$sed_choose_m4_files" \
               | sed -e '/^onceonly/d' \
-                    -e 's,^\(.*\)$,<A HREF="m4/\1">\1</A>,'; \
+                    -e 's,^\(.*\)$,<A HREF="'$repo_url_prefix'm4/\1'$repo_url_suffix_repl'">\1</A>,'; \
               gnulib-tool --extract-autoconf-snippet $1 \
               | sed -e "$sed_remove_trailing_empty_line") \
               | sed -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
@@ -1471,6 +1488,7 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module stdlib
   func_module exit
   func_module atexit
   func_module strtod
@@ -1483,7 +1501,6 @@ func_all_modules ()
   func_module memset
   func_module strcspn
   func_module strpbrk
-  func_module strstr
   func_module strerror
   func_module mktime
   func_end_table
@@ -1506,6 +1523,28 @@ func_all_modules ()
   func_module verify
   func_end_table
 
+  element="Mathematics <math.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap ansic_enh_math
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module fpieee
+  func_end_table
+
+  element="Input/output <stdio.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap ansic_enh_stdio
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module fflush
+  func_module fseterr
+  func_module tmpfile
+  func_end_table
+
   element="Memory management functions <stdlib.h>"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
   func_section_wrap ansic_enh_stdlib_memory
@@ -1521,6 +1560,16 @@ func_all_modules ()
   func_module pagealign_alloc
   func_end_table
 
+  element="Sorting functions <stdlib.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap ansic_enh_stdlib_sorting
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module mpsort
+  func_end_table
+
   element="Date and time <time.h>"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
   func_section_wrap ansic_enh_time_datetime
@@ -1601,10 +1650,12 @@ func_all_modules ()
   func_module stpncpy
   func_module c-strcase
   func_module strcase
+  func_module c-strcaseeq
   func_module c-strcasestr
   func_module strcasestr
   func_module strchrnul
   func_module strdup
+  func_module streq
   func_module strnlen
   func_module strnlen1
   func_module strndup
@@ -1615,6 +1666,16 @@ func_all_modules ()
   func_module xstrndup
   func_end_table
 
+  element="Mathematics <math.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap ansic_ext_math
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module printf-frexp
+  func_end_table
+
   element="Numeric conversion functions <stdlib.h>"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
   func_section_wrap ansic_ext_stdlib_conv
@@ -1695,21 +1756,52 @@ func_all_modules ()
   func_module linkedhash-list
   func_module avltreehash-list
   func_module rbtreehash-list
+  func_module sublist
   func_module oset
   func_module array-oset
   func_module avltree-oset
   func_module rbtree-oset
   func_end_table
 
-  element="Cryptographic computations"
+  element="Cryptographic computations (low-level)"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
   func_section_wrap ansic_ext_crypto
   func_wrap H3
   func_echo "$element"
 
   func_begin_table
-  func_module md5
-  func_module sha1
+  func_module crypto/arcfour
+  func_module crypto/arctwo
+  func_module crypto/des
+  func_module crypto/hmac-md5
+  func_module crypto/hmac-sha1
+  func_module crypto/md2
+  func_module crypto/md4
+  func_module crypto/md5
+  func_module crypto/rijndael
+  func_module crypto/sha1
+  func_end_table
+
+  element="Cryptographic computations (high-level)"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap ansic_ext_crypto2
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module crypto/gc
+  func_module crypto/gc-arcfour
+  func_module crypto/gc-arctwo
+  func_module crypto/gc-des
+  func_module crypto/gc-hmac-md5
+  func_module crypto/gc-hmac-sha1
+  func_module crypto/gc-md2
+  func_module crypto/gc-md4
+  func_module crypto/gc-md5
+  func_module crypto/gc-pbkdf2-sha1
+  func_module crypto/gc-random
+  func_module crypto/gc-rijndael
+  func_module crypto/gc-sha1
   func_end_table
 
   element="Misc"
@@ -1749,6 +1841,8 @@ func_all_modules ()
 
   func_begin_table
   func_module flexmember
+  func_module fpucw
+  func_module inline
   func_module vararrays
   func_end_table
 
@@ -1799,6 +1893,7 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module stdio
   func_module snprintf
   func_module vsnprintf
   func_end_table
@@ -1821,10 +1916,23 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module imaxabs
+  func_module imaxdiv
+  func_module inttypes
   func_module strtoimax
   func_module strtoumax
   func_end_table
 
+  element="Extended multibyte and wide character utilities <wchar.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap isoc_sup_wchar
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module wchar
+  func_end_table
+
   element="Wide character classification and mapping utilities <wctype.h>"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
   func_section_wrap isoc_sup_wctype
@@ -1842,6 +1950,13 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module frexp
+  func_module frexpl
+  func_module isnan-nolibm
+  func_module isnanl
+  func_module isnanl-nolibm
+  func_module ldexpl
+  func_module math
   func_module mathl
   func_end_table
 
@@ -1858,6 +1973,16 @@ func_all_modules ()
   func_wrap H2
   func_echo "$element"
 
+  element="Mathematics <math.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap isoc_ext_math
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module printf-frexpl
+  func_end_table
+
   element="Numeric conversion functions <stdlib.h>"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
   func_section_wrap isoc_ext_stdlib_conv
@@ -1892,6 +2017,8 @@ func_all_modules ()
   func_begin_table
   func_module chown
   func_module dup2
+  func_module fchdir
+  func_module fprintf-posix
   func_module ftruncate
   func_module getaddrinfo
   func_module getcwd
@@ -1908,20 +2035,37 @@ func_all_modules ()
   func_module poll
   func_module readlink
   func_module lstat
+  func_module printf-posix
+  func_module snprintf-posix
+  func_module sprintf-posix
+  func_module string
   func_module tempname
+  func_module time
   func_module time_r
   func_module timespec
   func_module nanosleep
   func_module regex
   func_module rename
   func_module rmdir
+  func_module search
   func_module sigprocmask
+  func_module socklen
   func_module ssize_t
+  func_module strptime
   func_module strtok_r
+  func_module sys_select
+  func_module sys_socket
   func_module sys_stat
+  func_module sys_time
   func_module tsearch
   func_module unistd
   func_module utime
+  func_module vasnprintf-posix
+  func_module vasprintf-posix
+  func_module vfprintf-posix
+  func_module vprintf-posix
+  func_module vsnprintf-posix
+  func_module vsprintf-posix
   func_module wcwidth
   func_end_table
 
@@ -1993,6 +2137,7 @@ func_all_modules ()
   func_module file-type
   func_module fileblocks
   func_module filemode
+  func_module filename
   func_module filenamecat
   func_module fts
   func_module fts-lgpl
@@ -2004,7 +2149,6 @@ func_all_modules ()
   func_module modechange
   func_module mountlist
   func_module openat
-  func_module pathname
   func_module pathmax
   func_module same
   func_module save-cwd
@@ -2015,8 +2159,10 @@ func_all_modules ()
   func_module unlinkdir
   func_module utimecmp
   func_module utimens
+  func_module write-any-file
   func_module xgetcwd
   func_module xreadlink
+  func_module xreadlink-with-size
   func_end_table
 
   element="File descriptor based Input/Output"
@@ -2043,9 +2189,12 @@ func_all_modules ()
 
   func_begin_table
   func_module close-stream
+  func_module closein
   func_module closeout
   func_module fopen-safer
   func_module fpending
+  func_module freading
+  func_module fwriting
   func_module getpass
   func_module getpass-gnu
   func_module stdlib-safer
@@ -2112,9 +2261,23 @@ func_all_modules ()
   func_module iconv
   func_module striconv
   func_module xstriconv
-  func_module iconvme
+  func_module striconveh
+  func_module striconveha
   func_module localcharset
   func_module hard-locale
+  func_module mbslen
+  func_module mbschr
+  func_module mbsrchr
+  func_module mbsstr
+  func_module mbscasecmp
+  func_module mbsncasecmp
+  func_module mbspcasecmp
+  func_module mbscasestr
+  func_module mbscspn
+  func_module mbspbrk
+  func_module mbsspn
+  func_module mbssep
+  func_module mbstok_r
   func_module mbswidth
   func_module memcasecmp
   func_module memcoll
@@ -2136,10 +2299,10 @@ func_all_modules ()
   func_module unitypes
   func_module ucs4-utf8
   func_module ucs4-utf16
+  func_module utf8-ucs4-unsafe
+  func_module utf16-ucs4-unsafe
   func_module utf8-ucs4
   func_module utf16-ucs4
-  func_module utf8-ucs4-safe
-  func_module utf16-ucs4-safe
   func_module unistr/base
   func_module unistr/u8-to-u16
   func_module unistr/u8-to-u32
@@ -2168,12 +2331,15 @@ func_all_modules ()
   func_module unistr/u8-mblen
   func_module unistr/u16-mblen
   func_module unistr/u32-mblen
+  func_module unistr/u8-mbtouc-unsafe
+  func_module unistr/u16-mbtouc-unsafe
+  func_module unistr/u32-mbtouc-unsafe
   func_module unistr/u8-mbtouc
   func_module unistr/u16-mbtouc
   func_module unistr/u32-mbtouc
-  func_module unistr/u8-mbtouc-safe
-  func_module unistr/u16-mbtouc-safe
-  func_module unistr/u32-mbtouc-safe
+  func_module unistr/u8-mbtoucr
+  func_module unistr/u16-mbtoucr
+  func_module unistr/u32-mbtoucr
   func_module unistr/u8-move
   func_module unistr/u16-move
   func_module unistr/u32-move
@@ -2252,6 +2418,22 @@ func_all_modules ()
   func_module unistr/u8-uctomb
   func_module unistr/u16-uctomb
   func_module unistr/u32-uctomb
+  func_module uniconv/base
+  func_module uniconv/u8-conv-from-enc
+  func_module uniconv/u16-conv-from-enc
+  func_module uniconv/u32-conv-from-enc
+  func_module uniconv/u8-strconv-from-enc
+  func_module uniconv/u16-strconv-from-enc
+  func_module uniconv/u32-strconv-from-enc
+  func_module uniconv/u8-strconv-to-enc
+  func_module uniconv/u16-strconv-to-enc
+  func_module uniconv/u32-strconv-to-enc
+  func_module uniconv/u8-strconv-from-locale
+  func_module uniconv/u16-strconv-from-locale
+  func_module uniconv/u32-strconv-from-locale
+  func_module uniconv/u8-strconv-to-locale
+  func_module uniconv/u16-strconv-to-locale
+  func_module uniconv/u32-strconv-to-locale
   func_end_table
 
   element="Executing programs"
@@ -2277,7 +2459,9 @@ func_all_modules ()
 
   func_begin_table
   func_module classpath
+  func_module javacomp-script
   func_module javacomp
+  func_module javaexec-script
   func_module javaexec
   func_module javaversion
   #func_module gcj
@@ -2290,7 +2474,9 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module csharpcomp-script
   func_module csharpcomp
+  func_module csharpexec-script
   func_module csharpexec
   func_end_table
 
@@ -2336,9 +2522,16 @@ func_all_modules ()
   func_module configmake
   func_module dummy
   func_module elisp-comp
+  func_module havelib
   func_module ldd
   func_module lib-ignore
+  func_module link-warning
   func_module no-c++
+  func_module relocatable-lib
+  func_module relocatable-lib-lgpl
+  func_module relocatable-prog
+  func_module relocatable-prog-wrapper
+  func_module relocatable-script
   func_end_table
 
   element="Support for building documentation"
@@ -2354,12 +2547,14 @@ func_all_modules ()
   func_module regexprops-generic
   func_end_table
 
-  element="Support for maintaining and release projects"
+  element="Support for maintaining and releasing projects"
   func_section_wrap maintain
   func_wrap H2
   func_echo "$element"
 
   func_begin_table
+  func_module announce-gen
+  func_module autobuild
   func_module gnupload
   func_module maintainer-makefile
   func_end_table
@@ -2452,7 +2647,7 @@ if test -n "$missed_files"; then
   func_echo "$element"
 
   func_echo '<PRE>'
-  echo "$missed_files" | sed -e 's,^\(.*\)$,<A HREF="\1">\1</A>,'
+  echo "$missed_files" | sed -e 's,^\(.*\)$,<A HREF="'$repo_url_prefix'\1'$repo_url_suffix_repl'">\1</A>,'
   echo '</PRE>'
 
 fi