From e503179a4a88f82f72804e2759b3aa94e58aeae6 Mon Sep 17 00:00:00 2001 From: rillig Date: Sun, 17 Jul 2005 21:57:52 +0000 Subject: Completed the last change. It could have failed if NONBINMODE was 444. --- x11/imake/Makefile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/x11/imake/Makefile b/x11/imake/Makefile index 49147777eff..79ad6887e77 100644 --- a/x11/imake/Makefile +++ b/x11/imake/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.18 2005/07/17 21:47:00 rillig Exp $ +# $NetBSD: Makefile,v 1.19 2005/07/17 21:57:52 rillig Exp $ DISTNAME= ${DISTFILES} PKGNAME= imake-${XF_VER} @@ -64,16 +64,13 @@ post-install: ${_PKG_SILENT}${_PKG_DEBUG} \ hostdef=${X11ROOT:Q}/lib/X11/config/host.def; \ hosttmp=${WRKSRC:Q}/host.def.tmp; \ - ${SED} -e "s|\#define ProjectRoot ${X11ROOT}||" \ - "$${hostdef}" > "$${hosttmp}"; \ + (${SED} -e "s|\#define ProjectRoot ${X11ROOT}||" "$${hostdef}"; \ + ${ECHO} ""; \ + ${ECHO} "#ifdef BeforeVendorCF"; \ + ${ECHO} "#define ProjectRoot ${X11ROOT}"; \ + ${ECHO} "#endif"; \ + )> "$${hosttmp}"; \ ${INSTALL_DATA} "$${hosttmp}" "$${hostdef}"; \ ${RM} -f "$${hosttmp}" - @( \ - ${ECHO}; \ - ${ECHO} "#ifdef BeforeVendorCF"; \ - ${ECHO} "#define ProjectRoot ${X11ROOT}"; \ - ${ECHO} "#endif"; \ - ) >> ${X11ROOT}/lib/X11/config/host.def - .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3