Skip to content

Commit

Permalink
add arm arch, makefile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aerth committed Jun 16, 2016
1 parent ddf0910 commit 0f05c5c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ cross:
GOOS=darwin GOARCH=amd64 go build -v ${GO_LDFLAGS} -o bin/${NAME}-v${RELEASE}-OSX-amd64
GOOS=linux GOARCH=amd64 go build -v ${GO_LDFLAGS} -o bin/${NAME}-v${RELEASE}-linux-amd64
GOOS=linux GOARCH=386 go build -v ${GO_LDFLAGS} -o bin/${NAME}-v${RELEASE}-linux-x86
GOOS=linux GOARCH=arm go build -v ${GO_LDFLAGS} -o bin/${NAME}-v${RELEASE}-linux-arm
GOOS=freebsd GOARCH=amd64 go build -v ${GO_LDFLAGS} -o bin/${NAME}-v${RELEASE}-freebsd-amd64
GOOS=freebsd GOARCH=386 go build -v ${GO_LDFLAGS} -o bin/${NAME}-v${RELEASE}-freebsd-x86
GOOS=openbsd GOARCH=amd64 go build -v ${GO_LDFLAGS} -o bin/${NAME}-v${RELEASE}-openbsd-amd64
Expand Down
13 changes: 9 additions & 4 deletions pack.bash
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
WORKDIR=$(pwd)
package(){
set -e
echo "Using ./pkg directory"
mkdir -p pkg
if [ -f HASH ]; then
Expand All @@ -10,15 +10,20 @@ package(){
fi
cd bin
echo "Creating HASH file"
for i in $(ls); do sha384sum $i >> $WORKDIR/HASH; done
for i in $(ls | grep -v "VERSION"); do sha384sum $i >> $WORKDIR/HASH; done
cd $WORKDIR
echo "Packaging all in ./bin"
for i in $(ls bin); do zip pkg/$i.zip bin/$i README.md LICENSE.md HASH; done
for i in $(ls bin|grep -v "VERSION"); do zip pkg/$i.zip bin/$i README.md LICENSE.md HASH; done
echo "Done."
echo ""
}

if [ -z $(ls bin) ]; then
BINFILES=$(ls bin)
if [ -z "$BINFILES" ]; then
echo "Run 'make cross' first!"
exit 1
fi
if [ ! -d bin ]; then
echo "Run 'make cross' first!"
exit 1
fi
Expand Down

0 comments on commit 0f05c5c

Please sign in to comment.