a7c88c988a4be02b8883c06e57c6eb290c8fcb21

Author
Fräntz Miccoli <frantz.miccoli@fakedomain.com>
Committer
Fräntz Miccoli <frantz.miccoli@fakedomain.com>
Date

Message

Removed comments and other elements that might appear in the phing -l output. The current version doesn't work at all on my environment (OSX 10.7)

Diff

 1diff --git a/plugins/phing/phing.plugin.zsh b/plugins/phing/phing.plugin.zsh
 2index 795f1db852874932e0331bb5bcb9e14ba59bdd50..9af03af244bf992c3558ea31b020f0c0704a4484 100644
 3--- a/plugins/phing/phing.plugin.zsh
 4+++ b/plugins/phing/phing.plugin.zsh
 5@@ -7,7 +7,7 @@ _phing_does_target_list_need_generating () {
 6 _phing () {
 7   if [ -f build.xml ]; then
 8     if _phing_does_target_list_need_generating; then
 9-      phing -l |grep -v ":$" |grep -v "^-*$" > .phing_targets
10+      phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}' > .phing_targets
11     fi
12     compadd `cat .phing_targets`
13   fi