From b9f0b81821cc86505c517f234b304f735909b21a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 16 Jul 2013 14:36:54 -0700 Subject: [PATCH] scripts: Use XC_ARCH/XC_OS to limit what arch/os combo is built --- scripts/dist.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/dist.sh b/scripts/dist.sh index bfa24ebac..058d82781 100755 --- a/scripts/dist.sh +++ b/scripts/dist.sh @@ -21,11 +21,18 @@ fi echo "Version: ${VERSION} ${PREVERSION}" +# Determine the arch/os combos we're building for +XC_ARCH=${XC_ARCH:-"386 amd64 arm"} +XC_OS=${XC_OS:-linux darwin windows freebsd openbsd} + +echo "Arch: ${XC_ARCH}" +echo "OS: ${XC_OS}" + # This function builds whatever directory we're in... xc() { goxc \ - -arch="386 amd64 arm" \ - -os="linux darwin windows freebsd openbsd" \ + -arch="$XC_ARCH" \ + -os="$XC_OS" \ -d="${DIR}/pkg" \ -pv="${VERSION}" \ -pr="${PREVERSION}" \