mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-11-09 07:33:43 +01:00
19 lines
307 B
Plaintext
19 lines
307 B
Plaintext
|
#!/usr/bin/python
|
||
|
|
||
|
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()
|
||
|
|