mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +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
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…
Add table
Add a link
Reference in a new issue