From 10719cddf81d922294f6e9019777a5bcf69b113d Mon Sep 17 00:00:00 2001 From: uebayasi Date: Mon, 1 Oct 2007 04:16:07 +0000 Subject: Fix embedded paths to /bin/env and /usr/local/bin/zsh. Reported by joerg. --- shells/zsh-current/Makefile | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'shells/zsh-current') diff --git a/shells/zsh-current/Makefile b/shells/zsh-current/Makefile index 8701b773b6d..9c8c07dfa26 100644 --- a/shells/zsh-current/Makefile +++ b/shells/zsh-current/Makefile @@ -1,8 +1,31 @@ -# $NetBSD: Makefile,v 1.11 2007/09/21 05:24:43 uebayasi Exp $ +# $NetBSD: Makefile,v 1.12 2007/10/01 04:16:07 uebayasi Exp $ .include "../../shells/zsh/Makefile.common" ZSH_VERSION= 4.3.4 ZSH_MAINTAINER= uebayasi@NetBSD.org +USE_TOOLS+= env + +SUBST_CLASSES+= prefix-fixup +SUBST_STAGE.prefix-fixup= pre-configure +SUBST_FILES.prefix-fixup= \ + Misc/globtests \ + Misc/globtests.ksh \ + Test/ztst.zsh \ + Util/reporter \ + Functions/Calendar/calendar_add \ + Functions/Misc/run-help \ + Functions/Misc/checkmail \ + Functions/Misc/zcalc \ + Functions/Misc/zkbd \ + Functions/Example/cat +SUBST_SED.prefix-fixup= \ + -e 's|^\#\!/bin/env|\#\!${TOOLS_PATH.env}|g' \ + -e 's|^\#\! /bin/env|\#\! ${TOOLS_PATH.env}|g' \ + -e 's|^\#\!/bin/zsh|\#\!${PREFIX}/bin/zsh|g' \ + -e 's|^\#\! /bin/zsh|\#\! ${PREFIX}/bin/zsh|g' \ + -e 's|^\#\!/usr/local/bin/zsh|\#\!${PREFIX}/bin/zsh|g' \ + -e 's|^\#\! /usr/local/bin/zsh|\#\! ${PREFIX}/bin/zsh|g' + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3