From 42f4f968e128751ca187b0ce446fe1821dd6d503 Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 26 Oct 2001 14:37:56 +0000 Subject: Move the post-patch custom script into the package Makefile. --- parallel/glunix/Makefile | 15 +++++++++++++-- parallel/glunix/scripts/post-patch | 19 ------------------- 2 files changed, 13 insertions(+), 21 deletions(-) delete mode 100755 parallel/glunix/scripts/post-patch (limited to 'parallel/glunix') diff --git a/parallel/glunix/Makefile b/parallel/glunix/Makefile index f3eb173351c..85179bb3eeb 100644 --- a/parallel/glunix/Makefile +++ b/parallel/glunix/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.21 2001/10/26 14:10:01 agc Exp $ +# $NetBSD: Makefile,v 1.22 2001/10/26 14:37:56 agc Exp $ DISTNAME= glunix-release-1-0a PKGNAME= glunix-1.0a @@ -50,7 +50,18 @@ pre-fetch: cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/pre-fetch post-patch: - cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/post-patch + cd ${WRKSRC}; \ + for f in progs/glupart/glupart.c \ + progs/glunix/glunix.1 \ + progs/glurun/glurun-wrapper.pl \ + progs/tools/run_glunix.c \ + glunix/src/init/glunix.h; do \ + ${MV} -f $$f $$f.input && \ + ${SED} -e 's|%%%NOW_ROOT%%%|${NOW_ROOT}|' $$f.input > $$f; \ + done; \ + ${MV} -f glush/Makefile glush/Makefile.input && \ + ${SED} -e 's|%%%PLAT%%%|${MACHINE_ARCH}-NetBSD-tcp|' \ + progs/glush/Makefile.input > progs/glush/Makefile # the glunix group needs to exist before building. pre-configure: diff --git a/parallel/glunix/scripts/post-patch b/parallel/glunix/scripts/post-patch deleted file mode 100755 index 7cd72d83385..00000000000 --- a/parallel/glunix/scripts/post-patch +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/sh - -cd $WRKSRC/progs - -sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" glupart/glupart.c > bak -mv bak glupart/glupart.c -sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" glunix/glunix.1 > bak -mv bak glunix/glunix.1 -sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" glurun/glurun-wrapper.pl > bak -mv bak glurun/glurun-wrapper.pl -sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" tools/run_glunix.c > bak -mv bak tools/run_glunix.c - -sed "s+%%%PLAT%%%+$ARCH-NetBSD-tcp+" glush/Makefile > bak -mv bak glush/Makefile - -cd $WRKSRC/glunix -sed "s+%%%NOW_ROOT%%%+$NOW_ROOT+" src/init/glunix.h > bak -mv bak src/init/glunix.h -- cgit v1.2.3