From 1478ab416b2cf427637cae23e296eb640e2f05d3 Mon Sep 17 00:00:00 2001 From: desbma Date: Sun, 21 Aug 2016 20:38:11 +0200 Subject: [PATCH] Add .gitignore and update-version script --- .gitignore | 4 ++++ update-version | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100755 update-version 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}