Gitiles
Code Review
Sign In
gerrit.omnirom.org
/
android_bionic
/
93f79a1a5b9a19f4e8755b8da8ca8f19a08b341a
/
.
/
tests
/
touch-obj-on-success
blob: df08a4968e661897acf3375643331de50e6c71f6 [
file
] [
log
] [
blame
]
#!/bin/bash -eu
#
# Runs the given C/C++ compile-ish command. On success, scrapes an object file
# from that command line and touches it.
"$@"
obj
=
"$(echo "
$@
" | grep -oP '\S+\.o\b')"
touch
"${obj}"