now with config files

This commit is contained in:
Horscchtey 2021-11-24 00:50:01 +00:00
commit 844578f217
6 changed files with 71 additions and 86 deletions

View file

@ -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[@]}"