$NetBSD: patch-ca,v 1.5 2005/01/16 19:19:46 jmmv Exp $ Use ${INSTALL_SCRIPT} to install scripts Install configuration files as .dist --- etc/Makefile.in.orig Wed Mar 15 07:40:47 2000 +++ etc/Makefile.in Sat Apr 15 17:13:49 2000 @@ -15,6 +15,7 @@ bindir = @bindir@ libdir = @libdir@ etcdir = @sysconfdir@ +egdir = @prefix@/share/examples/nmh mailspool = @mailspool@ masquerade = @masquerade@ @@ -23,6 +24,7 @@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ +INSTALL_SCRIPT = ${BSD_INSTALL_SCRIPT} # Path to search for programs to handle MIME # content. Used to create mhn.defaults @@ -76,31 +78,31 @@ install: install-files install-scripts install-files: - $(top_srcdir)/mkinstalldirs $(etcdir) + $(top_srcdir)/mkinstalldirs $(egdir) for file in $(DIST_FILES); do \ - if [ -f $(etcdir)/$$file ]; then \ - mv $(etcdir)/$$file $(etcdir)/$$file.old; \ + if [ -f $(egdir)/$$file ]; then \ + mv $(egdir)/$$file $(egdir)/$$file.old; \ fi; \ - $(INSTALL_DATA) $(srcdir)/$$file $(etcdir)/$$file; \ + $(INSTALL_DATA) $(srcdir)/$$file $(egdir)/$$file; \ done for file in $(GEN_FILES); do \ - if [ -f $(etcdir)/$$file ]; then \ - mv $(etcdir)/$$file $(etcdir)/$$file.old; \ + if [ -f $(egdir)/$$file ]; then \ + mv $(egdir)/$$file $(egdir)/$$file.old; \ fi; \ - $(INSTALL_DATA) $$file $(etcdir)/$$file; \ + $(INSTALL_DATA) $$file $(egdir)/$$file; \ done install-scripts: $(top_srcdir)/mkinstalldirs $(bindir) for script in $(SCRIPTS); do \ - $(INSTALL_PROGRAM) $(srcdir)/$$script $(bindir)/$$script; \ + $(INSTALL_SCRIPT) $(srcdir)/$$script $(bindir)/$$script; \ done uninstall: uninstall-files uninstall-scripts uninstall-files: for file in $(FILES); do \ - rm -f $(etcdir)/$$file; \ + rm -f $(egdir)/$$file; \ done uninstall-scripts: