From f749fe0e496a82037a8e0b023ab947393220a522 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg <rothberg@redhat.com> Date: Fri, 20 Sep 2019 10:21:19 +0200 Subject: [PATCH] rm build_linux.sh Everything should go through the Makfile, so lets delete the script to avoid potential confusion. Signed-off-by: Valentin Rothberg <rothberg@redhat.com> --- build_linux.sh | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 build_linux.sh diff --git a/build_linux.sh b/build_linux.sh deleted file mode 100755 index 0225b70..0000000 --- a/build_linux.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash -set -e -cd $(dirname "$0") - -if [ "$(uname)" == "Darwin" ]; then - export GOOS="${GOOS:-linux}" -fi - -ORG_PATH="github.com/containers" -export REPO_PATH="${ORG_PATH}/dnsname" - -if [ ! -h gopath/src/${REPO_PATH} ]; then - mkdir -p gopath/src/${ORG_PATH} - ln -s ../../../.. gopath/src/${REPO_PATH} || exit 255 -fi - -export GOPATH=${PWD}/gopath -export GO="${GO:-go}" -export GOFLAGS="${GOFLAGS} -mod=vendor" - -mkdir -p "${PWD}/bin" - -echo "Building plugins ${GOOS}" -PLUGINS="plugins/meta/* plugins/main/* plugins/ipam/*" -for d in $PLUGINS; do - if [ -d "$d" ]; then - plugin="$(basename "$d")" - if [ $plugin != "windows" ]; then - echo " $plugin" - $GO build -o "${PWD}/bin/$plugin" "$@" "$REPO_PATH"/$d - fi - fi -done -- GitLab