Skip to content

Commit

Permalink
Add sample confs to the packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcvernaleo committed Feb 25, 2016
1 parent 0f795ab commit cba15ad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions decredbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ cd $MAINDIR

SYS="windows-386 windows-amd64 openbsd-386 openbsd-amd64 linux-386 linux-amd64 linux-arm darwin-386 darwin-amd64 dragonfly-amd64 freebsd-386 freebsd-amd64 freebsd-arm netbsd-386 netbsd-amd64"

# Use the first element of $GOPATH in the case where GOPATH is a list
# (something that is totally allowed).
GPATH=$(echo $GOPATH | cut -f1 -d:)

for i in $SYS; do
OS=$(echo $i | cut -f1 -d-)
ARCH=$(echo $i | cut -f2 -d-)
Expand All @@ -24,6 +28,9 @@ for i in $SYS; do
env GOOS=$OS GOARCH=$ARCH go build github.com/decred/dcrd
env GOOS=$OS GOARCH=$ARCH go build github.com/decred/dcrd/cmd/dcrctl
env GOOS=$OS GOARCH=$ARCH go build github.com/decred/dcrwallet
cp $GPATH/src/github.com/decred/dcrd/sample-dcrd.conf .
cp $GPATH/src/github.com/decred/dcrd/cmd/dcrctl/sample-dcrctl.conf .
cp $GPATH/src/github.com/decred/dcrwallet/sample-dcrwallet.conf .
cd ..
if [[ $OS = "windows" ]]; then
zip -r $i-$DATE-$VERSION.zip $i
Expand Down

0 comments on commit cba15ad

Please sign in to comment.