зеркало из https://github.com/mozilla/mig.git
Build: better default
This commit is contained in:
Родитель
749998fe0e
Коммит
d08722c744
9
build.sh
9
build.sh
|
@ -8,13 +8,12 @@ source ~/Code/golang-crosscompile/crosscompile.bash
|
||||||
|
|
||||||
export GOPATH="$GOROOT/bin:$(pwd)"
|
export GOPATH="$GOROOT/bin:$(pwd)"
|
||||||
export GOBIN="$(pwd)/bin"
|
export GOBIN="$(pwd)/bin"
|
||||||
ALLPLATFORMS="darwin/386 darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm windows/386 windows/amd64"
|
|
||||||
LINUX64="linux/amd64"
|
PLATFORMS="linux/amd64"
|
||||||
if [ "$1" == "all" ]; then
|
if [ "$1" == "all" ]; then
|
||||||
PLATFORMS=$ALLPLATFORMS
|
PLATFORMS="darwin/386 darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm windows/386 windows/amd64"
|
||||||
else
|
|
||||||
PLATFORMS=$LINUX64
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for platform in $PLATFORMS
|
for platform in $PLATFORMS
|
||||||
do
|
do
|
||||||
echo "Target platform $platform"
|
echo "Target platform $platform"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче