summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-09-12 10:26:43 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-09-12 10:26:43 (GMT)
commit04f1fcc7cec93068afc7270297f9fea9ca5f49f5 (patch)
tree8329acbc43182418eb37ee43013fca9fa2463ab9 /BuildTools/SCons/Tools
parentcc4ce85b1d5a4d0fe47690c2aa0748cc964a6cae (diff)
downloadswift-04f1fcc7cec93068afc7270297f9fea9ca5f49f5.zip
swift-04f1fcc7cec93068afc7270297f9fea9ca5f49f5.tar.bz2
Ignore .qrc in sloc counts.
Diffstat (limited to 'BuildTools/SCons/Tools')
-rw-r--r--BuildTools/SCons/Tools/SLOCCount.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BuildTools/SCons/Tools/SLOCCount.py b/BuildTools/SCons/Tools/SLOCCount.py
index fd09abe..abf4a3c 100644
--- a/BuildTools/SCons/Tools/SLOCCount.py
+++ b/BuildTools/SCons/Tools/SLOCCount.py
@@ -9,7 +9,7 @@ def generate(env) :
# FIXME: There's probably a better way to force building the .sc
if os.path.exists(target.abspath) :
os.unlink(target.abspath)
- return myenv.Command(target, source, [SCons.Action.Action("sloccount --duplicates --wide --details " + source.path + " > $TARGET", cmdstr = "$GENCOMSTR")])
+ return myenv.Command(target, source, [SCons.Action.Action("sloccount --duplicates --wide --details " + source.path + " | grep -v qrc_ > $TARGET", cmdstr = "$GENCOMSTR")])
env.AddMethod(createSLOCCount, "SLOCCount")