[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-259-g21c5a0e

Ville Skyttä ville.skytta at iki.fi
Tue May 3 07:48:23 UTC 2011


The following commit has been merged in the master branch:
commit a36c1076fce31d704ed71045e679d298ff49956e
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue May 3 00:37:52 2011 +0300

    Revert "New completion for phing (Elan Ruusamäe, Alioth: #312910)"
    
    This reverts commit bf358666d2256213d59bd75c6194aaff41bc9893.
    
    Will reuse the ant completion for phing instead.

diff --git a/CHANGES b/CHANGES
index efefa4a..d77900d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -36,7 +36,6 @@ bash-completion (2.x)
   * Complete filenames after commands in rrdtool (Debian: #577933)
   * ant: handle "extension-point" the same as "target" tag (Petr Kozelka
     Alioth: #313105)
-  * New completion for phing (Elan Ruusamäe, Alioth: #312910)
 
   [ Freddy Vulto ]
   * Improve __reassemble_comp_words_by_ref() to not create words of
diff --git a/completions/phing b/completions/phing
deleted file mode 100644
index c400b3a..0000000
--- a/completions/phing
+++ /dev/null
@@ -1,58 +0,0 @@
-# bash completion for phing
-
-have phing || return
-
-_phing()
-{
-    local cur prev buildfile i
-    _init_completion || return
-
-    case $prev in
-        -buildfile|-file|-f)
-            _filedir 'xml'
-            return 0
-            ;;
-        -logfile)
-            _filedir
-            return 0
-            ;;
-        -logger|-listener|-D|-inputhandler)
-            return 0
-            ;;
-    esac
-
-    if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-help -version \
-            -quiet -verbose -debug -logfile -logger -listener \
-            -buildfile -D -inputhandler \
-            -find' \
-            -- "$cur" ) )
-    else
-        # available targets completion
-        # find which buildfile to use
-        buildfile=build.xml
-        for (( i=1; i < COMP_CWORD; i++ )); do
-            if [[ "${COMP_WORDS[i]}" == -@(?(build)file|f) ]]; then
-                buildfile=${COMP_WORDS[i+1]}
-                break
-            fi
-        done
-        [ ! -f $buildfile ] && return 0
-
-        # parse buildfile for targets
-        # some versions of sed complain if there's no trailing linefeed,
-        # hence the 2>/dev/null
-        COMPREPLY=( $( compgen -W "$( cat $buildfile | tr "'\t\n>" "\"  \n" | \
-            sed -ne 's/.*<target .*name="\([^"]*\).*/\1/p' 2>/dev/null )" \
-            -- "$cur" ) )
-        fi
-} &&
-complete -F _phing phing
-
-# Local variables:
-# mode: shell-script
-# sh-basic-offset: 4
-# sh-indent-comment: t
-# indent-tabs-mode: nil
-# End:
-# ex: ts=4 sw=4 et filetype=sh

-- 
bash-completion



More information about the Bash-completion-commits mailing list