TT#66224 Switch from asciidoc to asciidoctor

- Remove epub output as asciidoctor requires unpackaged support.
- Remove html and pdf output as it is not known to be used anyway.

Change-Id: I7089e01ef17dbc40df08b796f48bcd8616936145
changes/98/33698/4
Guillem Jover 7 years ago
parent 1758f7c33b
commit adeb7f03cb

@ -15,34 +15,20 @@ RESULTS ?= results
all: docs all: docs
docs: html pdf epub man docs: man
html:
asciidoc docs/ngcpcfg.txt
pdf:
a2x --icons -a toc -a toclevels=3 -a docinfo -f pdf docs/ngcpcfg.txt
epub:
a2x --icons -a toc -a toclevels=3 -a docinfo -f epub docs/ngcpcfg.txt
man: man:
asciidoc -d manpage -b docbook docs/ngcpcfg.txt asciidoctor -d manpage -b manpage docs/ngcpcfg.txt
sed -i 's/<emphasis role="strong">/<emphasis role="bold">/' docs/ngcpcfg.xml pod2man --section=8 sbin/ngcp-network > docs/ngcp-network.8
xsltproc --nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl docs/ngcpcfg.xml pod2man --section=8 sbin/ngcp-sync-constants > docs/ngcp-sync-constants.8
pod2man --section=8 sbin/ngcp-network > ngcp-network.8 pod2man --section=8 sbin/ngcp-sync-grants > docs/ngcp-sync-grants.8
pod2man --section=8 sbin/ngcp-sync-constants > ngcp-sync-constants.8
pod2man --section=8 sbin/ngcp-sync-grants > ngcp-sync-grants.8
clean: clean:
rm -f docs/ngcpcfg.xml docs/ngcpcfg.epub docs/ngcpcfg.html docs/ngcpcfg.pdf rm -f docs/ngcpcfg.8 docs/ngcp-network.8 docs/ngcp-sync-constants.8 docs/ngcp-sync-grants.8
rm -f ngcpcfg.8 ngcp-network.8 ngcp-sync-constants.8 ngcp-sync-grants.8
rm -rf t/__pycache__ t/fixtures/__pycache__/ t/*.pyc rm -rf t/__pycache__ t/fixtures/__pycache__/ t/*.pyc
dist-clean: clean dist-clean: clean
rm -f docs/ngcpcfg.html docs/ngcpcfg.pdf
rm -f docs/ngcpcfg.epub ngcpcfg.8
rm -rf results rm -rf results
# check for syntax errors # check for syntax errors

4
debian/control vendored

@ -5,9 +5,8 @@ Maintainer: Sipwise Development Team <support@sipwise.com>
Homepage: https://www.sipwise.com/ Homepage: https://www.sipwise.com/
Standards-Version: 3.9.8 Standards-Version: 3.9.8
Build-Depends: Build-Depends:
asciidoc, asciidoctor,
debhelper-compat (= 12), debhelper-compat (= 12),
docbook-xsl,
git, git,
libcapture-tiny-perl, libcapture-tiny-perl,
libclone-perl, libclone-perl,
@ -28,7 +27,6 @@ Build-Depends:
netcat-openbsd, netcat-openbsd,
pkwalify, pkwalify,
python3-pytest, python3-pytest,
xsltproc,
Package: libngcp-template-perl Package: libngcp-template-perl
Section: perl Section: perl

@ -1,4 +1,4 @@
ngcp-network.8 docs/ngcp-network.8
ngcp-sync-constants.8 docs/ngcp-sync-constants.8
ngcp-sync-grants.8 docs/ngcp-sync-grants.8
ngcpcfg.8 docs/ngcpcfg.8

1
docs/.gitignore vendored

@ -0,0 +1 @@
*.8
Loading…
Cancel
Save