Skip to content

Commit

Permalink
Add script to create release
Browse files Browse the repository at this point in the history
  • Loading branch information
agonzalezro committed Dec 12, 2016
1 parent 4bee93a commit 4037c64
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ botella
vendor/
/botella.yaml
.DS_Store
dist/
23 changes: 23 additions & 0 deletions build-dist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

if [ $# -eq 0 ]
then
echo "Usage: $0 version.number"
exit
fi

version=$1

OSS=(darwin freebsd linux)
ARCHS=(386 amd64)

mkdir -p dist
rm -f dist/botella*

for os in "${OSS[@]}"; do
for arch in "${ARCHS[@]}"; do
echo "Building for $os($arch)"
GOOS=$os GOARCH=$arch go build
mv botella dist/botella_${version}_$os-$arch
done
done

0 comments on commit 4037c64

Please sign in to comment.