OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 """Create placeholder files. |
| 7 """ |
| 8 |
| 9 import optparse |
| 10 import os |
| 11 import sys |
| 12 |
| 13 from util import build_utils |
| 14 |
| 15 def main(): |
| 16 parser = optparse.OptionParser() |
| 17 parser.add_option( |
| 18 '--dest-lib-dir', |
| 19 help='Destination directory to have placeholder files.') |
| 20 parser.add_option( |
| 21 '--stamp', |
| 22 help='Path to touch on success') |
| 23 |
| 24 options, args = parser.parse_args() |
| 25 |
| 26 for name in args: |
| 27 target_path = os.path.join(options.dest_lib_dir, name) |
| 28 build_utils.Touch(target_path) |
| 29 |
| 30 if options.stamp: |
| 31 build_utils.Touch(options.stamp) |
| 32 |
| 33 if __name__ == '__main__': |
| 34 sys.exit(main()) |
| 35 |
OLD | NEW |