From: Konstantin Sobolev <konstantin.sobolev@gmail.com>
To: zsh-workers@sunsite.dk
Subject: patch for supporting <import>s in ant completion
Date: Sat, 19 Feb 2005 15:57:00 +0300 [thread overview]
Message-ID: <94608ad8050219045771857127@mail.gmail.com> (raw)
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
reply other threads:[~2005-02-19 13:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=94608ad8050219045771857127@mail.gmail.com \
--to=konstantin.sobolev@gmail.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).