From 7e60daed62983ff78300a83777f1d7e0875da5fc Mon Sep 17 00:00:00 2001 From: bsiegert Date: Sat, 25 Jul 2015 14:23:58 +0000 Subject: Fix build on NetBSD, PR pkg/49909. It turns out that [^a]* matches all files not beginning with a on Darwin and all files beginning with a on NetBSD. Work around this by crafting a for loop with a case expression. --- net/gcloud-golang-metadata/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'net') diff --git a/net/gcloud-golang-metadata/Makefile b/net/gcloud-golang-metadata/Makefile index a6e180b8e85..f7a6c2c420d 100644 --- a/net/gcloud-golang-metadata/Makefile +++ b/net/gcloud-golang-metadata/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2015/05/11 13:02:21 bsiegert Exp $ +# $NetBSD: Makefile,v 1.2 2015/07/25 14:23:58 bsiegert Exp $ # DISTNAME= gcloud-golang @@ -19,7 +19,13 @@ GO_DIST_BASE= ${DISTNAME}-${GITHUB_TAG}* # Remove all code except compute/metadata and internal pre-patch: - ${RM} -fr ${WRKSRC}/[^ci]* ${WRKSRC}/cloud*go + for i in ${WRKSRC}/*; do \ + case $$i in \ + c*|i*) ;; \ + default) ${RM} -fr $$i ;; \ + esac; \ + done + ${RM} -fr ${WRKSRC}/cloud*go ${RM} -fr ${WRKSRC}/internal/datastore ${RM} -fr ${WRKSRC}/internal/testutil -- cgit v1.2.3