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


"Dave Korn" <dk@artimi.com> writes:

>   So, do you think it would be suitable to replace the for loop with a
> couple of lines like:
> 
> 	find $(libsubdir)/include/ -name '\*.h' -xargs rm
> 	-rm $(libsubdir)/include/README
> 
> because if that's acceptable (in terms of gnu portable shell coding
> standards), I'll send a take 2 tomorrow.

I don't know you if you mean to say -xargs, but that is not portable.
The xargs program is reasonably portable, but will break if any of the
file names include spaces.  xargs -0 is not portable.

This is portable:
    find $(libsubdir)/include -name '*.h' -exec rm -f '{}'

Ian


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