Stop using grep -P.

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
This commit is contained in:
Elliott Hughes 2019-07-08 15:03:19 -07:00
parent afce4e897f
commit 165a8c6653
1 changed files with 5 additions and 2 deletions

View File

@ -4,5 +4,8 @@
# from that command line and touches it.
"$@"
obj="$(echo "$@" | grep -oP '\S+\.o\b')"
touch "${obj}"
for arg in "$@"; do
if [[ "$arg" == *.o ]]; then
touch "$arg"
fi
done