10
0
mirror of https://gitlab.com/scemama/EZFIO.git synced 2024-11-19 04:22:25 +01:00
EZFIO/git-tools/post-commit

18 lines
319 B
Plaintext
Raw Normal View History

2014-08-26 15:04:22 +02:00
#!/usr/bin/python
import os
ROOT = os.path.dirname(__file__)+'/../../'
file = open(ROOT+'version','r') ;
lines = file.readlines() ;
file.close() ;
v = map(int,lines[0].split('=')[1].split('.'));
v[2] += 1
lines[0] = "VERSION=%d.%d.%d\n"%tuple(v)
file = open(ROOT+'version','w')
file.writelines(lines)
file.close()