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: ping: Use "sed -n …" instead of " sed s/…/p -e d" in s-header-vars


Il 15/05/2012 16:18, Olivier Hainque ha scritto:
>   	rm -f tmp-header-vars
> ! # The first sed gets the list "header variables" as the list variables
> ! # assigned in Makefile and having _H at the end of the name.  "sed -n" proved
> ! # more portable than a trailing "-e d" to filter out the uninteresting lines,
> ! # in particular on ia64-hpux where "s/.../p" only prints if -n was requested
> ! # as well.
> ! 	$(foreach header_var,$(shell sed < Makefile -n -e 's/^\([A-Z0-9_]*_H\)[      ]*=.*/\1/p'),echo $(header_var)=$(shell echo $($(header_var):$(srcdir)/%=.../%) | sed -e 's~\.\.\./config/~config/~' -e 's~\.\.\..*/~~') >> tmp-header-vars;) \
>   	$(SHELL) $(srcdir)/../move-if-change tmp-header-vars b-header-vars
>   	$(STAMP) s-header-vars
>   

Ok.

Paolo


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