mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-26 21:51:03 +02:00
27061: Nicolas Lalevée: importing files into ant
This commit is contained in:
parent
506c845b25
commit
cf87e2562c
2 changed files with 16 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-06-27 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* 27061: Nicolas Lalevée: Completion/Unix/Command/_ant:
|
||||
importing files into ant.
|
||||
|
||||
2009-06-26 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* Greg Klanderman: 27057: Src/utils.c: %e and %f time formats
|
||||
|
@ -11860,5 +11865,5 @@
|
|||
|
||||
*****************************************************
|
||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||
* $Revision: 1.4718 $
|
||||
* $Revision: 1.4719 $
|
||||
*****************************************************
|
||||
|
|
|
@ -12,10 +12,16 @@ find_targets() {
|
|||
# be invoked from the command line; see zsh-workers/24129.
|
||||
sed -n "s/ *<target[^>]* name=[\"']\([^-][^\"']*\)[\"'].*/\1/p" $1
|
||||
if (( $#importedfiles )) ; then
|
||||
( cd $1:h
|
||||
for file in $importedfiles ; do
|
||||
find_targets $file
|
||||
done )
|
||||
( cd $1:h
|
||||
for file in $importedfiles ; do
|
||||
expanded=( $(echo $file | sed -n "s|\${ant.home}|$ANT_HOME|p") )
|
||||
if [[ ! "bla$expanded" = "bla" ]]; then
|
||||
file=$expanded
|
||||
fi
|
||||
if [[ -f $file ]]; then
|
||||
find_targets $file
|
||||
fi
|
||||
done )
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue