File: makeversion

package info (click to toggle)
x48 0.4-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 896 kB
  • ctags: 1,703
  • sloc: ansic: 20,843; asm: 297; makefile: 50; sh: 34
file content (14 lines) | stat: -rwxr-xr-x 182 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /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