This is the mail archive of the
mailing list for the GCC project.
RE: [RFC/PATCH] make "make install" play nicely in CVS trees
- From: "Dave Korn" <dk at artimi dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 25 Mar 2004 18:23:53 -0000
- Subject: RE: [RFC/PATCH] make "make install" play nicely in CVS trees
> -----Original Message-----
> From: Ian Lance Taylor
> Sent: 25 March 2004 18:06
> "Dave Korn" writes:
> > BTW, is there a written set of guidelines about what shell
> > are portable enough to use in gnu software?
> Well, yes. Unfortunately, find is not on that list.
Ah. Blast. Maybe I should code it as something like
rm `ls -R -1 $(libsubdir)/include/*.h`
Hm. Except that blows up if there aren't any .h files. Hm. Maybe I have
to ls the entire subtree, pipe it through "grep \.h", then for each of the
names that gives me verify that it's a file (not a directory with a .h in
the name) and rm it individually. Maybe I can think of something more
efficient, but not right at once. I'll have to sleep on this one.
Thanks for your advice Ian. Maybe I should go beg Alexandre to suggest
something, IIRC he's pretty hot on the gnu portable shell scripting tricks.
Can't think of a witty .sigline today....