aboutsummaryrefslogtreecommitdiff
path: root/tools/emmakenxx.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-04-27 16:58:13 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-04-27 16:58:13 -0700
commit85cba40ddc63e34f7f5ebc06a53e1f00137662c7 (patch)
tree0a812aaa5b200b6abc5292210780d341d685c567 /tools/emmakenxx.py
parent6345f59ce83d57b08866083dde88f1157dfb8921 (diff)
emmakenxx.py to handle .c files in projects that are really c++
Diffstat (limited to 'tools/emmakenxx.py')
-rwxr-xr-xtools/emmakenxx.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/emmakenxx.py b/tools/emmakenxx.py
new file mode 100755
index 00000000..e271d765
--- /dev/null
+++ b/tools/emmakenxx.py
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+'''
+see emmaken.py
+'''
+
+import os, sys
+
+abspath = os.path.abspath(os.path.dirname(__file__))
+def path_from_root(*pathelems):
+ return os.path.join(os.path.sep, *(abspath.split(os.sep)[:-1] + list(pathelems)))
+exec(open(path_from_root('tools', 'shared.py'), 'r').read())
+
+emmaken = path_from_root('tools', 'emmaken.py')
+exit(os.execvp('python', ['python', emmaken] + sys.argv[1:] + ['-EMMAKEN_CXX']))
+