Gitiles
Code Review
Sign In
gerrit.omnirom.org
/
android_bionic
/
8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1
/
.
/
tests
/
touch-obj-on-success
blob: d8a71ba241c6c6ebd2421425b34dd1beae434057 [
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.
"$@"
for
arg
in
"$@"
;
do
if
[[
"$arg"
==
*.
o
]];
then
touch
"$arg"
fi
done