summaryrefslogtreecommitdiffstats
path: root/ci/build_qemu_rpm_deb/mkversion
blob: fa4e585b9f91c055dfb2b4cffaaa31dd5d906bce (plain)
1
2
3
4
5
6
7
8
9
10
if [ ! -f .version ]
then
    touch .version
    sudo chmod 777 .version
    echo 1 > .version
    echo 1
else
    expr 0`cat .version` + 1
    expr 0`cat .version` + 1 > .version
fi