diff --git a/SOURCES/VERSION b/SOURCES/VERSION new file mode 100644 index 0000000..842eaf8 --- /dev/null +++ b/SOURCES/VERSION @@ -0,0 +1 @@ +v0.4.15 diff --git a/SOURCES/get.sh b/SOURCES/get.sh new file mode 100755 index 0000000..bf77a1a --- /dev/null +++ b/SOURCES/get.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +GO_VERSION=$(go version | awk '{for(i=1; i/dev/null || exit 1 +git clone --branch $BRANCH https://github.com/goodwithtech/dockle.git +pushd ./dockle >/dev/null || exit 1 +sed -Ei "s/go\s+[0-9]+.*$/go ${GO_VERSION}/1" go.mod +export GOPATH=${PWD}/mod +go mod tidy +rm -rf ./.github +rm -rf ./.git +rm -rf ./.vex +popd >/dev/null + +mv ./dockle ./dockle-$VERSION +tar -cvaf dockle-${VERSION}.tar.xz dockle-$VERSION || exit 1 +mv dockle-${VERSION}.tar.xz ./.. +popd >/dev/null +sudo rm -rf ./source +