diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f70d171 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +__pycache__ +/*.egg* +/build +/dist diff --git a/update-version b/update-version new file mode 100755 index 0000000..ae26549 --- /dev/null +++ b/update-version @@ -0,0 +1,16 @@ +#!/bin/bash -eu + +set -o pipefail + +readonly VERSION=${1:?} + + +cd "$(git rev-parse --show-toplevel)" + +sed -i "s/^\(__version__ = \"\).*\(\"\)/\1$VERSION\2/w /dev/stdout" hddfancontrol/__init__.py + +git add hddfancontrol/__init__.py + +git commit -m "Version ${VERSION}" + +git tag -m "Version ${VERSION}" ${VERSION}