added pre-commit hook for auto version increment
This commit is contained in:
parent
98bac53fd7
commit
82b3ab7cfd
|
|
@ -1 +1 @@
|
||||||
__version__ = '0.6.2'
|
__version__ = '0.6.3'
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
VERSTR="`git describe --long --tags --dirty --always`"
|
||||||
|
|
||||||
|
VER1="`echo $VERSTR | cut -d'-' -f1`"
|
||||||
|
VER2=$((`echo $VERSTR | cut -d'-' -f2` + 1))
|
||||||
|
|
||||||
|
VERSTR="__version__ = '${VER1}.${VER2}'"
|
||||||
|
|
||||||
|
echo "$VERSTR" > aprs/version.py
|
||||||
|
|
||||||
|
git add aprs/version.py
|
||||||
Loading…
Reference in New Issue