media/webrtc/trunk/build/win/setup_cygwin_mount.py

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/webrtc/trunk/build/win/setup_cygwin_mount.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
     1.5 +# Use of this source code is governed by a BSD-style license that can be
     1.6 +# found in the LICENSE file.
     1.7 +
     1.8 +import os
     1.9 +import sys
    1.10 +
    1.11 +def main():
    1.12 +  if len(sys.argv) != 2 or sys.argv[1] != '--win-only':
    1.13 +    return 1
    1.14 +  if sys.platform in ('win32', 'cygwin'):
    1.15 +    self_dir = os.path.dirname(sys.argv[0])
    1.16 +    mount_path = os.path.join(self_dir, "../../third_party/cygwin")
    1.17 +    batch_path = os.path.join(mount_path, "setup_mount.bat")
    1.18 +    return os.system(os.path.normpath(batch_path) + ">nul")
    1.19 +  return 0
    1.20 +
    1.21 +
    1.22 +if __name__ == "__main__":
    1.23 +  sys.exit(main())

mercurial