# 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
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,<,\<,g'
sed_gt='s,>,\>,g'
sed_escape_dot='s,\.,\\.,g'
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`
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 <'"${posix_headers}"'\.h>$,#include \<<A HREF="'"$POSIX2001_URL"'xbd/\1.h.html">\1.h</A>\>,' \
-e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
test -n "$element" || element='---'
| 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"
| 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>$//'`
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
func_begin_table
func_module chown
func_module dup2
+ func_module fchdir
func_module ftruncate
func_module getaddrinfo
func_module getcwd
func_module ucs4-utf16
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
+ func_module unistr/u16-to-u8
+ func_module unistr/u16-to-u32
+ func_module unistr/u32-to-u8
+ func_module unistr/u32-to-u16
+ func_module unistr/u8-check
+ func_module unistr/u16-check
+ func_module unistr/u32-check
+ func_module unistr/u8-chr
+ func_module unistr/u16-chr
+ func_module unistr/u32-chr
+ func_module unistr/u8-cmp
+ func_module unistr/u16-cmp
+ func_module unistr/u32-cmp
+ func_module unistr/u8-cpy
+ func_module unistr/u16-cpy
+ func_module unistr/u32-cpy
+ func_module unistr/u8-cpy-alloc
+ func_module unistr/u16-cpy-alloc
+ func_module unistr/u32-cpy-alloc
+ func_module unistr/u8-endswith
+ func_module unistr/u16-endswith
+ func_module unistr/u32-endswith
+ func_module unistr/u8-mblen
+ func_module unistr/u16-mblen
+ func_module unistr/u32-mblen
+ 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-move
+ func_module unistr/u16-move
+ func_module unistr/u32-move
+ func_module unistr/u8-next
+ func_module unistr/u16-next
+ func_module unistr/u32-next
+ func_module unistr/u8-prev
+ func_module unistr/u16-prev
+ func_module unistr/u32-prev
+ func_module unistr/u8-set
+ func_module unistr/u16-set
+ func_module unistr/u32-set
+ func_module unistr/u8-startswith
+ func_module unistr/u16-startswith
+ func_module unistr/u32-startswith
+ func_module unistr/u8-stpcpy
+ func_module unistr/u16-stpcpy
+ func_module unistr/u32-stpcpy
+ func_module unistr/u8-stpncpy
+ func_module unistr/u16-stpncpy
+ func_module unistr/u32-stpncpy
+ func_module unistr/u8-strcat
+ func_module unistr/u16-strcat
+ func_module unistr/u32-strcat
+ func_module unistr/u8-strchr
+ func_module unistr/u16-strchr
+ func_module unistr/u32-strchr
+ func_module unistr/u8-strcmp
+ func_module unistr/u16-strcmp
+ func_module unistr/u32-strcmp
+ func_module unistr/u8-strcpy
+ func_module unistr/u16-strcpy
+ func_module unistr/u32-strcpy
+ func_module unistr/u8-strcspn
+ func_module unistr/u16-strcspn
+ func_module unistr/u32-strcspn
+ func_module unistr/u8-strdup
+ func_module unistr/u16-strdup
+ func_module unistr/u32-strdup
+ func_module unistr/u8-strlen
+ func_module unistr/u16-strlen
+ func_module unistr/u32-strlen
+ func_module unistr/u8-strmblen
+ func_module unistr/u16-strmblen
+ func_module unistr/u32-strmblen
+ func_module unistr/u8-strmbtouc
+ func_module unistr/u16-strmbtouc
+ func_module unistr/u32-strmbtouc
+ func_module unistr/u8-strncat
+ func_module unistr/u16-strncat
+ func_module unistr/u32-strncat
+ func_module unistr/u8-strncmp
+ func_module unistr/u16-strncmp
+ func_module unistr/u32-strncmp
+ func_module unistr/u8-strncpy
+ func_module unistr/u16-strncpy
+ func_module unistr/u32-strncpy
+ func_module unistr/u8-strnlen
+ func_module unistr/u16-strnlen
+ func_module unistr/u32-strnlen
+ func_module unistr/u8-strpbrk
+ func_module unistr/u16-strpbrk
+ func_module unistr/u32-strpbrk
+ func_module unistr/u8-strrchr
+ func_module unistr/u16-strrchr
+ func_module unistr/u32-strrchr
+ func_module unistr/u8-strspn
+ func_module unistr/u16-strspn
+ func_module unistr/u32-strspn
+ func_module unistr/u8-strstr
+ func_module unistr/u16-strstr
+ func_module unistr/u32-strstr
+ func_module unistr/u8-strtok
+ func_module unistr/u16-strtok
+ func_module unistr/u32-strtok
+ func_module unistr/u8-uctomb
+ func_module unistr/u16-uctomb
+ func_module unistr/u32-uctomb
func_end_table
element="Executing programs"
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