X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=MODULES.html.sh;h=66147552f98948d0d4fd071db7bc1f47d489e0ad;hb=cda636671de46bd0c60641ac60d6399662d7af2c;hp=3f353a7793e12bffdc75a4ed6f4abab2f4081acb;hpb=e74e1f1540f02fc57e442a6281c62f9594af15e5;p=gnulib.git diff --git a/MODULES.html.sh b/MODULES.html.sh index 3f353a779..66147552f 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -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=''$1'' func_echo "
xxx
.
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\2(),g' \
- -e 's,^ ,,'`
+ -e 's,^, ,' -e 's,$, ,' \
+ -e 's,\([^a-zA-Z_]\)'"${posix_functions}"'() \(function\|macro\),\1\2 \3,g' \
+ -e 's,\([^a-zA-Z_]\)'"${posix_functions}"' \(function\|macro\),\1\2 \3,g' \
+ -e 's,\([^a-zA-Z_]\)'"${posix_functions}"'(),\1\2 what?? If you mean a function\, please say so.,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 what?? If you mean a function\, please say so.,g' \
+ -e 's, '"'"'\([a-zA-Z0-9_ -]*\)'"'"'\([^a-zA-Z0-9_]\), \1
\2,g' \
+ -e 's,^ ,,' -e 's, $,,'`
func_echo "