diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-09-12 10:26:43 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-09-12 10:26:43 (GMT) |
commit | 04f1fcc7cec93068afc7270297f9fea9ca5f49f5 (patch) | |
tree | 8329acbc43182418eb37ee43013fca9fa2463ab9 /BuildTools/SCons/Tools | |
parent | cc4ce85b1d5a4d0fe47690c2aa0748cc964a6cae (diff) | |
download | swift-04f1fcc7cec93068afc7270297f9fea9ca5f49f5.zip swift-04f1fcc7cec93068afc7270297f9fea9ca5f49f5.tar.bz2 |
Ignore .qrc in sloc counts.
Diffstat (limited to 'BuildTools/SCons/Tools')
-rw-r--r-- | BuildTools/SCons/Tools/SLOCCount.py | 2 |
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") |