From d730854fd0eb72c3d06cac7d7784e63cf36ab4ea Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Tue, 6 Oct 1998 05:18:00 +0000 Subject: Do not write anything to ${PATCHDIR} by doing the awk trick to the patched file (Makefile.common) in post-patch, instead of the patch itself (${FILESDIR}/patch-aa.in) in pre-patch. --- emulators/bsvc/Makefile | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'emulators') diff --git a/emulators/bsvc/Makefile b/emulators/bsvc/Makefile index 9055a71b9472..7f7ba0917ef7 100644 --- a/emulators/bsvc/Makefile +++ b/emulators/bsvc/Makefile @@ -3,7 +3,7 @@ # Date created: 03-Mar-1997 # Whom: tenser # -# $Id: Makefile,v 1.6 1998/04/05 07:30:56 asami Exp $ +# $Id: Makefile,v 1.7 1998/08/07 23:56:18 asami Exp $ # DISTNAME= bsvc-2.0 @@ -23,28 +23,28 @@ WISH= wish4.1 pre-patch: @awk ' \ { \ - if (/PROJECT_BASE/ && /AWK_CHANGE_ME/) { \ - print "! PROJECT_BASE='"${WRKDIR}/${DISTNAME}"'" \ - } else if (/INSTALL_DIR/ && /AWK_CHANGE_ME/) { \ - print "! INSTALL_DIR='"${PREFIX}/bin"'" \ - } else if (/LIB_DIR/ && /AWK_CHANGE_ME/) { \ - print "! LIB_DIR ='"${PREFIX}/lib/bsvc"'" \ - } else if (/WISH/ && /AWK_CHANGE_ME/) { \ - print "! WISH='"${WISH}"'" \ + if (/^## Makefile/) { \ + print "## Makefile.FreeBSD - System Dependent Makefile for FreeBSD" \ } else { \ print \ } \ - }' < ${FILESDIR}/patch-aa.in > ${PATCHDIR}/patch-aa + }' < ${WRKSRC}/Makefile.ULTRIX > ${WRKSRC}/Makefile + +post-patch: @awk ' \ { \ - if (/^## Makefile/) { \ - print "## Makefile.FreeBSD - System Dependent Makefile for FreeBSD" \ + if (/PROJECT_BASE/ && /AWK_CHANGE_ME/) { \ + print "PROJECT_BASE='"${WRKDIR}/${DISTNAME}"'" \ + } else if (/INSTALL_DIR/ && /AWK_CHANGE_ME/) { \ + print "INSTALL_DIR='"${PREFIX}/bin"'" \ + } else if (/LIB_DIR/ && /AWK_CHANGE_ME/) { \ + print "LIB_DIR ='"${PREFIX}/lib/bsvc"'" \ + } else if (/WISH/ && /AWK_CHANGE_ME/) { \ + print "WISH='"${WISH}"'" \ } else { \ print \ } \ - }' < ${WRKSRC}/Makefile.ULTRIX > ${WRKSRC}/Makefile - -pre-clean: - ${RM} -f ${PATCHDIR}/patch-aa + }' < ${WRKSRC}/Makefile.common > ${WRKSRC}/Makefile.common.tmp + @${MV} -f ${WRKSRC}/Makefile.common.tmp ${WRKSRC}/Makefile.common .include -- cgit v1.2.3