httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: httpd-2.0 Makefile.in
Date Thu, 07 Mar 2002 15:06:08 GMT
aaron       02/03/07 07:06:08

  Modified:    .        Makefile.in
  Log:
  It is bad to recursively remove every CVS directory in a person's
  home directory. Bad bad bad. Make sure the variable was set to something
  before cd-ing to blank and ending up in their $HOME.
  
  Also, since each line under a make rule is treated as a new subshell,
  it's not necessary to surround the whole line in ()s.
  
  Revision  Changes    Path
  1.100     +7 -7      httpd-2.0/Makefile.in
  
  Index: Makefile.in
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/Makefile.in,v
  retrieving revision 1.99
  retrieving revision 1.100
  diff -u -r1.99 -r1.100
  --- Makefile.in	22 Feb 2002 20:09:25 -0000	1.99
  +++ Makefile.in	7 Mar 2002 15:06:07 -0000	1.100
  @@ -110,25 +110,25 @@
   	@test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(htdocsdir))
   	@test -d $(manualdir) || $(MKINSTALLDIRS) $(manualdir)
   	@test -d $(top_srcdir)/docs/manual && (cd $(top_srcdir)/docs/manual &&
cp -rp * $(manualdir))
  -	@(cd $(htdocsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
  +	@test "x$(htdocsdir)" != "x" && cd $(htdocsdir) && find . -name "CVS"
-print | xargs rm -rf {} \;
   
   install-error:
   	@echo Installing error documents
   	@test -d $(errordir) || $(MKINSTALLDIRS) $(errordir)
  -	@(cd $(top_srcdir)/docs/error && cp -rp * $(errordir))
  -	@(cd $(errordir) && find . -name "CVS" -print | xargs rm -rf {} \;)
  +	@cd $(top_srcdir)/docs/error && cp -rp * $(errordir)
  +	@test "x$(errordir)" != "x" && cd $(errordir) && find . -name "CVS" -print
| xargs rm -rf {} \;
   
   install-icons:
   	@echo Installing icons
   	@test -d $(iconsdir) || $(MKINSTALLDIRS) $(iconsdir)
  -	@(cd $(top_srcdir)/docs/icons && cp -rp * $(iconsdir))
  -	@(cd $(iconsdir) && find . -name "CVS" -print | xargs rm -rf {} \;)
  +	@cd $(top_srcdir)/docs/icons && cp -rp * $(iconsdir)
  +	@test "x$(iconsdir)" != "x" && cd $(iconsdir) && find . -name "CVS" -print
| xargs rm -rf {} \;
   
   install-cgi:
   	@echo Installing CGIs
   	@test -d $(cgidir) || $(MKINSTALLDIRS) $(cgidir)
  -	@(cd $(top_srcdir)/docs/cgi-examples && cp -rp * $(cgidir))
  -	@(cd $(cgidir) && find . -name "CVS" -print | xargs rm -rf {} \;)
  +	@cd $(top_srcdir)/docs/cgi-examples && cp -rp * $(cgidir)
  +	@test "x$(cgidir)" != "x" && cd $(cgidir) && find . -name "CVS" -print
| xargs rm -rf {} \;
   
   install-other:
   	@test -d $(logfiledir) || $(MKINSTALLDIRS) $(logfiledir)
  
  
  

Mime
View raw message