summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/validateinterfaces.py31
1 files changed, 20 insertions, 11 deletions
diff --git a/tools/validateinterfaces.py b/tools/validateinterfaces.py
index 985ab4d59..6061b358b 100755
--- a/tools/validateinterfaces.py
+++ b/tools/validateinterfaces.py
@@ -5,9 +5,11 @@
import os
import re
+import sys
from sets import Set
interfaceRe = re.compile("struct (?P<name1>[a-z_]+)_interface (?P<name2>[a-z_]+)_s;")
+silent = False
class Tracker:
pass
@@ -155,14 +157,21 @@ def reportMethods(tracker):
tracker = Tracker()
tracker.arr = dict()
tracker.methods = Set()
-print "Checking initerfaces initialisation"
-processIfDir(tracker, "../src/char");
-processIfDir(tracker, "../src/map");
-processIfDir(tracker, "../src/login");
-processIfDir(tracker, "../src/common");
-print "Checking interfaces usage"
-processDir(tracker, "../src/char");
-processDir(tracker, "../src/map");
-processDir(tracker, "../src/login");
-processDir(tracker, "../src/common");
-reportMethods(tracker)
+if len(sys.argv) > 1 and sys.argv[1] == "silent":
+ silent = True
+ processIfDir(tracker, "../src/char");
+ processIfDir(tracker, "../src/map");
+ processIfDir(tracker, "../src/login");
+ processIfDir(tracker, "../src/common");
+else:
+ print "Checking initerfaces initialisation"
+ processIfDir(tracker, "../src/char");
+ processIfDir(tracker, "../src/map");
+ processIfDir(tracker, "../src/login");
+ processIfDir(tracker, "../src/common");
+ print "Checking interfaces usage"
+ processDir(tracker, "../src/char");
+ processDir(tracker, "../src/map");
+ processDir(tracker, "../src/login");
+ processDir(tracker, "../src/common");
+ reportMethods(tracker)