linux/scripts/mkversion
<<
>>
Prefs
   1if [ ! -f .version ]
   2then
   3    echo 1
   4else
   5    expr 0`cat .version` + 1
   6fi
   7