3 # Copyright (c) The Tor Project, Inc.
4 # See LICENSE for licensing information
5 # Run this to generate .html.in or .1.in files from asciidoc files.
7 # html|man asciidocpath outputfile
17 if [ "$1" = "html" ]; then
18 input
=${output%%.html.in}.1.txt
19 base
=${output%%.html.in}
20 if [ "$2" != none
]; then
21 "$2" -d manpage
-o $output $input;
23 echo "==================================";
25 echo "You need asciidoc installed to be able to build the manpage.";
26 echo "To build without manpages, use the --disable-asciidoc argument";
27 echo "when calling configure.";
29 echo "==================================";
32 elif [ "$1" = "man" ]; then
33 input
=${output%%.1.in}.1.txt
36 if test "$2" = none
; then
37 echo "==================================";
39 echo "You need asciidoc installed to be able to build the manpage.";
40 echo "To build without manpages, use the --disable-asciidoc argument";
41 echo "when calling configure.";
43 echo "==================================";
46 if "$2" -f manpage
$input; then
49 echo "==================================";
51 echo "a2x is installed, but some required docbook support files are";
52 echo "missing. Please install docbook-xsl, docbook-xml, and";
53 echo "libxml2-utils (Debian) or similar.";
55 echo "==================================";