From 04f1fcc7cec93068afc7270297f9fea9ca5f49f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sun, 12 Sep 2010 12:26:43 +0200
Subject: Ignore .qrc in sloc counts.


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")
 
-- 
cgit v0.10.2-6-g49f6