Skip to content

Commit

Permalink
Use reproducible man page generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonev committed May 26, 2022
1 parent 322765f commit ce9d0aa
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions man/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ set -e

XSLTPROC="/usr/bin/xsltproc"

XSLTPROC_FLAGS="--stringparam man.output.quietly 1 \
XSLTPROC_FLAGS="--nonet \
--xinclude \
--maxdepth 9000 \
--stringparam man.output.quietly 1 \
--stringparam funcsynopsis.style ansi \
--stringparam man.th.extra1.suppress 1 \
--stringparam man.authors.section.enabled 0 \
--stringparam man.copyright.section.enabled 0"

xslt_proc() {
[ "$V" = 1 ] && echo $XSLTPROC -o $1.$2 $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $1.xml
$XSLTPROC -o $1.$2 $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $1.xml
[ "$V" = 1 ] && echo $XSLTPROC -o $1.$2 $XSLTPROC_FLAGS custom-man.xsl $1.xml
$XSLTPROC -o $1.$2 $XSLTPROC_FLAGS custom-man.xsl $1.xml
}

xslt_proc udev 7
xslt_proc hwdb 7
xslt_proc udev.conf 5
xslt_proc udevd 8
xslt_proc udevadm 8

0 comments on commit ce9d0aa

Please sign in to comment.