mirror of https://github.com/BOINC/boinc.git
Limit grep operation to what's relevant and avoid accidental matches
Signed-off-by: Oliver Bock <oliver.bock@aei.mpg.de>
This commit is contained in:
parent
17ea7a1a63
commit
7a35b69c64
|
@ -39,7 +39,7 @@ def xlistdir(dir):
|
|||
|
||||
def get_api_version(exec_file):
|
||||
tmpfile = '.uvtemp'
|
||||
cmd = "strings %s | grep API_VERSION > %s"%(exec_file, tmpfile)
|
||||
cmd = "strings %s | egrep '^API_VERSION_[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$' > %s"%(exec_file, tmpfile)
|
||||
os.system(cmd)
|
||||
f = open(tmpfile, 'r')
|
||||
if (f):
|
||||
|
|
Loading…
Reference in New Issue