summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/restat/src/create_intermediate.py
diff options
context:
space:
mode:
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/restat/src/create_intermediate.py')
-rw-r--r--media/webrtc/trunk/tools/gyp/test/restat/src/create_intermediate.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/restat/src/create_intermediate.py b/media/webrtc/trunk/tools/gyp/test/restat/src/create_intermediate.py
new file mode 100644
index 000000000..a4d745037
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/restat/src/create_intermediate.py
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2012 Google Inc. 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
+
+"""
+Create argv[1] iff it doesn't already exist.
+"""
+
+outfile = sys.argv[1]
+if os.path.exists(outfile):
+ sys.exit()
+open(outfile, "wb").close()