rse 98/04/08 09:16:43
Modified: . Makefile.tmpl
Log:
Although both xargs and find -exec are POSIX.2, Marc is right:
find -exec is a little bit better because this is even available under
some really old Unix-derivates....
Revision Changes Path
1.11 +6 -6 apache-1.3/Makefile.tmpl
Index: Makefile.tmpl
===================================================================
RCS file: /export/home/cvs/apache-1.3/Makefile.tmpl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- Makefile.tmpl 1998/04/08 16:08:10 1.10
+++ Makefile.tmpl 1998/04/08 16:16:42 1.11
@@ -327,14 +327,14 @@
install-docroot:
@echo "===> [docroot: Installing initial DocumentRoot files]"
-$(CP) -R $(ROOT)/htdocs/* $(datadir)/htdocs/
- -find $(datadir)/htdocs/ -type d -print | xargs chmod a+rx
- -find $(datadir)/htdocs/ -type f -print | xargs chmod a+r
+ -find $(datadir)/htdocs/ -type d -exec chmod a+rx {} \;
+ -find $(datadir)/htdocs/ -type f -exec chmod a+r {} \;
-$(CP) -R $(ROOT)/icons/* $(datadir)/icons/
- -find $(datadir)/icons/ -type d -print | xargs chmod a+rx
- -find $(datadir)/icons/ -type f -print | xargs chmod a+r
+ -find $(datadir)/icons/ -type d -exec chmod a+rx {} \;
+ -find $(datadir)/icons/ -type f -exec chmod a+r {} \;
-$(CP) -R $(ROOT)/cgi-bin/* $(datadir)/cgi-bin/
- -find $(datadir)/cgi-bin/ -type d -print | xargs chmod a+rx
- -find $(datadir)/cgi-bin/ -type f -print | xargs chmod a+r
+ -find $(datadir)/cgi-bin/ -type d -exec chmod a+rx {} \;
+ -find $(datadir)/cgi-bin/ -type f -exec chmod a+r {} \;
@echo "<=== [docroot]"
## ------------------------------------------------------------------