mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-08 14:58:54 +00:00
12 lines
274 B
Python
12 lines
274 B
Python
|
#!/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')
|