165a8c6653
This might let us get to using toybox grep for the build faster than if we have to implement PCRE support. Test: builds Change-Id: Idaf24cfefbf18fdc442871f24fe4fe9b2152359a
11 lines
222 B
Bash
Executable file
11 lines
222 B
Bash
Executable file
#!/bin/bash -eu
|
|
#
|
|
# Runs the given C/C++ compile-ish command. On success, scrapes an object file
|
|
# from that command line and touches it.
|
|
|
|
"$@"
|
|
for arg in "$@"; do
|
|
if [[ "$arg" == *.o ]]; then
|
|
touch "$arg"
|
|
fi
|
|
done
|