media/webrtc/trunk/build/cp.py

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/build/cp.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +#!/usr/bin/env python
     1.5 +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
     1.6 +# Use of this source code is governed by a BSD-style license that can be
     1.7 +# found in the LICENSE file.
     1.8 +
     1.9 +"""Copy a file.
    1.10 +
    1.11 +This module works much like the cp posix command - it takes 2 arguments:
    1.12 +(src, dst) and copies the file with path |src| to |dst|.
    1.13 +"""
    1.14 +
    1.15 +import shutil
    1.16 +import sys
    1.17 +
    1.18 +
    1.19 +def Main(src, dst):
    1.20 +  # Use copy instead of copyfile to ensure the executable bit is copied.
    1.21 +  return shutil.copy(src, dst)
    1.22 +
    1.23 +
    1.24 +if __name__ == '__main__':
    1.25 +  sys.exit(Main(sys.argv[1], sys.argv[2]))

mercurial