* gnulib-tool (func_import): For "Module list with included dependencies", output two module lists: explicit and dependencies.
Signed-off-by: Thien-Thi Nguyen <t...@gnuvola.org> --- Starting to use gnulib for GNU RCS, and playing with "gnulib-tool --import strsignal". Fun stuff. I saw the huge list of modules pulled in and wondered where to start cutting (via "--avoid"). This change to gnulib-tool helps me to do the job more quickly by letting me ignore (for the purposes of experimental cutting) the explicitly specified modules. ChangeLog | 6 ++++++ gnulib-tool | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 82263a7..2a9aefd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-04-01 Thien-Thi Nguyen <t...@gnuvola.org> + + gnulib-tool: List modules separately, explicit vs dependencies. + * gnulib-tool (func_import): For "Module list with included + dependencies", output two module lists: explicit and dependencies. + 2010-03-31 Eric Blake <ebl...@redhat.com> maint.mk: check for [ as well as test diff --git a/gnulib-tool b/gnulib-tool index 0b07e7a..94e077b 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -3525,7 +3525,13 @@ func_import () func_modules_transitive_closure if test $verbose -ge 0; then echo "Module list with included dependencies:" - echo "$modules" | sed -e 's/^/ /' + # Separating explicit from implicit gives an idea of how bad your + # particular case of creeping gnulibitis has developed. --ttn + echo '(explicitly specified)' + echo "$specified_modules" | tee "$tmp"/want | sed -e 's/^/ /' + sed -e 's|.*|/&/d|' "$tmp"/want > "$tmp"/want.sed + echo '(dependencies)' + echo "$modules" | sed -f "$tmp"/want.sed | sed -e 's/^/ /' fi final_modules="$modules" -- 1.6.3.2