mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
16 lines
275 B
Bash
Executable File
16 lines
275 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if ! git diff-index --quiet HEAD --; then
|
|
echo "Changes in local directory, commit or clear"
|
|
exit 1
|
|
fi
|
|
|
|
SHA=$(git rev-parse HEAD)
|
|
python setup.py sdist
|
|
TARBALL=dist/octodns-$SHA.tar.gz
|
|
mv dist/octodns-0.*.tar.gz $TARBALL
|
|
|
|
echo "Created $TARBALL"
|