x48/utils/makeversion

15 lines
182 B
Text
Raw Normal View History

#! /bin/sh
if [ ! -f .version ]
then
echo 0 > .version
fi
cycle=`cat .version`
cycle=`expr $cycle + 1`
if [ $cycle -gt 255 ]
then
cycle=0
fi
echo $cycle > .version