[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using VPATH in depend2.am?
From: |
Harald Dunkel |
Subject: |
Re: using VPATH in depend2.am? |
Date: |
Mon, 24 Oct 2005 18:28:33 +0200 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20050402) |
Hi,
Stepan Kasal wrote:
> Hello,
>
>
> Suggested code for today: ;-)
>
> `IFS=:; v=$(VPATH); \
> for d in '' $$v; do \
> test -n "$$d" && d=$$d/; \
> test -f $${d}%SOURCE% && echo $$d && break; \
> done`%SOURCE%
>
Works for me, as it seems.
Regards
Harri