2019-01-21 20:11:19 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-05-23 00:03:03 +00:00
|
|
|
command -v a2x > /dev/null 2>&1 || {
|
|
|
|
echo >&2 "You need asciidoc installed"
|
|
|
|
echo >&2 "Debian/Ubuntu: sudo apt install asciidoc"
|
|
|
|
echo >&2 "http://asciidoc.org/"
|
|
|
|
exit 1
|
2019-03-06 01:12:22 +00:00
|
|
|
}
|
2019-01-21 20:11:19 +00:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
# To generate all possible formats uncomment this and be sure to have all the needed tools:
|
|
|
|
: << 'EOF'
|
|
|
|
for FORMAT in 'epub' 'htmlhelp' 'manpage' 'pdf' 'text' 'xhtml' 'dvi' 'ps' 'tex' 'docbook'
|
|
|
|
do
|
|
|
|
a2x --doctype manpage --format $FORMAT DDNet.adoc
|
|
|
|
a2x --doctype manpage --format $FORMAT DDNetServer.adoc
|
|
|
|
done
|
|
|
|
EOF
|
|
|
|
|
|
|
|
a2x --doctype manpage --format manpage DDNet.adoc
|
2019-03-06 01:12:22 +00:00
|
|
|
a2x --doctype manpage --format manpage DDNetServer.adoc
|