10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-11-08 23:23:44 +01:00
irpf90/tools/post-commit

19 lines
312 B
Plaintext
Raw Normal View History

2018-04-27 15:18:22 +02:00
#!/usr/bin/env python2
2009-09-02 20:45:53 +02:00
import os
ROOT = os.path.dirname(__file__)+'/../../'
file = open(ROOT+'src/version.py','r') ;
exec file
file.close() ;
v = version.split('.')
v = map(int,v)
v[2] += 1
line = 'version = "%d.%d.%d"\n'%tuple(v)
file = open(ROOT+'src/version.py','w')
file.writelines([line])
file.close()