[cfe-commits] [PATCH] include/clang/Makefile: [PR9321] "make install" may install include files along explicit pattern.

Joerg Sonnenberger joerg at britannica.bec.de
Sun Mar 6 21:05:43 PST 2011


On Mon, Feb 28, 2011 at 01:50:57PM +0900, NAKAMURA Takumi wrote:
>  	  cd $(PROJ_SRC_ROOT)/tools/clang/include && \
> -	  for  hdr in `find clang -type f '!' '(' -name '*~' \
> -	      -o -name '.#*' -o -name '*.in' -o -name '*.txt' \
> -	      -o -name 'Makefile' -o -name '*.td' -o -name '*.orig' ')' -print \
> +	  for  hdr in `find clang -type f '(' \
> +	        -name LICENSE.TXT \
> +	        -or -name '*.def' \
> +	        -or -name '*.h' \
> +	        -or -name '*.inc' \
> +	      ')' -print \
>                | grep -v CVS | grep -v .svn | grep -v .dir` ; do \
>  	    instdir=$(DESTDIR)`dirname "$(PROJ_includedir)/$$hdr"` ; \
>  	    if test \! -d "$$instdir" ; then \

SUS says to use -o.

What about using:

find clang -type f '(' -name LICENSE.TXT -o -name '*.def' -o name
'*.h' -o name '*.inc' ') -a -n '(' -path '*/CVS*/' -o -path '*/.svn/*'
-o path '*/.dir/*' ')' -print | while read hdr; do ...

Joerg



More information about the cfe-commits mailing list