mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 05:09:43 +00:00
12 lines
274 B
Python
Executable File
12 lines
274 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
""" Portable python script to read version from configure.acr """
|
|
|
|
import sys
|
|
|
|
with open(sys.argv[1], 'r') as f:
|
|
for l in f:
|
|
if 'SDBVER=' in l:
|
|
version = l.strip('\n').split('=')[1]
|
|
sys.stdout.write(version + '\n')
|