Return-Path: Delivered-To: apache-cvs-archive@hyperreal.org Received: (qmail 2463 invoked by uid 6000); 12 Apr 1998 12:52:42 -0000 Received: (qmail 2457 invoked by alias); 12 Apr 1998 12:52:41 -0000 Delivered-To: apache-1.3-cvs@hyperreal.org Received: (qmail 2455 invoked by uid 168); 12 Apr 1998 12:52:40 -0000 Date: 12 Apr 1998 12:52:40 -0000 Message-ID: <19980412125240.2454.qmail@hyperreal.org> From: rse@hyperreal.org To: apache-1.3-cvs@hyperreal.org Subject: cvs commit: apache-1.3 Makefile.tmpl Sender: apache-cvs-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org rse 98/04/12 05:52:40 Modified: . Makefile.tmpl Log: Make APACI's "make install" more robust by using tar-based command instead of "cp -R" commands. Revision Changes Path 1.15 +7 -3 apache-1.3/Makefile.tmpl Index: Makefile.tmpl =================================================================== RCS file: /export/home/cvs/apache-1.3/Makefile.tmpl,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- Makefile.tmpl 1998/04/11 15:22:02 1.14 +++ Makefile.tmpl 1998/04/12 12:52:39 1.15 @@ -77,6 +77,7 @@ # build tools CP = cp +TAR = tar MKDIR = $(AUX)/mkdir.sh INSTALL = $(AUX)/install.sh -c INSTALL_PROGRAM = $(INSTALL) -s -m 755 @@ -342,13 +343,16 @@ # icons and distributed CGI scripts. install-docroot: @echo "===> [docroot: Installing initial DocumentRoot files]" - -$(CP) -R $(ROOT)/htdocs/* $(datadir)/htdocs/ + -(cd $(ROOT)/htdocs/ && $(TAR) cf - *) |\ + (cd $(datadir)/htdocs/ && $(TAR) xf -) -find $(datadir)/htdocs/ -type d -exec chmod a+rx {} \; -find $(datadir)/htdocs/ -type f -exec chmod a+r {} \; - -$(CP) -R $(ROOT)/icons/* $(datadir)/icons/ + -(cd $(ROOT)/icons/ && $(TAR) cf - *) |\ + (cd $(datadir)/icons/ && $(TAR) xf -) -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/ + -(cd $(ROOT)/cgi-bin/ && $(TAR) cf - *) |\ + (cd $(datadir)/cgi-bin/ && $(TAR) xf -) -find $(datadir)/cgi-bin/ -type d -exec chmod a+rx {} \; -find $(datadir)/cgi-bin/ -type f -exec chmod a+r {} \; @echo "<=== [docroot]"