blob: 854ec1891cd1280cd5aa799817e8d2fcbc2648e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/python
import re
import sys
import subprocess
duplicate_warning = re.compile("WARNING: [^ ]*: '(.*?)' exported twice. Previous.*")
permitted_duplicates = ['kinematicsType', 'kinematicsForward',
'kinematicsInverse']
kbuild = subprocess.Popen(sys.argv[1:], stderr=subprocess.PIPE)
for line in kbuild.stderr:
m = duplicate_warning.match(line)
if m and m.group(1) in permitted_duplicates: continue
sys.stderr.write(line)
raise SystemExit, kbuild.wait()
|