radare2/sys/sdb_version.py
Riccardo Schirone d6c9bd4542
Add support for binr/blob and fix android build ##meson ##build (#17150)
* Make sure meson can build with `system` = `android`.

* Add support for binr/blob in meson build

* Add also r_util as dependency

* Create sdb_version.py to get the SDBVER value from config.mk

* Set unknown sdb version if something fails
2020-07-05 10:53:37 +08:00

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')