$NetBSD: patch-aa,v 1.16 2019/05/09 11:32:36 leot Exp $ - Adjust mandir - Use BSD_INSTALL_* --- Makefile.in.orig 2015-08-24 16:09:04.000000000 -0400 +++ Makefile.in 2016-11-24 10:43:07.000000000 -0500 @@ -357,7 +357,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ -mandir=@datarootdir@/man +mandir=@mandir@ MANSECT=1 DESTBIN=${DESTDIR}${bindir} DESTMAN=${DESTDIR}${mandir}/man${MANSECT} @@ -597,19 +597,13 @@ -strip ${DESTBIN}/tcsh$(EXEEXT) install: tcsh$(EXEEXT) install.catalogs install.man - -mkdir -p ${DESTBIN} - -mv -f ${DESTBIN}/tcsh$(EXEEXT) ${DESTBIN}/tcsh.old - cp tcsh$(EXEEXT) ${DESTBIN}/tcsh$(EXEEXT) - chmod 755 ${DESTBIN}/tcsh$(EXEEXT) + ${BSD_INSTALL_PROGRAM} tcsh${EXEEXT} ${DESTBIN}/tcsh${EXEEXT} install.catalogs: @test "x${BUILD_CATALOGS}" = "xyes" && (cd nls; ${MAKE} install DESTDIR=${DESTDIR}) || exit 0 install.man: tcsh.man - -mkdir -p ${DESTMAN} - -rm -f ${DESTMAN}/tcsh.${MANSECT} - cp $(srcdir)/tcsh.man ${DESTMAN}/tcsh.${MANSECT} - chmod 444 ${DESTMAN}/tcsh.${MANSECT} + ${BSD_INSTALL_MAN} tcsh.man ${DESTMAN}/tcsh.${MANSECT} # Amiga Unix #install.man: tcsh.man