* patch for supporting <import>s in ant completion
@ 2005-02-19 12:57 Konstantin Sobolev
0 siblings, 0 replies; only message in thread
From: Konstantin Sobolev @ 2005-02-19 12:57 UTC (permalink / raw)
To: zsh-workers
Hi,
I've patched ant completion to gather targets from imported files also
(http://ant.apache.org/manual/CoreTasks/import.html)
Though It doesn't expand properties, may be it will find it's place in
some of the future versions..
/usr/share/zsh/4.2.4/functions/Completion/Unix $ diff ant.orig _ant
89c89,93
< targets=( $(sed -n "s/ *<target[^>]*
name=[\"']\([^\"']*\)[\"'].*/\1/p" < $buildfile) )
---
> files=( $(sed -n "s/ *<import[^>]* file=[\"']\([^\"']*\)[\"'].*/\1/p" < $buildfile) $buildfile )
> targets=( )
> foreach file ( $files ) do
> targets=( $(sed -n "s/ *<target[^>]* name=[\"']\([^\"']*\)[\"'].*/\1/p" < $file) $targets )
> done
--
/KoS
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-19 13:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-19 12:57 patch for supporting <import>s in ant completion Konstantin Sobolev
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).