Skip to content

Commit

Permalink
Update scripts for cross-compile
Browse files Browse the repository at this point in the history
IT doesn't really work though because of cgo but... at least its there.
  • Loading branch information
mitchellh committed Feb 22, 2014
1 parent 8009752 commit 94171d3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,11 @@ echo "OS: ${XC_OS}"
trap "kill 0" SIGINT SIGTERM EXIT

# This function builds whatever directory we're in...
goxc \
gox \
-arch="$XC_ARCH" \
-os="$XC_OS" \
-d="${DIR}/pkg" \
-pv="${VERSION}" \
-pr="${PREVERSION}" \
$XC_OPTS \
go-install \
xc
-output "pkg/${VERSIONDIR}/{{.OS}}_{{.Arch}}/consul" \
.

# Zip all the packages
mkdir -p ./pkg/${VERSIONDIR}/dist
Expand Down

0 comments on commit 94171d3

Please sign in to comment.