summaryrefslogtreecommitdiff
path: root/third_party/waf/wafadmin/3rdparty/paranoid.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/waf/wafadmin/3rdparty/paranoid.py')
-rw-r--r--third_party/waf/wafadmin/3rdparty/paranoid.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/third_party/waf/wafadmin/3rdparty/paranoid.py b/third_party/waf/wafadmin/3rdparty/paranoid.py
deleted file mode 100644
index 13dfb68ef0d..00000000000
--- a/third_party/waf/wafadmin/3rdparty/paranoid.py
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env python
-# encoding: utf-8
-# ita 2010
-
-import Logs, Utils, Build, Task
-
-def say(txt):
- Logs.warn("^o^: %s" % txt)
-
-try:
- ret = Utils.cmd_output('which cowsay 2> /dev/null').strip()
-except Exception, e:
- pass
-else:
- def say(txt):
- f = Utils.cmd_output([ret, txt])
- Utils.pprint('PINK', f)
-
-say('you make the errors, we detect them')
-
-def check_task_classes(self):
- for x in Task.TaskBase.classes:
- if isinstance(x, Task.Task):
- if not getattr(x, 'ext_in', None) or getattr(x, 'before', None):
- say('class %s has no precedence constraints (ext_in/before)')
- if not getattr(x, 'ext_out', None) or getattr(x, 'after', None):
- say('class %s has no precedence constraints (ext_out/after)')
-
-comp = Build.BuildContext.compile
-def compile(self):
- if not getattr(self, 'magic', None):
- check_task_classes(self)
- return comp(self)
-Build.BuildContext.compile = compile