mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Toolchain/BuildIt.sh: let's have colours on macOS too :^)
MacOS's sed doesn't support "\x1b" expansion unlike GNU sed, but we can still use bash's $'\x1b' to expand it.
This commit is contained in:
parent
8b78f2741d
commit
685556ae84
Notes:
sideshowbarker
2024-07-18 19:26:01 +09:00
Author: https://github.com/emanuele6 Commit: https://github.com/SerenityOS/serenity/commit/685556ae840 Pull-request: https://github.com/SerenityOS/serenity/pull/6456
1 changed files with 1 additions and 5 deletions
|
@ -80,11 +80,7 @@ GCC_BASE_URL="http://ftp.gnu.org/gnu/gcc"
|
|||
buildstep() {
|
||||
NAME=$1
|
||||
shift
|
||||
if [ "$SYSTEM_NAME" = "Darwin" ]; then
|
||||
"$@" 2>&1 | sed 's|^|['"${NAME}"'] |'
|
||||
else
|
||||
"$@" 2>&1 | sed 's|^|\x1b[34m['"${NAME}"']\x1b[39m |'
|
||||
fi
|
||||
"$@" 2>&1 | sed $'s|^|\x1b[34m['"${NAME}"$']\x1b[39m |'
|
||||
}
|
||||
|
||||
# === CHECK CACHE AND REUSE ===
|
||||
|
|
Loading…
Reference in a new issue