]> granicus.if.org Git - apache/commitdiff
Install mime.types and magic in conf/ if they don't already exist.
authorGreg Ames <gregames@apache.org>
Fri, 19 Jul 2002 15:11:58 +0000 (15:11 +0000)
committerGreg Ames <gregames@apache.org>
Fri, 19 Jul 2002 15:11:58 +0000 (15:11 +0000)
This also re-enables existing logic to always install *-std.conf with
substitutions made.  These are then copied into *.conf (without the -std) if
that file doesn't already exist.

style police: please chill for a bit.  I intentionally didn't re-format
the indenting in this commit to make it easier to review.

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

Makefile.in

index 19cc733df0527bbc391cad2763719c78bd2987a5..b9d183e93a92f552591bceedc287f0e9486eadb5 100644 (file)
@@ -27,14 +27,15 @@ include $(top_builddir)/build/rules.mk
 include $(top_srcdir)/build/program.mk
 
 install-conf:
-       -@if [ -d $(DESTDIR)$(sysconfdir) ]; then \
-           echo "[PRESERVING EXISTING CONF SUBDIR: $(DESTDIR)$(sysconfdir)]"; \
-        else \
-           echo Installing configuration files ; \
+       @echo Installing configuration files ; \
+       if [ -d $(DESTDIR)$(sysconfdir) ]; then \
            $(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir) ; \
+       fi ; \
            cd $(top_srcdir)/docs/conf; \
            for i in mime.types magic; do \
+               if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \
                $(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
+               fi; \
            done; \
            for j in $(top_srcdir)/docs/conf $(top_builddir)/docs/conf ; do \
                cd $$j ; \
@@ -86,7 +87,6 @@ install-conf:
                if test ! -f $(DESTDIR)$(sbindir)/envvars; then \
                    cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
                fi ; \
-           fi ; \
        fi
 
 install-build: