Removed commented code

This commit is contained in:
Daniel Platz 2017-01-20 19:53:42 +01:00
parent 80182975a4
commit 61ca96d78f

View File

@ -18,14 +18,12 @@ _ant () {
build_file="$words[3]" build_file="$words[3]"
fi fi
#local build_file=$(ls (ant*.xml|build.xml))
if [ $? -eq 0 -a -f $build_file ]; then if [ $? -eq 0 -a -f $build_file ]; then
if _ant_does_target_list_need_generating $build_file; then if _ant_does_target_list_need_generating $build_file; then
ant -f $build_file -p | awk -F " " 'NR > 5 { print lastTarget }{lastTarget = $1}' > .ant_targets ant -f $build_file -p | awk -F " " 'NR > 5 { print lastTarget }{lastTarget = $1}' > .ant_targets
fi fi
compadd -- $(cat .ant_targets) compadd -- $(cat .ant_targets)
fi fi
#_values 'target' a b c d e
;; ;;
esac esac
} }