Hi again Pablo, On Sat, Jul 20, 2024 at 11:34:04AM +1000, Duncan Roe wrote: > Hi Pablo, > > Did you notice my build speedup patch > https://patchwork.ozlabs.org/project/netfilter-devel/patch/20240628040439.8501-1-duncan_roe@xxxxxxxxxxxxxxx/ > > The patch reduces the time taken by build_man.sh by about 10 times (on a > system with 16+ cores) with overall CPU use being halved. > > I sent a single patch because only 1 file is changed. Would you rather have > the development series? There are 17 patches: add time commands + 15 > speedups + remove time commands. > > You can run the attached script to verify doxygen/man/ is unchanged (and > in libnetfilter_log as well). > > Cheers ... Duncan. Sorry, diffdir as I posted used `glb` from my command-line toolbox. This one doesn't. Cheers ... Duncan.
#!/bin/sh #set -x opts="" while [ $(echo -- "$1"|cut -c4) = '-' ] do opts="$opts $1" shift done if [ -z "$1" -o -z "$2" ];then echo "Usage:- $(basename "$0") [diff opts] <dir1> <dir to be compared to dir1>" exit 1 fi find "$1" -name CVS -prune -o -name .git -prune -o -type d ! -name RCS -exec sh -c "diff $opts \"{}\" \"\$(echo \"{}\" | sed s?^\"$1\"?\"$2\"?)\"" \; 2>&1|grep -E --line-buffered -v '^Common subdirectories: '