[Techtalk] Re: Loop/wildcard-like syntax for GNU make?
Conor Daly
conor.daly-linuxchix at cod.homelinux.org
Thu Apr 19 22:19:48 UTC 2007
On Thu, Apr 19, 2007 at 06:43:17PM +0200 or so it is rumoured hereabouts,
Michelle Konzack thought:
> Am 2007-04-18 09:28:51, schrieb Conor Daly:
> > This works for a straight cp and should work with convert also:
> >
> > all:
> > for FILE in *.png; do \
> > cp -f $$FILE $$(basename "$$FILE" png)jpg; \
> > done;
>
> Please read the manual to gnu make why you should avoid shell loops.
I read the manual far enough to figure out _how_ to do shell loops. Now I
have to go and read why not?!!! Arrgh!!
Conor (trudging off to look at the manual again...)
--
Conor Daly <conor.daly at cod.homelinux.org>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/G/S/O d+(-) s:+ a+ C++(+) UL++++ US++ P>++ L+++>++++ E--- W++ !N
PS+ PE Y+ PGP? tv(-) b+++(+) G e+++(*) h-- r+++ z++++
------END GEEK CODE BLOCK------
http://www.geekcode.com/ http://www.ebb.org/ungeek/
More information about the Techtalk
mailing list