mirror of https://github.com/ginuerzh/gost
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
247 B
16 lines
247 B
#!/bin/bash
|
|
set -x
|
|
set -e
|
|
|
|
CURRENT=`pwd`
|
|
|
|
#CGO_ENABLED=0 GOOS=linux GOARCH=amd64
|
|
|
|
cd $(dirname $0)
|
|
for name in `ls -d */|sed 's/\///g'`
|
|
do
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o "../bin/$name" ./"$name"
|
|
done
|
|
|
|
ls ../bin/
|
|
cd "$CURRENT"
|
|
|