It helps when debugging compilation output to know who is speaking even if
Ninja buffers command output contrary to make.
STATUS=0
# Print each of its arguments on stderr (one per line) prefixed by the
+# basename of this script.
+stderr()
+{
+ local me=$(basename "$0")
+ local i
+ for i
+ do
+ echo >&2 "$me: $i"
+ done
+}
+
+# Print each of its arguments on stderr (one per line) prefixed by the
# basename of this script and 'error'.
error()
{
local i
for i
do
- echo >&2 "error: $i"
+ stderr "error: $i"
done
STATUS=1
}