Chromium Code Reviews| Index: build/symlink.py |
| diff --git a/build/symlink.py b/build/symlink.py |
| index b88f1b65dc1ab7c2fd656155b2f0812f3fb46b19..75a3e4e6d156fb75f3a59d339ecc1e0c4479b0ae 100755 |
| --- a/build/symlink.py |
| +++ b/build/symlink.py |
| @@ -26,6 +26,8 @@ def Main(argv): |
| sources = args[:-1] |
| for s in sources: |
| t = os.path.join(target, os.path.basename(s)) |
| + if len(sources) == 1 and not os.path.isdir(target): |
| + t = target |
| try: |
| os.symlink(s, t) |
| except OSError, e: |