aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/dist/dist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/dist/dist.sh')
-rwxr-xr-xcmd/dist/dist.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/dist/dist.sh b/cmd/dist/dist.sh
new file mode 100755
index 00000000..42240be2
--- /dev/null
+++ b/cmd/dist/dist.sh
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+TOOLCHAIN_VERSION="$(go version)"
+cd "$(dirname -- "$0")/../.."
+echo "Building cmd/dist using ${TOOLCHAIN_VERSION}."
+FLAGS=''
+if test -n "$VERBOSE"; then
+ FLAGS="$FLAGS -v"
+fi
+go run $FLAGS --tags=dist ./cmd/dist