| George Burgess IV | db48e0c | 2019-05-02 16:23:31 -0700 | [diff] [blame] | 1 | #!/bin/bash -eu |
| 2 | # | ||||
| 3 | # Runs the given C/C++ compile-ish command. On success, scrapes an object file | ||||
| 4 | # from that command line and touches it. | ||||
| 5 | |||||
| 6 | "$@" | ||||
| Elliott Hughes | 165a8c6 | 2019-07-08 15:03:19 -0700 | [diff] [blame] | 7 | for arg in "$@"; do |
| 8 | if [[ "$arg" == *.o ]]; then | ||||
| 9 | touch "$arg" | ||||
| 10 | fi | ||||
| 11 | done | ||||