diff --git a/script/sdist b/script/sdist deleted file mode 100755 index 76a68a3..0000000 --- a/script/sdist +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -set -e -set -o pipefail - -cd "$(dirname "$0")"/.. -ROOT=$(pwd) - -if ! git diff-index --quiet HEAD --; then - echo "Changes in local directory, commit or clear" >&2 - exit 1 -fi - -VERSION="$(grep __VERSION__ "$ROOT/octodns_cloudflare/__init__.py" | sed -e "s/.* = '//" -e "s/'$//")" -SHA=$(git rev-parse HEAD) -python setup.py sdist -TARBALL="dist/octodns-cloudflare-$SHA.tar.gz" -mv dist/octodns-cloudflare-$VERSION.tar.gz "$TARBALL" - -echo "Created $TARBALL"