| # 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).""" |
| parser = optparse.OptionParser() |
| parser.add_option('-f', '--force', action='store_true') |
| parser.add_option('--touch') |
| options, args = parser.parse_args(argv[1:]) |
| parser.error('at least two arguments required.') |
| t = os.path.join(target, os.path.basename(s)) |
| if e.errno == errno.EEXIST and options.force: |
| with open(options.touch, 'w') as f: |
| if __name__ == '__main__': |