summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-24 18:09:29 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-24 18:09:29 (GMT)
commitf6e73393afbe7ce8d1a5c5fc55565582cb8906cc (patch)
treeb50fe99468a518e705d9ef3b8a1ae1638a07b3dc /tools
parent0dd979a856719f16925f84d6be532bd31044fa82 (diff)
downloadswift-f6e73393afbe7ce8d1a5c5fc55565582cb8906cc.zip
swift-f6e73393afbe7ce8d1a5c5fc55565582cb8906cc.tar.bz2
Update the build system.
Coverage now works better. Some files are cleaned by default (without the need of CLEANFILES).
Diffstat (limited to 'tools')
-rwxr-xr-xtools/coverage/FilterLCovData.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/coverage/FilterLCovData.py b/tools/coverage/FilterLCovData.py
index 8b8d24e..b1dd74e 100755
--- a/tools/coverage/FilterLCovData.py
+++ b/tools/coverage/FilterLCovData.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-import sys, re
+import sys, re, os.path
assert(len(sys.argv) == 2)
@@ -15,8 +15,9 @@ for line in inputFile.readlines() :
if line.startswith("SF:") and (line.find("/Swiften/") == -1 or line.find("/UnitTest/") != -1 or line.find("/QA/") != -1 or line.find("/3rdParty/") != -1):
inIgnoredFile = True
else :
- if line.startswith("SF:") :
- line = line.replace("/./Swiften/", "/Swiften/")
+ m = re.match("SF:(.*)", line)
+ if m :
+ line = "SF:" + os.path.realpath(m.group(1)) + "\n"
output.append(line)
inputFile.close()