]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
It is bad to recursively remove every CVS directory in a person's
authorAaron Bannert <aaron@apache.org>
Thu, 7 Mar 2002 15:06:07 +0000 (15:06 +0000)
committerAaron Bannert <aaron@apache.org>
Thu, 7 Mar 2002 15:06:07 +0000 (15:06 +0000)
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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93766 13f79535-47bb-0310-9956-ffa450edef68

Makefile.in

index bc3aa44601db867b8b66f7239ebabd8b15a5209e..298d329b4a5f1a040fdf7f3f884618f06b617fe1 100644 (file)
@@ -110,25 +110,25 @@ install-htdocs:
        @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)