summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@etraveli.com>2018-03-25 14:49:53 +0200
committerGustav Eek <gustav.eek@etraveli.com>2018-03-25 15:09:40 +0200
commitc40015ff682e8a35652237b5e676f48089c3a2b8 (patch)
tree82786b337c205ea1807e3f92f14eb95d82d47406
parent841f824b59377b23186936e1538cc3395f3ab51b (diff)
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.
-rw-r--r--posters/Makefile5
1 files 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)