projects
/
platform
/
upstream
/
gstreamer.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
latency: Dot not override already stored events
[platform/upstream/gstreamer.git]
/
gst
/
parse
/
get_flex_version.py
1
#!/usr/bin/env python3
2
3
import re
4
import sys
5
import subprocess
6
7
flex = sys.argv[1]
8
9
out = subprocess.check_output([flex, '--version'], universal_newlines=True,
10
stderr=subprocess.STDOUT, stdin=subprocess.DEVNULL)
11
print(re.search(r'(\d+\.\d+(\.\d+)?)', out).group())