| 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 | "$@" | ||||
| 7 | obj="$(echo "$@" | grep -oP '\S+\.o\b')" | ||||
| 8 | touch "${obj}" | ||||