6 t-dependencies man-db make groff git-debrebase
10 printenv |grep MAKE ||: |t-sort
11 manpages=$(MAKEFLAGS= MAKELEVEL= make list-manpages)
16 if [ "x${DGIT_MANPAGES_SOURCE_DIR}" = x ]; then
17 cmd='man "$@" $section $page'
20 cmd='man "$@" -l $roff'
22 eval "$cmd 2>&1 >/dev/null |tee $errs"
25 for roff in $manpages; do
27 >$tmp/$roff.$fmt-expected
32 cat >$tmp/$2.$1-expected
36 # egrep -vxPf does not work, so we reimplement it
39 open PATS, shift @ARGV or die $!;
40 $re = join "|", map { chomp; qr{^(?:$_)$} }
42 print STDERR "RE $re\n";
45 print STDERR "unexpected: $_";
47 END { die "unexpected errors\n" if $bad; }
51 expected txt dgit.1 <<'END'
52 .* # table wider than line width
57 errs=$tmp/$roff.$fmt-errs
61 perl -0777 -i~ -pe 's/\n[ \t]+/ # /' $errs
62 not_egrep_vxPf $tmp/$roff.$fmt-expected $errs
65 for roff in $manpages; do