[Nix-dev] This is how lxc man pages can be built ..

Marc Weber marco-oweber at gmx.de
Tue Jun 7 17:09:21 CEST 2011


  patchPhase = ''
    sed -i -e 's at docbook2man -w all .*@true@' doc/Makefile.in

    # add BOM so that docbook2man knows about encoding (assume utf8)
    sed -i  \
      -e '1s/^\(\xEF\xBB\xBF\)\?/\xEF\xBB\xBF/'   \
      -e 's@<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" \[@<!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "/dev/null" [@' \
      doc/lxc-*.sgml.in
  '';
  # manually building man pages seem
  postBuild = ''
    ( cd doc; for i in lxc-*.sgml; do docbook2man $i; done )
  '';

I'd not trust them too much - that they don't build seem to be a known issue ?
or our docbook2man is too new ?

The code adds some utf-8 boms to .sgml files so that docbook2man knows about an encoding.
Also its building the man pages manuall rather than using make ..
Thus docbook2man -w all is replaced by true.

make install still installs those man pages.

Marc Weber



More information about the nix-dev mailing list