x48/utils/makeversion
Gwenhael Le Moine e59ca61c98 import of sources from latest release found on Sourceforge
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2015-07-26 11:16:05 +02:00

14 lines
182 B
Bash
Executable file

#! /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