Skip to content

Commit d04f525

Browse files
author
Greg Ames
committed
Install mime.types and magic in conf/ if they don't already exist.
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
1 parent 3bb3434 commit d04f525

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ include $(top_builddir)/build/rules.mk
2727
include $(top_srcdir)/build/program.mk
2828

2929
install-conf:
30-
-@if [ -d $(DESTDIR)$(sysconfdir) ]; then \
31-
echo "[PRESERVING EXISTING CONF SUBDIR: $(DESTDIR)$(sysconfdir)]"; \
32-
else \
33-
echo Installing configuration files ; \
30+
@echo Installing configuration files ; \
31+
if [ -d $(DESTDIR)$(sysconfdir) ]; then \
3432
$(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir) ; \
33+
fi ; \
3534
cd $(top_srcdir)/docs/conf; \
3635
for i in mime.types magic; do \
36+
if test ! -f $(DESTDIR)$(sysconfdir)/$$i; then \
3737
$(INSTALL_DATA) $$i $(DESTDIR)$(sysconfdir); \
38+
fi; \
3839
done; \
3940
for j in $(top_srcdir)/docs/conf $(top_builddir)/docs/conf ; do \
4041
cd $$j ; \
@@ -86,7 +87,6 @@ install-conf:
8687
if test ! -f $(DESTDIR)$(sbindir)/envvars; then \
8788
cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
8889
fi ; \
89-
fi ; \
9090
fi
9191

9292
install-build:

0 commit comments

Comments
 (0)