summaryrefslogtreecommitdiff
path: root/deps/gyp/test/restat/src/create_intermediate.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/restat/src/create_intermediate.py')
-rw-r--r--deps/gyp/test/restat/src/create_intermediate.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/deps/gyp/test/restat/src/create_intermediate.py b/deps/gyp/test/restat/src/create_intermediate.py
new file mode 100644
index 0000000000..a4d7450371
--- /dev/null
+++ b/deps/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()