Subject: Re: /bin/sh and large number of distfiles
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Johnny C. Lam <jlam@netbsd.org>
List: tech-pkg
Date: 02/07/2002 21:32:06
On Thu, Feb 07, 2002 at 04:15:54PM +0200, Martti Kuparinen wrote:
>
> PATCHFILES!= p=0; \
> while [ $$p -le ${VIM_PATCHLEVEL} ]; do \
> printf "${VIM_VERSION}.%03d " $$p; \
> p=$$(($$p + 1)); \
> done
> SKIP_PATCHES= 012 027 048 053 064 070 073 087 093 106 107 115 \
> 116 117 119 121 122 123 125 135 137 138 144 147 \
> 152 161 162 164 165 179
> .for p in ${SKIP_PATCHES}
> PATCHFILES:= ${PATCHFILES:N6.0.${p}}
> .endfor
Maybe you could protect the definition of PATCHFILES?
.ifndef PATCHFILES
#
# The code I quoted above goes here.
#
MAKEFLAGS+= PATCHFILES="${PATCHFILES}"
.endif
I haven't tested, but regardless of whether it solves your problem, it's a
good idea anyway.
Cheers,
-- Johnny Lam <jlam@netbsd.org>