提交 d96729c3 编写于 作者: H Hans Muller

updated

上级 a548d390
......@@ -11,6 +11,8 @@ To get the code:
* Fork https://github.com/domokit/sky_engine into your own GitHub account.
* [Download depot_tools](http://www.chromium.org/developers/how-tos/install-depot-tools)
and make sure it is in your path.
* If you haven't configured your machine with an SSH key that's shared by github then
follow the directions here: https://help.github.com/articles/generating-ssh-keys/.
* Create a `.gclient` file in an empty directory with the following contents:
```
......@@ -27,7 +29,7 @@ solutions = [
target_os = ["android"]
```
* `svn ls https://dart.googlecode.com/` and accept the certificate permanently.
* If you're on a Mac then: `svn ls https://dart.googlecode.com/` and accept the certificate permanently.
* `gclient sync`
* `cd src`
* `git remote add upstream git@github.com:domokit/sky_engine.git`
......
......@@ -2,26 +2,19 @@
# Copyright (c) 2013 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.
"""Make a symlink and optionally touch a file (to handle dependencies)."""
import errno
import optparse
import os.path
import shutil
import sys
def Main(argv):
parser = optparse.OptionParser()
parser.add_option('-f', '--force', action='store_true')
parser.add_option('--touch')
options, args = parser.parse_args(argv[1:])
if len(args) < 2:
parser.error('at least two arguments required.')
target = args[-1]
sources = args[:-1]
for s in sources:
......@@ -39,12 +32,8 @@ def Main(argv):
os.symlink(s, t)
else:
raise
if options.touch:
with open(options.touch, 'w') as f:
pass
if __name__ == '__main__':
sys.exit(Main(sys.argv))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册