diff options
author | Robby Russell <robby@planetargon.com> | 2014-12-14 16:44:06 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-12-14 16:44:06 -0800 |
commit | 0a96bb15779e8dad3586f77582f58e987b4c265a (patch) | |
tree | 9d89d885acd1555d3feb47ae3a00cf742b6bf4a4 | |
parent | fe75c968ef11a8005c4422df93a33ca6945dc207 (diff) | |
parent | 9c11202fde61bf3db6755f4083c320d710fe3bd5 (diff) | |
download | zsh-0a96bb15779e8dad3586f77582f58e987b4c265a.tar.gz zsh-0a96bb15779e8dad3586f77582f58e987b4c265a.tar.bz2 zsh-0a96bb15779e8dad3586f77582f58e987b4c265a.zip |
Merge pull request #2094 from frantzmiccoli/phing-fix
Phing plugin improvment
-rw-r--r-- | plugins/phing/phing.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/phing/phing.plugin.zsh b/plugins/phing/phing.plugin.zsh index 795f1db85..1f022047c 100644 --- a/plugins/phing/phing.plugin.zsh +++ b/plugins/phing/phing.plugin.zsh @@ -1,13 +1,13 @@ _phing_does_target_list_need_generating () { [ ! -f .phing_targets ] && return 0; - [ .phing_targets -nt build.xml ] && return 0; + [ build.xml -nt .phing_targets ] && return 0; return 1; } _phing () { if [ -f build.xml ]; then if _phing_does_target_list_need_generating; then - phing -l |grep -v ":$" |grep -v "^-*$" > .phing_targets + phing -l|grep -v "\[property\]"|grep -v "Buildfile"|sed 1d|grep -v ":$" |grep -v "^\-*$"|awk '{print $1}' > .phing_targets fi compadd `cat .phing_targets` fi |