bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH]: Change gnulib-tool to support NetBSD's join


From: J.T. Conklin
Subject: [PATCH]: Change gnulib-tool to support NetBSD's join
Date: Wed, 27 Apr 2011 08:23:53 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix)

For backwards compatibility, the 4.4BSD join used by NetBSD supports a
"-a" option as if it was "-a 1 -a 2".  Unfortunately, this was done in
such a way that "-a 1" and "-a 2" need to be passed as "-a1" or "-a2".


---
 ChangeLog   |    5 +++++
 gnulib-tool |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 248d0f3..a37c426 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-04-27  J.T. Conklin  <address@hidden>
+
+       * gnulib-tool: change "join -a 2" to "join -a2", the latter is
+       required by the NetBSD (and perhaps other 4.4BSD derived) join.
+
 2011-04-26  Paul Eggert  <address@hidden>
 
        inttypes: also provide default values for 32-bit tests
diff --git a/gnulib-tool b/gnulib-tool
index 9461027..49221f0 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -2522,7 +2522,7 @@ func_show_module_list ()
   echo "Module list with included dependencies (indented):"
   echo "$specified_modules" | sed -e '/^$/d' -e 's/$/| /' > 
"$tmp"/specified-modules
   echo "$modules" | sed -e '/^$/d' \
-    | LC_ALL=C join -t '|' -a 2 "$tmp"/specified-modules - \
+    | LC_ALL=C join -t '|' -a2 "$tmp"/specified-modules - \
     | sed -e 's/^\(.*\)|.*/|\1/' -e 's/^/    /' -e 's/^    |\(.*\)$/  
'"${bold_on}"'\1'"${bold_off}"'/'
 }
 
-- 
1.6.5.6



reply via email to

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