X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=MODULES.html.sh;h=8000e7741aef60795201b34445cdc4ae249d589f;hb=b792aeb401b00124b3c27c9f1d850d3312e7b849;hp=11c4e3e3aece897cf4b95bb182fa29fdf2bc5a70;hpb=980d2709cea1e46299cb5b4f74f7c7a95d07ef06;p=gnulib.git diff --git a/MODULES.html.sh b/MODULES.html.sh index 11c4e3e3a..8000e7741 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 "