]> git.ipfire.org Git - thirdparty/man-pages.git/commit
src.mk: Optimize pipeline
authorAlejandro Colomar <alx@kernel.org>
Fri, 14 Apr 2023 15:12:30 +0000 (17:12 +0200)
committerAlejandro Colomar <alx@kernel.org>
Fri, 14 Apr 2023 15:37:41 +0000 (17:37 +0200)
commitf76ae175aa2ad029f22dfa5c799eebc297a4e876
treedc4ccf7dee025b7c00cbea08683ba0e14e5d9967
parent391bf54cfd5daf93fc904959d062259065c94ffc
src.mk: Optimize pipeline

This pipeline is run for every make(1) invokation, and it was very slow,
due to running a new sed(1) process for every manual page.  Remove the
while loop, and rewrite so that all the commands in the pipeline are
only run once.  This brings times down ~10x in my system, from 1.5 s, to
just 0.14 s.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/build/src.mk