set-version ver:
    #!/bin/sh
    shtool version --set {{ver}} version.txt
    shtool version version.txt > VERSION

show-version:
    #!/bin/sh
    shtool version version.txt
    shtool version version.txt > VERSION

inc-level:
    #!/bin/sh
    shtool version -i l version.txt
    shtool version version.txt > VERSION

inc-release:
    #!/bin/sh
    shtool version -i r version.txt
    shtool version version.txt > VERSION

inc-version:
    #!/bin/sh
    shtool version -i v version.txt
    shtool version version.txt > VERSION

drel-version:
    #!/bin/sh
    VER=$(shtool version version.txt)
    V=$(echo $VER |cut -f1 -d.)
    R=$(echo $VER |cut -f2 -d.)
    L=$(echo $VER |cut -f3 -d.)
    shtool version --set "$(date +%Y).$(date +%m).$L" version.txt
    shtool version -i l version.txt
    shtool version version.txt > VERSION
