From: Gregory Heytings via "Emacs development discussions." <emacs-devel@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: Script for compiling more quietly
Date: Mon, 14 Dec 2020 10:32:36 +0000 [thread overview]
Message-ID: <alpine.NEB.2.22.394.2012141119130453.17897@sdf.lonestar.org> (raw)
In-Reply-To: <87czzg8b8v.fsf@gnus.org>
[-- Attachment #1: Type: text/plain, Size: 816 bytes --]
Hi Lars,
>
> For some time now, I've been using the simple shell script below to do
> non-development Emacs compilation. That is, when I say "git pull" I
> always say "emake" afterwards, and I also run it when I apply patches
> from people and stuff. It basically suppresses all the informational
> messages from the build process, leaving me with just the bear
> necessities, so that you can forget about your worries and your strife,
> I mean, the wall of text.
>
Thanks for your script, which is indeed handy. I attach a slighly
improved version, which also "cleans" the autogen and configure steps, and
which displays error/warning messages in bold red. I also replaced your
"nproc" by "expr $(nproc) / 2 + 1", IME using nproc makes the computer
unuseable, and is not much faster than nproc/2+1.
[-- Attachment #2: Type: text/plain, Size: 1191 bytes --]
#!/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
next prev parent reply other threads:[~2020-12-14 10:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-11 18:10 Script for compiling more quietly Lars Ingebrigtsen
2020-12-14 10:32 ` Gregory Heytings via Emacs development discussions. [this message]
2020-12-14 10:52 ` Gregory Heytings via Emacs development discussions.
2020-12-14 14:35 ` Lars Ingebrigtsen
2020-12-14 15:08 ` Lars Ingebrigtsen
2020-12-14 14:39 ` Lars Ingebrigtsen
2020-12-14 15:09 ` Gregory Heytings via Emacs development discussions.
2020-12-14 15:23 ` Stefan Monnier
2020-12-14 15:28 ` Gregory Heytings via Emacs development discussions.
2020-12-14 15:56 ` Eli Zaretskii
2020-12-14 16:07 ` Gregory Heytings via Emacs development discussions.
2020-12-14 16:49 ` Eli Zaretskii
2020-12-14 16:53 ` Lars Ingebrigtsen
2020-12-14 17:24 ` Andrea Corallo via Emacs development discussions.
2020-12-14 17:55 ` Eli Zaretskii
2020-12-14 17:41 ` Gregory Heytings via Emacs development discussions.
2020-12-14 18:56 ` Lars Ingebrigtsen
2020-12-14 17:49 ` Eli Zaretskii
2020-12-14 23:36 ` Stefan Monnier
2020-12-14 15:00 ` Stefan Monnier
2020-12-14 15:14 ` Gregory Heytings via Emacs development discussions.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.NEB.2.22.394.2012141119130453.17897@sdf.lonestar.org \
--to=emacs-devel@gnu.org \
--cc=ghe@sdf.org \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.