10
0
mirror of https://gitlab.com/scemama/EZFIO.git synced 2024-10-31 19:23:43 +01:00
EZFIO/git-tools/commit-msg

14 lines
247 B
Plaintext
Raw Normal View History

2020-01-27 11:32:17 +01:00
#!/usr/bin/python3
2014-08-26 15:04:22 +02:00
import os,sys
ROOT = os.path.dirname(__file__)+'/../../'
file = open(ROOT+'version','r')
lines = file.readlines()
file.close()
file = open(sys.argv[1],'a')
2020-01-27 11:32:17 +01:00
print('Version:'+lines[0].split('=')[1], file=file)
2014-08-26 15:04:22 +02:00
file.close()