Add .gitignore and update-version script

This commit is contained in:
desbma
2016-08-21 20:38:11 +02:00
parent 04f9535cd6
commit 1478ab416b
2 changed files with 20 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
__pycache__
/*.egg*
/build
/dist
Executable
+16
View File
@@ -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}