Build script - Build for x86 and amd64
This commit is contained in:
parent
97f0cf48bb
commit
ffe98f702b
1 changed files with 10 additions and 7 deletions
17
build.sh
17
build.sh
|
@ -2,10 +2,13 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
cd "$(dirname $0)"
|
cd "$(dirname $0)"
|
||||||
mkdir -p bin
|
for arch in 386 amd64; do
|
||||||
for d in $(find cmd -mindepth 1 -maxdepth 1 -type d); do
|
mkdir -p bin/$arch
|
||||||
cd $d
|
for d in $(find cmd -mindepth 1 -maxdepth 1 -type d); do
|
||||||
xn="$(basename "$d")"
|
pushd $d >/dev/null
|
||||||
go build
|
xn="$(basename "$d")"
|
||||||
/bin/mv "$xn" ../../bin
|
GOARCH=$arch go build
|
||||||
done
|
/bin/mv "$xn" ../../bin/$arch
|
||||||
|
popd >/dev/null
|
||||||
|
done
|
||||||
|
done
|
Loading…
Reference in a new issue