Index: tools/status-file-converter.py |
diff --git a/samples/SConscript b/tools/status-file-converter.py |
old mode 100644 |
new mode 100755 |
similarity index 80% |
copy from samples/SConscript |
copy to tools/status-file-converter.py |
index 84c48c9047b694b965319d09f59e3f12491d468e..ba063ee8c74aaac992343d7cf0bec7c5270b0407 |
--- a/samples/SConscript |
+++ b/tools/status-file-converter.py |
@@ -1,4 +1,6 @@ |
-# Copyright 2008 the V8 project authors. All rights reserved. |
+#!/usr/bin/env python |
+# |
+# Copyright 2012 the V8 project authors. All rights reserved. |
# Redistribution and use in source and binary forms, with or without |
# modification, are permitted provided that the following conditions are |
# met: |
@@ -25,14 +27,13 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-from os.path import join |
-Import('sample context tools') |
-def ConfigureObjectFiles(): |
- env = Environment(tools=tools) |
- env.Replace(**context.flags['sample']) |
- context.ApplyEnvOverrides(env) |
- return env.Object(sample + '.cc') |
+import sys |
+from testrunner.local import old_statusfile |
+ |
+if len(sys.argv) != 2: |
+ print "Usage: %s foo.status" % sys.argv[0] |
+ print "Will read foo.status and print the converted version to stdout." |
+ sys.exit(1) |
-sample_object = ConfigureObjectFiles() |
-Return('sample_object') |
+print old_statusfile.ConvertNotation(sys.argv[1]).GetOutput() |