From 39214129fa2c655783f4535fc6d40cb89a1b260d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Tue, 28 Jan 2020 11:48:25 +0100 Subject: [PATCH] Add bindata command to build script This used to be present in the Makefile, but then got lost in history --- build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.sh b/build.sh index 81712b3..4b107d2 100755 --- a/build.sh +++ b/build.sh @@ -4,6 +4,14 @@ set -e buildtags="" ldflags="-s -w" +if [ "$1" = "bindata" ];then + GO_BINDATA_V=$(go-bindata -version | grep go-bin | cut -d ' ' -f2) + [[ "$GO_BINDATA_V" == "3.2.0" ]] && echo "Updating bindata" || exit "Wrong go-bindata-version" + go-bindata -nometadata -o internal/bindata/bindata.go -pkg bindata data/... + echo "DONE" + exit 0 +fi + if [ "$1" = "windows" ]; then set -x CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ \