Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Updated CONTRIBUTING.md and symlink.py #98

Merged
merged 1 commit into from
Jul 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand All @@ -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 [email protected]:domokit/sky_engine.git`
Expand Down
11 changes: 0 additions & 11 deletions build/symlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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))