[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-242-gb25abe6

David Paleino dapal at debian.org
Mon May 2 14:30:56 UTC 2011


The following commit has been merged in the master branch:
commit b25abe601daf622cd6957d2f07383a4c71e3a01b
Author: David Paleino <dapal at debian.org>
Date:   Mon May 2 16:29:43 2011 +0200

    ant: handle "extension-point" the same as "target" tag (Petr Kozelka, Alioth: #313105)

diff --git a/CHANGES b/CHANGES
index a05b569..2db8963 100644
--- a/CHANGES
+++ b/CHANGES
@@ -32,6 +32,8 @@ bash-completion (2.x)
     with a cword+1 argument already present (Debian: #622383)
   * Remove --unpack-level from lintian options (Debian: #623680)
   * Complete filenames after commands in rrdtool (Debian: #577933)
+  * ant: handle "extension-point" the same as "target" tag (Petr Kozelka
+    Alioth: #313105)
 
   [ Freddy Vulto ]
   * Improve __reassemble_comp_words_by_ref() to not create words of
diff --git a/completions/ant b/completions/ant
index 4a72965..286318c 100644
--- a/completions/ant
+++ b/completions/ant
@@ -47,7 +47,7 @@ _ant()
         # some versions of sed complain if there's no trailing linefeed,
         # hence the 2>/dev/null
         COMPREPLY=( $( compgen -W "$( tr "'\t\n>" "\"  \n" < $buildfile | \
-            sed -ne 's/.*<target .*name="\([^"]*\).*/\1/p' 2>/dev/null )" \
+            sed -ne 's/.*<\(target\|extension-point\) .*name="\([^"]*\).*/\2/p' 2>/dev/null )" \
             -- "$cur" ) )
     fi
 } &&

-- 
bash-completion



More information about the Bash-completion-commits mailing list