blob: 665c1bbc4145d87eeb27d13c2fc3818066a4f489 [file] [log] [blame]
#!/bin/sh
# Copyright 2020 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
rm -f "$3"
if cmp -s "$1" "$2"; then
echo OK > "$3"
exit 0
fi
echo >&2 "*** $2 is out of date"
echo >&2 "*** Fix this by running:"
echo >&2 '\\\'
echo >&2 ""
echo >&2 "cp $1 $2"
echo >&2 ""
echo >&2 '\\\'
exit 1