Date: Fri, 29 Mar 2002 03:39:00 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Julian Elischer <julian@vicor-nb.com> Cc: questions@freebsd.org Subject: Re: Stupid "make" question Message-ID: <20020329013900.GC6932@hades.hell.gr> In-Reply-To: <3CA3C03E.F1607CE8@vicor-nb.com> References: <3CA3C03E.F1607CE8@vicor-nb.com>
index | next in thread | previous in thread | raw e-mail
On 2002-03-28 17:15, Julian Elischer wrote:
> Maybe a Make guru can help me on this:
>
> I want to embed the following snippet into a Makefile,
> but it'd defeating me....
>
> #
> # find the files being patched and revert them using CVS
> #
> unpatch:
> FILES=`grep Index ${FREEBSD_PATCHES}/*/*.patch | awk '{print $2}'`; \
> rm $$FILES ; cd src;cvs update $$FILES )
(Note that you have a mismatched closing parenthesis in the snippet above.)
> any ideas?
Sure. You might want to use != to catch shell output in a variable, and
then simply use that in unpatch.
FILES!= grep Index ${FREEBSD_PATCHES}/*/*.patch | awk '{print $2}'
rm ${FILES}
( cd src ; cvs update ${FILES} )
I haven't tested this, though, so I might be terribly wrong here...
- Giorgos
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020329013900.GC6932>
