#!/bin/bash make -j`expr $(nproc) / 2 + 1` "$@" 2>&1 | \ sed -u 's# \.\./\.\./# # s# \.\./# # s#^Running # Running # s#^Configured for # Configured for # s#^./temacs # ./temacs # s#^Dumping under the name# Dumping under the name# ' | \ egrep --line-buffered -v "^make|\ ^Loading|\ SCRAPE|\ INFO.*Scraping.*[.]\$|\ ^Waiting for git|\ ^Finding pointers|\ ^Using load-path|\ ^Adding name|\ ^Dump mode|\ ^Dumping finger|\ ^Byte counts|\ ^Reloc counts|\ ^Pure-hashed|\ ^cp -f temacs|\ ^rm -f bootstrap|\ ^Dump complete|\ ^rm -f emacs|\ mkdir -p etc|\ mkdir -p info|\ mkdir -p lisp|\ ^LC_ALL.*pdump|\ ^cp -f emacs.p|\ GEN.*loaddefs|\ ^Reloading stale|\ ^Source file.*newer than|\ ^Directories for loaddefs|\ ^./autogen.sh|\ ^[Cc]hecking |\ ^.Read INSTALL.REPO for more|\ ^Your system has the required tools.|\ ^Building aclocal.m4|\ ^ Running 'autoreconf|\ ^You can now run './configure'|\ ^./configure|\ ^configure: creating|\ ^\"configure\" file built.|\ ^There seems to be no|\ ^config.status:|\ ^ *$|\ ^Makefile built\ " | \ while read do [[ "X${REPLY:0:1}" == "X " ]] && C="" || C="\033[1;31m" printf "$C%s\033[0m\n" "$REPLY" done