diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-05-19 08:47:04 (GMT) | 
|---|---|---|
| committer | Kevin Smith <kevin.smith@isode.com> | 2015-05-19 10:33:54 (GMT) | 
| commit | ed23f4578d6a5776b77e743ad54802d55f54f7e1 (patch) | |
| tree | 36bd0737bf6a9890577baa796858d1ce75b62537 /BuildTools/SCons/Tools/SLOCCount.py | |
| parent | e86a46545e23ad824d7013c3c57bd83a52ade9af (diff) | |
| download | swift-ed23f4578d6a5776b77e743ad54802d55f54f7e1.zip swift-ed23f4578d6a5776b77e743ad54802d55f54f7e1.tar.bz2  | |
Consolidate Python and SCons files to tab based indentation
Test-Information:
Verified that SCons still runs on OS X.
Change-Id: I7e9b97f90ee5581a691a959b6f2c999d93e0be53
Diffstat (limited to 'BuildTools/SCons/Tools/SLOCCount.py')
| -rw-r--r-- | BuildTools/SCons/Tools/SLOCCount.py | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/BuildTools/SCons/Tools/SLOCCount.py b/BuildTools/SCons/Tools/SLOCCount.py index abf4a3c..682a797 100644 --- a/BuildTools/SCons/Tools/SLOCCount.py +++ b/BuildTools/SCons/Tools/SLOCCount.py @@ -1,17 +1,17 @@  import SCons.Util, os.path, os  def generate(env) : -  def createSLOCCount(env, source) : -    myenv = env.Clone() -    myenv["ENV"]["HOME"] = os.environ["HOME"] -    source = myenv.Dir(source) -    target = myenv.File("#/" + source.path + ".sloccount") -    # 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 + " | grep -v qrc_ > $TARGET", cmdstr = "$GENCOMSTR")]) +	def createSLOCCount(env, source) : +		myenv = env.Clone() +		myenv["ENV"]["HOME"] = os.environ["HOME"] +		source = myenv.Dir(source) +		target = myenv.File("#/" + source.path + ".sloccount") +		# 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 + " | grep -v qrc_ > $TARGET", cmdstr = "$GENCOMSTR")]) -  env.AddMethod(createSLOCCount, "SLOCCount") +	env.AddMethod(createSLOCCount, "SLOCCount")  def exists(env) : -  return True +	return True  | 
 Swift