Menu

#366 html and pdf generation is broken

open
nobody
None
5
2023-02-14
2023-02-14
Jan Starý
No

Besides the usual manual pages such as sox.1, the build system offers to generate their html and pdf versions.
Generating them currently requires groff, pdfroff, nroff and tbl.
None of these exist on e.g. OpenBSD or modern macOS.

Discussion

  • Jan Starý

    Jan Starý - 2023-02-14
    $ make html
    groff -t -man -Thtml -P -Dsoxpng sox.1 | sed 's,<head>,&<link rel="stylesheet" href="http://sox.sourceforge.net/pub/skins/sox/sox.css" type="text/css"></link>,'  > sox.html
    /bin/sh: groff: command not found
    groff -t -man -Thtml -P -Dsoxpng soxi.1 | sed 's,<head>,&<link rel="stylesheet" href="http://sox.sourceforge.net/pub/skins/sox/sox.css" type="text/css"></link>,'  > soxi.html
    /bin/sh: groff: command not found
    groff -t -man -Thtml -P -Dsoxpng soxformat.7 | sed 's,<head>,&<link rel="stylesheet" href="http://sox.sourceforge.net/pub/skins/sox/sox.css" type="text/css"></link>,'  > soxformat.html
    /bin/sh: groff: command not found
    groff -t -man -Thtml -P -Dsoxpng libsox.3 | sed 's,<head>,&<link rel="stylesheet" href="http://sox.sourceforge.net/pub/skins/sox/sox.css" type="text/css"></link>,'  > libsox.html
    /bin/sh: groff: command not found
    
    $ make pdf
    pdfroff -t -man --no-toc-relocation -Tps sox.1 > sox.pdf
    /bin/sh: pdfroff: command not found
    make: *** [sox.pdf] Error 127
    
    $ grep tbl Makefile
    Makefile:       tbl $< | nroff -man -c | sed "s///g" > $@
    Makefile:       tbl $< | nroff -man -c | sed "s///g" > $@
    Makefile:       tbl $< | nroff -man -c | sed "s///g" > $@
    
    $ tbl
    zsh: command not found: tbl
    
    $ nroff
    zsh: command not found: nroff
    
     
  • Jan Starý

    Jan Starý - 2023-02-14

    (Similarly for *.txt files)

     

Log in to post a comment.

MongoDB Logo MongoDB