This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 
> 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....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]