now with config files
This commit is contained in:
parent
f37e55173a
commit
844578f217
6 changed files with 71 additions and 86 deletions
|
|
@ -1,9 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
export GOPATH=/home/horscchtey/go
|
||||
export CC=arm-linux-gnueabihf-gcc
|
||||
export CXX=arm-linux-gnueabihf-g++
|
||||
export CGO_ENABLED=1
|
||||
export GOOS=linux
|
||||
export GOARCH=arm
|
||||
export GOARM=7
|
||||
|
||||
env CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ \
|
||||
CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 \
|
||||
go build bot.go boddle.go logging.go ircfoo.go pepe.go
|
||||
declare -a src
|
||||
src+=(bot.go boddle.go logging.go ircfoo.go)
|
||||
declare -i nproc="$(nproc)"
|
||||
|
||||
mv bot boddle_executable
|
||||
go build -p ${nproc} "${src[@]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue