GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cli/scripts/build at main · rancher/cli Expand file tree/ Copy pathbuildMore file actions executable file ·31 lines (27 loc) · 873 Bytes / Copy pathbuildFile metadata and controlsexecutable file ·31 lines (27 loc) · 873 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 #!/bin/bash -e source $(dirname $0)/version cd $(dirname $0)/.. LDFLAGS="-w -s -X main.VERSION=$VERSION" if [ "$(uname -s)" = "Linux" ]; then LDFLAGS="$LDFLAGS -extldflags -static" fi CGO_ENABLED=0 go build -ldflags="$LDFLAGS" -o bin/rancher if [ -n "$CROSS" ]; then rm -rf build/bin mkdir -p build/bin for OS_ARCH in \ linux/amd64 linux/arm linux/arm64 linux/s390x \ windows/386 windows/amd64 \ darwin/amd64 darwin/arm64; do OS="${OS_ARCH%/*}" ARCH="${OS_ARCH#*/}" OUTPUT_BIN="build/bin/rancher_$OS-$ARCH" if test "$OS" = "windows"; then OUTPUT_BIN="${OUTPUT_BIN}.exe" fi echo "Building binary for $OS/$ARCH..." GOARCH=$ARCH GOOS=$OS CGO_ENABLED=0 go build \ -ldflags="-w -X main.VERSION=$VERSION" \ -o ${OUTPUT_BIN} ./ done fi |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |