changeset 9088:f5d60677ace5

avoid error on files in subdirs
author Karl Berry <karl@freefriends.org>
date Wed, 11 Jul 2007 23:29:23 +0000
parents 6404a746e396
children 88ca1c53f8c3
files ChangeLog MODULES.html.sh
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-11  Karl Berry  <karl@gnu.org>
+
+	* MODULES.html.sh (func_module): use
+	 sed -e '\|^'"${includefile}"'$|d' 
+	 instead of /.../d, to avoid errors on $includefile's containing /.
+
 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 	* gnulib-tool (func_import): Avoid duplication of --avoid
--- a/MODULES.html.sh
+++ b/MODULES.html.sh
@@ -1442,7 +1442,7 @@
     element=`echo "$files" \
              | sed -e '/^$/d' \
              | sed -n -e "$sed_choose_lib_files" \
-             | sed -e '/^'"${includefile}"'$/d' \
+             | sed -e '\|^'"${includefile}"'$|d' \
                    -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='---'