While experimenting with a module named foo-testsuite, I noted this
glitch in gnulib-tool, and applied the obvious fix.

Cheers,
Ralf

2007-10-17  Ralf Wildenhues  <[EMAIL PROTECTED]>

        * gnulib-tool (func_get_dependencies): Fix sed script to
        match only tests.

diff --git a/gnulib-tool b/gnulib-tool
index 1003f4c..09059fc 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -1212,7 +1212,7 @@ func_get_filelist ()
 func_get_dependencies ()
 {
   # ${module}-tests always implicitly depends on ${module}.
-  echo "$1" | sed -n -e 's/-tests//p'
+  echo "$1" | sed -n -e 's/-tests$//p'
   # Then the explicit dependencies listed in the module description.
   func_lookup_file "modules/$1"
   sed -n -e "/^Depends-on$sed_extract_prog" < "$lookedup_file"


Reply via email to