#!/bin/bash
if [ ! -f version ]; then
    echo "0.0.0" > version
fi

sed -r 's/([0-9]+\.[0-9]+.)([0-9]+)/echo "\1\$((\2+1))" > version/ge' version > /dev/null
