diff options
author | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2023-06-13 11:05:01 +0300 |
commit | bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch) | |
tree | 1d1df72c0541a59a81439842f46d95396d3e7189 /build/scripts/mkver.py | |
parent | 8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff) | |
download | ydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz |
add ymake export to ydb
Diffstat (limited to 'build/scripts/mkver.py')
-rwxr-xr-x | build/scripts/mkver.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build/scripts/mkver.py b/build/scripts/mkver.py new file mode 100755 index 0000000000..321cdaade1 --- /dev/null +++ b/build/scripts/mkver.py @@ -0,0 +1,12 @@ +import sys + +if __name__ == '__main__': + with open(sys.argv[1], 'r') as f: + data = f.readline() + + beg = data.find('(') + 1 + end = data.find(')') + version = data[beg:end] + + print '#pragma once' + print '#define DEBIAN_VERSION "%s"' % version |