#!/bin/bash
pushd lib
VERSION=$(python -c "import version; \
                     v = version.PACKAGE_VERSION.split('.'); \
                     v = v + ['0'] * (3 - len(v)); \
                     print('.'.join(v))")
popd
echo $VERSION
echo $VERSION > contrib/apk_version
pushd ./gui/kivy/; make apk; popd
