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