From b1634646b27a0f3ccd5990ca93fd4d311368c684 Mon Sep 17 00:00:00 2001 From: agc Date: Wed, 27 Sep 2000 14:34:12 +0000 Subject: Clean up the post-extract target, and use sh(1) for loops in preference to make(1) .for loops. --- devel/cscope/Makefile | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'devel/cscope') diff --git a/devel/cscope/Makefile b/devel/cscope/Makefile index 30ba5787059..ce7fd9aa79c 100644 --- a/devel/cscope/Makefile +++ b/devel/cscope/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2000/09/11 15:26:38 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2000/09/27 14:34:12 agc Exp $ DISTNAME= cscope-15.0bl2 PKGNAME= cscope-15.0.2 @@ -11,21 +11,17 @@ HOMEPAGE= http://cscope.sourceforge.net/ GNU_CONFIGURE= YES USE_CURSES= YES -post-extract: cscope-post-extract - .include "../../mk/bsd.pkg.mk" .if ${NEED_NCURSES} == "YES" CONFIGURE_ARGS+=--with-ncurses=${LOCALBASE} -cscope-post-extract: -.for FILE in command.c display.c edit.c exec.c find.c help.c input.c main.c +post-extract: @cd ${WRKSRC}/src; \ - ${MV} ${FILE} ${FILE}.orig; \ - ${SED} "s/^#include /#include /" \ - < ${FILE}.orig > ${FILE} -.endfor -.else -cscope-post-extract: - ${TRUE} + for f in command.c display.c edit.c exec.c find.c help.c \ + input.c main.c; do \ + ${MV} $$f $$f.orig; \ + ${SED} "s/^#include /#include /" \ + $$f.orig > $$f; \ + done .endif -- cgit v1.2.3