#!/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