Index: tools/clang/scripts/posix-print-revision.py |
diff --git a/tools/clang/scripts/posix-print-revision.py b/tools/clang/scripts/posix-print-revision.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5ac5277a98ccd6754901018bcbecbd15c0974f02 |
--- /dev/null |
+++ b/tools/clang/scripts/posix-print-revision.py |
@@ -0,0 +1,11 @@ |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import os |
+import sys |
+ |
+# GN only supports shelling to python. Until update.py is used on all |
+# platforms (currently only Windows), wrap update.sh. |
+sys.exit(os.system(os.path.join(os.path.dirname(__file__), 'update.sh') + |
+ ' --print-revision')) |