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

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