Alex Deymo | 04ef207 | 2015-08-13 08:19:16 -0700 | [diff] [blame^] | 1 | { |
| 2 | 'variables': { |
| 3 | 'out_dir': '<(SHARED_INTERMEDIATE_DIR)/<(image_out_dir)', |
| 4 | }, |
| 5 | 'rules': [ |
| 6 | { |
| 7 | 'rule_name': 'tar-bunzip2', |
| 8 | 'extension': 'bz2', |
| 9 | 'inputs': [ |
| 10 | '<(RULE_INPUT_PATH)', |
| 11 | ], |
| 12 | 'outputs': [ |
| 13 | # The .flag file is used to mark the timestamp of the file extraction |
| 14 | # and re-run this action if a new .bz2 file is generated. |
| 15 | '<(out_dir)/<(RULE_INPUT_ROOT).flag', |
| 16 | ], |
| 17 | 'action': [ |
| 18 | 'sh', |
| 19 | '-c', |
| 20 | 'tar -xvf "<(RULE_INPUT_PATH)" -C "<(out_dir)" && touch <(out_dir)/<(RULE_INPUT_ROOT).flag', |
| 21 | ], |
| 22 | 'msvs_cygwin_shell': 0, |
| 23 | 'process_outputs_as_sources': 1, |
| 24 | 'message': 'Unpacking file <(RULE_INPUT_PATH)', |
| 25 | }, |
| 26 | ], |
| 27 | } |