diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 03:24:12 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 03:24:12 +0000 |
commit | b5b99a917c7f8610b848afcca333be22ddd2b67b (patch) | |
tree | 6514b64240bb2ecd12b6de88cdb3f8c3fdb3ac14 /build/cp.py | |
parent | 5b79035462bce381afc334384ba15eb425cd9bc4 (diff) | |
download | chromium_src-b5b99a917c7f8610b848afcca333be22ddd2b67b.zip chromium_src-b5b99a917c7f8610b848afcca333be22ddd2b67b.tar.gz chromium_src-b5b99a917c7f8610b848afcca333be22ddd2b67b.tar.bz2 |
Set svn:executable bit on scripts that are executable.
R=mark@chromium.org
BUG=
TEST=
Review URL: http://codereview.chromium.org/10165021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/cp.py')
-rwxr-xr-x[-rw-r--r--] | build/cp.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/build/cp.py b/build/cp.py index 7dfeb38..d0c46f41 100644..100755 --- a/build/cp.py +++ b/build/cp.py @@ -1,18 +1,21 @@ -#!/usr/bin/python -# Copyright (c) 2011 The Chromium Authors. All rights reserved. +#!/usr/bin/env python +# Copyright (c) 2012 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 shutil, sys; - -""" Copy File. +"""Copy a file. This module works much like the cp posix command - it takes 2 arguments: (src, dst) and copies the file with path |src| to |dst|. """ +import shutil +import sys + + def Main(src, dst): return shutil.copyfile(src, dst) + if __name__ == '__main__': sys.exit(Main(sys.argv[1], sys.argv[2])) |