mkversion 74 B

123456
  1. if [ ! -f .version ]
  2. then
  3. echo 1
  4. else
  5. expr 0`cat .version` + 1
  6. fi