Don't use pax for installing header files. Use the install program instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20213 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile.rules b/Makefile.rules
index f0e7621..78cc436 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -1463,14 +1463,16 @@
 	$(Verb) $(MKDIR) $(PROJ_includedir)
 	$(Verb) if [ -d "$(PROJ_SRC_ROOT)/include" ] ; then \
 	  cd $(PROJ_SRC_ROOT)/include && \
-	    find . -path '*/Internal' -prune -o '(' -type f \
-	      '!' '(' -name '*~' -o -name '.cvsignore' -o -name '.#*' -o -name '*.in' ')' \
-	      -print ')' | grep -v CVS | pax -rwdvpe $(PROJ_includedir) ; \
+	  for  hdr in `find . -type f '!' '(' -name '*~' -o -name '.cvsignore' \
+	      -o -name '.#*' -o -name '*.in' ')' -print | grep -v CVS ` ; do \
+	    $(INSTALL) $$hdr $(PROJ_includedir) ; \
+	  done ; \
 	fi
 	$(Verb) if [ -d "$(PROJ_OBJ_ROOT)/include" ] ; then \
-	  cd $(PROJ_OBJ_ROOT)/include && ( cd $(PROJ_SRC_ROOT)/include && \
-	    find . -path '*/Internal' -prune -o '(' -type f -name '*.in' -print ')' ) \
-	    | sed 's#.in$$##' | pax -rwdvpe $(PROJ_includedir) ; \
+	  cd $(PROJ_OBJ_ROOT)/include && \
+	  for hdr in `find . -type f -print` ; do \
+	    $(INSTALL) $$hdr $(PROJ_includedir) ; \
+	  done ; \
 	fi
 
 uninstall-local::