diff options
author | agc <agc> | 2001-10-26 14:37:56 +0000 |
---|---|---|
committer | agc <agc> | 2001-10-26 14:37:56 +0000 |
commit | 3d1c6105286fee22de6221672ce9268584a62205 (patch) | |
tree | f0dad0dedd167fe2ac9b6cbe33f05d0cba20a6cc /parallel | |
parent | 36379d9fd927300f1dab8e4d11819baba8205d73 (diff) | |
download | pkgsrc-3d1c6105286fee22de6221672ce9268584a62205.tar.gz |
Move the post-patch custom script into the package Makefile.
Diffstat (limited to 'parallel')
-rw-r--r-- | parallel/glunix/Makefile | 15 | ||||
-rwxr-xr-x | parallel/glunix/scripts/post-patch | 19 |
2 files changed, 13 insertions, 21 deletions
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 |