1*8d67ca89SAndroid Build Coastguard Worker#!/bin/bash -eu 2*8d67ca89SAndroid Build Coastguard Worker# 3*8d67ca89SAndroid Build Coastguard Worker# Runs the given C/C++ compile-ish command. On success, scrapes an object file 4*8d67ca89SAndroid Build Coastguard Worker# from that command line and touches it. 5*8d67ca89SAndroid Build Coastguard Worker 6*8d67ca89SAndroid Build Coastguard Worker"$@" 7*8d67ca89SAndroid Build Coastguard Workerfor arg in "$@"; do 8*8d67ca89SAndroid Build Coastguard Worker if [[ "$arg" == *.o ]]; then 9*8d67ca89SAndroid Build Coastguard Worker touch "$arg" 10*8d67ca89SAndroid Build Coastguard Worker fi 11*8d67ca89SAndroid Build Coastguard Workerdone 12