bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnulib-tool: List modules separately, explicit vs dependencies.


From: Thien-Thi Nguyen
Subject: [PATCH] gnulib-tool: List modules separately, explicit vs dependencies.
Date: Fri, 02 Apr 2010 01:18:21 +0200

* gnulib-tool (func_import): For "Module list with included
dependencies", output two module lists: explicit and dependencies.

Signed-off-by: Thien-Thi Nguyen <address@hidden>
---

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  <address@hidden>
+
+       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  <address@hidden>
 
        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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]