From c40015ff682e8a35652237b5e676f48089c3a2b8 Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Sun, 25 Mar 2018 14:49:53 +0200 Subject: Makefile modified for headless LibreOffice conversion execution. See Kurt Pfeifle's answer to vishal's question "Command `libreoffice --headless --convert-to pdf test.docx --outdir /pdf` is not working" (https://stackoverflow.com/questions/30349542/command-libreoffice-headless-convert-to-pdf-test-docx-outdir-pdf-is-not), *stackoverflow.com*, May 2015. --- posters/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/posters/Makefile b/posters/Makefile index b77a5f3..032d6bc 100644 --- a/posters/Makefile +++ b/posters/Makefile @@ -17,10 +17,10 @@ all: $(ALL) # General cases %.pdf: %.odg - libreoffice --invisible --convert-to pdf $< + libreoffice --headless "-env:UserInstallation=file:///tmp/lo-$$" --convert-to pdf $< %.pdf: %.odt - libreoffice --invisible --convert-to pdf $< + libreoffice --headless "-env:UserInstallation=file:///tmp/lo-$$" --convert-to pdf $< %.png: %.pdf convert $< $@ @@ -34,6 +34,7 @@ all: $(ALL) send: rsync -ruvp --chmod=Dugo+rx,Fugo+r $(SEND_FILES) www.fripost.org:/var/www/fripost.org/material/ + @echo; echo Now avialable as; for f in $(SEND_FILES); do echo " - https://fripost.org/material/$$f"; done clean: rm -fr $(ALL) -- cgit v1.2.3