small addition to exclude list in include/clang/Makefile

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

small addition to exclude list in include/clang/Makefile

Brooks Davis
In the FreeBSD port's version of clang we're patching in support
for our non-standard printf format extensions like we do with
gcc.  This creates .orig files one of which the install target in
tools/clang/include/clang/Makefile installs.  I patched around it by
adding *.orig to the list of excluded files.  Would you accept the
following patch to the mainline?  The list of exclusions is already
fairly long and specific to user preferences so another probably won't
hurt.

Thanks,
Brooks

--- tools/clang/include/clang/Makefile.orig
+++ tools/clang/include/clang/Makefile
@@ -10,7 +10,7 @@
   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' ')' -print \
+      -o -name 'Makefile' -o -name '*.td' -o -name '*.orig' ')' -print \
               | grep -v CVS | grep -v .svn | grep -v .dir` ; do \
     instdir=$(DESTDIR)`dirname "$(PROJ_includedir)/$$hdr"` ; \
     if test \! -d "$$instdir" ; then \

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

attachment0 (194 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: small addition to exclude list in include/clang/Makefile

Chris Lattner
Sure, applied in r103200.  Thanks!

-Chris

On May 6, 2010, at 2:21 PM, Brooks Davis wrote:

> In the FreeBSD port's version of clang we're patching in support
> for our non-standard printf format extensions like we do with
> gcc.  This creates .orig files one of which the install target in
> tools/clang/include/clang/Makefile installs.  I patched around it by
> adding *.orig to the list of excluded files.  Would you accept the
> following patch to the mainline?  The list of exclusions is already
> fairly long and specific to user preferences so another probably won't
> hurt.
>
> Thanks,
> Brooks
>
> --- tools/clang/include/clang/Makefile.orig
> +++ tools/clang/include/clang/Makefile
> @@ -10,7 +10,7 @@
>  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' ')' -print \
> +      -o -name 'Makefile' -o -name '*.td' -o -name '*.orig' ')' -print \
>               | grep -v CVS | grep -v .svn | grep -v .dir` ; do \
>    instdir=$(DESTDIR)`dirname "$(PROJ_includedir)/$$hdr"` ; \
>    if test \! -d "$$instdir" ; then \
> _______________________________________________
> cfe-dev mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev