home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / makever.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1994-06-05  |  270 b   |  23 lines

  1. #! /bin/sh
  2.  
  3. if [ ! -f .version ]
  4. then
  5.   echo 0 > .version
  6. fi
  7.  
  8. if [ -d /sys/c ]
  9. then
  10.   typeset -i cycle
  11.   cycle=`/c/type .version`
  12.   let cycle=$cycle+1
  13. else
  14.   cycle=`cat .version`
  15.   cycle=`expr $cycle + 1`
  16. fi
  17.  
  18. if [ $cycle -gt 99 ]
  19. then
  20.     cycle=0
  21. fi
  22. echo $cycle > .version
  23.