File: build

package info (click to toggle)
golang-github-coreos-go-iptables 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 152 kB
  • sloc: sh: 47; makefile: 3
file content (22 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
set -e

ORG_PATH="github.com/coreos"
REPO_PATH="${ORG_PATH}/go-iptables"

if [ ! -h gopath/src/${REPO_PATH} ]; then
	mkdir -p gopath/src/${ORG_PATH}
	ln -s ../../../.. gopath/src/${REPO_PATH} || exit 255
fi

export GOBIN=${PWD}/bin
export GOPATH=${PWD}/gopath

eval $(go env)

if [ ${GOOS} = "linux" ]; then
	echo "Building go-iptables..."
	go build ${REPO_PATH}/iptables
else
	echo "Not on Linux"
fi