[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
--avoid with --extract-dependencies
From: |
Sergey Poznyakoff |
Subject: |
--avoid with --extract-dependencies |
Date: |
Fri, 20 Jan 2006 16:37:35 EET |
Shouldn't `--avoid' work with `--extract-dependencies'? I propose the
following patch:
Index: gnulib-tool
===================================================================
RCS file: /cvsroot/gnulib/gnulib/gnulib-tool,v
retrieving revision 1.102
diff -p -u -r1.102 gnulib-tool
--- gnulib-tool 19 Jan 2006 09:05:56 -0000 1.102
+++ gnulib-tool 20 Jan 2006 14:33:08 -0000
@@ -537,7 +537,13 @@ func_get_dependencies ()
# ${module}-tests always implicitly depends on ${module}.
echo "$1" | sed -n -e 's/-tests//p'
# Then the explicit dependencies listed in the module description.
- sed -n -e "/^Depends-on$sed_extract_prog" < "$gnulib_dir/modules/$1"
+ sed -n -e "/^Depends-on$sed_extract_prog" < "$gnulib_dir/modules/$1" |
+ while read module
+ do
+ if func_acceptable $module; then
+ echo $module
+ fi
+ done
}
Regards,
Sergey
- --avoid with --extract-dependencies,
Sergey Poznyakoff <=