Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Unified Diff: src/inspector/build/xxd.py

Issue 2300823002: Revert of [inspector] Initial import of v8_inspector. (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/build/rjsmin.py ('k') | src/inspector/debugger_script_externs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/build/xxd.py
diff --git a/src/inspector/build/xxd.py b/src/inspector/build/xxd.py
deleted file mode 100644
index 5a63a7cb8d038199efe8da585ca7a32401ac5e4f..0000000000000000000000000000000000000000
--- a/src/inspector/build/xxd.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 2016 the V8 project authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Represent a file as a C++ constant string.
-
-Usage:
-python xxd.py VAR SOURCE DEST
-"""
-
-
-import sys
-import rjsmin
-
-
-def main():
- variable_name, input_filename, output_filename = sys.argv[1:]
- with open(input_filename) as input_file:
- input_text = input_file.read()
- input_text = rjsmin.jsmin(input_text)
- hex_values = ['0x{0:02x}'.format(ord(char)) for char in input_text]
- const_declaration = 'const char %s[] = {\n%s\n};\n' % (
- variable_name, ', '.join(hex_values))
- with open(output_filename, 'w') as output_file:
- output_file.write(const_declaration)
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « src/inspector/build/rjsmin.py ('k') | src/inspector/debugger_script_externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698