Files
nip/bin/make_all
Brian Cunnie b2396ff081 🐞 bin/make_all compiles in correct directory
We had moved the DNS server to a sub-directory to make room for a
sibling application, a small DNS server + small HTTP server.

fixes:
```
cannot find package "main.go" in any of:
	/usr/local/Cellar/go/1.15.6/libexec/src/main.go (from $GOROOT)
	/Users/cunnie/go/src/main.go (from $GOPATH)
```
2021-01-18 10:42:54 -08:00

18 lines
456 B
Bash
Executable File

#!/bin/bash
#
# Build binaries for macOS, Windows, Linux, FreeBSD
#
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR/../src/sslip.io-dns-server
export GOOS GOARCH
for GOOS in darwin linux freebsd; do
for GOARCH in amd64; do
go build -o $DIR/sslip.io-dns-server-$GOOS-$GOARCH main.go
done
done
# Windows has a custom extension
GOOS=windows GOARCH=amd64
go build -o $DIR/sslip.io-dns-server-$GOOS-$GOARCH.exe main.go