• Michael Shigorin's avatar
    reports.mk: use process substitution to dedup · 6f584cdc
    Michael Shigorin authored
    The first half of both pipes was clearly a copy-pasted
    initial logfile processing; the file can be of considerable
    size (e.g. several megabytes) so it might be slightly more
    efficient and cool (but a bit more arcane) to use bash(1)'s
    process substitution along with good ol' tee(1) like this:
    
    $ echo -e '1\n2\n3' |tee /dev/stderr 2> >(grep 2 >STDERR) |grep 1 >STDOUT
    $ head STD*
    ==> STDERR <==
    2
    
    ==> STDOUT <==
    1
    6f584cdc
Name
Last commit
Last update
.gear Loading commit data...
bin Loading commit data...
conf.d Loading commit data...
doc Loading commit data...
features.in Loading commit data...
image.in Loading commit data...
lib Loading commit data...
pkg.in Loading commit data...
sub.in Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
QUICKSTART Loading commit data...
README Loading commit data...
main.mk Loading commit data...
reports.mk Loading commit data...