12f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org#!/usr/bin/env python 22f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org 32f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org# Copyright (c) 2012 Google Inc. All rights reserved. 42f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org# Use of this source code is governed by a BSD-style license that can be 52f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org# found in the LICENSE file. 62f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org 72f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.orgimport os 82f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.orgimport sys 92f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org 102f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org""" 112f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.orgCreate argv[1] iff it doesn't already exist. 122f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org""" 132f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org 142f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.orgoutfile = sys.argv[1] 152f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.orgif os.path.exists(outfile): 162f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.org sys.exit() 172f01fe472dc85634609eb916b9c5e39d09b57a82thakis@chromium.orgopen(outfile, "wb").close() 18