X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=manual%2Fgenerate;fp=manual%2Fgenerate;h=19d1ca30879e08a0ab76b08fc20e295cd5ad2afb;hb=1894027b98640702a5229c4168c586df5f83a3af;hp=0000000000000000000000000000000000000000;hpb=39e047cffdbfdb6dd10f3367e600887553a89d74;p=pulseview.git diff --git a/manual/generate b/manual/generate new file mode 100755 index 0000000..19d1ca3 --- /dev/null +++ b/manual/generate @@ -0,0 +1,28 @@ +#!/bin/sh +## +## This file is part of the PulseView project. +## +## Copyright (C) 2018 Soeren Apel +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2 of the License, or +## (at your option) any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, see . +## + +echo "Trying to generate HTML output..." +asciidoctor -a stylesheet=readthedocs.css -a stylesdir=asciidoctor-stylesheet-factory/stylesheets -a toc=left pulseview_manual.txt || exit +echo " --> pulseview_manual.html OK" + +# Run asciidoctor-pdf only if it can be found in $PATH +#echo "Trying to generate PDF output..." +#type asciidoctor-pdf && asciidoctor-pdf -a stylesheet=readthedocs.css -a stylesdir=asciidoctor-stylesheet-factory/stylesheets pulseview_manual.txt || exit +#echo " --> pulseview_manual.pdf OK"