blob: 81c68d7529e95c85622b10f1df9d26a983a7c852 [file] [log] [blame]
# This script wraps a binary that does not generate any output file, but
# can return a status (success or fail). Ninja actions need an output to
# resolve dependencies, so this wrapper creates or updates a stamp file
# with the date/time of the last success.
# Stamp file to touch after the command runs successfully
# Execute the command and check return status
# only update the stamp file if the command returned a successful status
if (( $status == 0 )); then
touch "${stamp}"
exit ${status}