diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-30 15:07:06 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-30 15:07:06 -0400 |
commit | 1f06941a7cc586c78152ca67dec0551106977b08 (patch) | |
tree | 4ebedfe5ed59fafae32e337eff73758828ff82f7 /build/msg-if.sh | |
parent | 37caa3d71fd8bb4d0d9204e4a2f5cac234fa25fd (diff) | |
download | bfs-1f06941a7cc586c78152ca67dec0551106977b08.tar.xz |
build: Listen to make -s
Diffstat (limited to 'build/msg-if.sh')
-rwxr-xr-x | build/msg-if.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/build/msg-if.sh b/build/msg-if.sh new file mode 100755 index 0000000..8112aea --- /dev/null +++ b/build/msg-if.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# Copyright © Tavian Barnes <tavianator@tavianator.com> +# SPDX-License-Identifier: 0BSD + +# Print a success/failure indicator from a makefile: +# +# $ ./configure +# [ CC ] use/liburing.c ✘ +# [ CC ] use/oniguruma.c ✔ + +set -eu + +MSG="$1" +shift + +if "$@"; then + build/msg.sh "$(printf '%-37s ✔' "$MSG")" +else + build/msg.sh "$(printf '%-37s ✘' "$MSG")" +fi |