From b25abe601daf622cd6957d2f07383a4c71e3a01b Mon Sep 17 00:00:00 2001 From: David Paleino Date: Mon, 2 May 2011 16:29:43 +0200 Subject: [PATCH] ant: handle "extension-point" the same as "target" tag (Petr Kozelka, Alioth: #313105) --- CHANGES | 2 ++ completions/ant | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index a05b5699..2db89634 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 4a729654..286318ce 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/.*/dev/null )" \ + sed -ne 's/.*<\(target\|extension-point\) .*name="\([^"]*\).*/\2/p' 2>/dev/null )" \ -- "$cur" ) ) fi } &&