From fe4dbe0430524152d198401eb18934abd4bae082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 22 Aug 2009 11:42:41 +0200 Subject: Return error value when found expanded tabs. diff --git a/BuildTools/CheckTabs.py b/BuildTools/CheckTabs.py index 3dac977..6455a07 100755 --- a/BuildTools/CheckTabs.py +++ b/BuildTools/CheckTabs.py @@ -2,6 +2,8 @@ import os, sys +foundExpandedTabs = False + for (path, dirs, files) in os.walk(".") : if not "3rdParty" in path : for filename in [os.path.join(path, file) for file in files if file.endswith(".cpp") or file.endswith(".h")] : @@ -33,4 +35,7 @@ for (path, dirs, files) in os.walk(".") : file.write(''.join(contents)) file.close() else : + foundExpandedTabs = True print filename + " contains expanded tabs" + +sys.exit(foundExpandedTabs) -- cgit v0.10.2-6-g49f6