From fc5d96b84bc2900ddfedb5587f3ac15175b1996e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 14 Mar 2017 10:51:28 +0100 Subject: [PATCH] Add comments --- scripts/odt2pdf/odt2pdf.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/odt2pdf/odt2pdf.sh b/scripts/odt2pdf/odt2pdf.sh index 75aa6cc15f0..4cf1ab54013 100755 --- a/scripts/odt2pdf/odt2pdf.sh +++ b/scripts/odt2pdf/odt2pdf.sh @@ -1,14 +1,14 @@ #!/bin/bash # @copyright GPL License 2010 - Vikas Mahajan - http://vikasmahajan.wordpress.com # @copyright GPL License 2013 - Florian HEnry - florian.henry@open-concept.pro -# @copyright GPL License 2015 - Laurent Destailleur - eldy@users.sourceforge.net +# @copyright GPL License 2017 - Laurent Destailleur - eldy@users.sourceforge.net # # Convert an ODT into a PDF using "jodconverter" or "pyodconverter" tool. # Dolibarr variable MAIN_ODT_AS_PDF must be defined to value "jodconverter" to call jodconverter wrapper after ODT generation -# or value "pyodconverter" to call DocumentConverter.py after ODT generation. -# or value "/pathto/jodconverter-cli-file.jar" to call jodconverter java tool without wrapper after ODT generation. +# or value "pyodconverter" to call DocumentConverter.py after ODT generation. +# or value "/pathto/jodconverter-cli-file.jar" to call jodconverter java tool without wrapper after ODT generation. # Dolibarr variable MAIN_DOL_SCRIPTS_ROOT must be defined to path of script directories (otherwise dolibarr will try to guess). - + if [ "x$1" == "x" ] then @@ -17,9 +17,14 @@ then exit fi +# Full patch where soffice is installed soffice="/usr/bin/soffice" + +# Temporary directory (web user must have permission to read/write). You can set here path to your DOL_DATA_ROOT/admin/temp directory for example. home_java="/tmp" + +# Main program if [ -f "$1.odt" ] then nbprocess=$(pgrep -c soffice)