mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +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
|
|
@ -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…
Add table
Add a link
Reference in a new issue