Ceci est une ancienne révision du document !
Exemples de script fait par mapomme
Script de base simple
#! /usr/bin/bash ########################################################################### # Script to generate html, pdf and odt from an asciidoc # # # # Copyright information # # # # Copyright (C) 2018 Fred Radeff <fradeff@akademia.ch> # # # # License # # 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 <http://www.gnu.org/licenses/>. # # # ########################################################################### chemin=/home/radeff/ebooks/polars/Radeff_Fred_polars/Funkei/ livre=book echo "destroy old versions" rm $livre.html rm $livre.epub rm $livre.odt rm $livre.pdf echo "create html5 " $livre.html #asciidoctor -a toc --attribute stylesheet=asciidoctor.css $livre.adoc #no toc asciidoctor --attribute stylesheet=asciidoctor.css $livre.adoc #exit echo "create epub " $livre.epub pandoc -s $livre.html -t epub3 -o $livre.epub echo "create pdf " $livre.pdf pandoc -c print.css $livre.html --variable=fontfamily:arev --latex-engine=xelatex -o $livre.pdf echo "create odt " $livre.odt pandoc --base-header-level=3 -V date:"" -V title:"" -f html $livre.html -o $livre.odt