[RFC/PATCH] make "make install" play nicely in CVS trees
Dave Korn
dk@artimi.com
Thu Mar 25 18:24:00 GMT 2004
> -----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
> constructs
> > are portable enough to use in gnu software?
>
> Well, yes. Unfortunately, find is not on that list.
>
> http://www.gnu.org/prep/standards_52.html#SEC52
>
> Ian
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.
cheers,
DaveK
--
Can't think of a witty .sigline today....
More information about the Gcc-patches
mailing list