[apparmor] [patch] documentaion: add Makefile to generate pdfs from odt files

Christian Boltz apparmor at cboltz.de
Thu Dec 1 21:42:30 UTC 2016


Am Mittwoch, 30. November 2016, 16:17:49 CET schrieb Steve Beattie:
> Speaking of the odt files in the documentation directory...
> documentaion: add Makefile to generate pdfs from odt files
> The odt files in the documentation directory are hard to consume
> in that form. This adds a Makefile that generates pdfs from the
> odt files, using the unoconv tool, based on the idea/github tree
> https://github.com/jessfraz/apparmor-docs from
> Jessica Frazelle <me at jessfraz.com>.

Good idea!

> That said, renaming the odt files to not have spaces would simplify
> this a lot.

Indeed. Please do this first instead of commiting a Makefile with ugly 
workarounds ;-)

For renaming all *.odt files to names without spaces:
Acked-by: Christian Boltz <apparmor at cboltz.de>

> Signed-off-by: Steve Beattie <steve at nxnw.org>
> ---
> +++ b/documentation/Makefile
> @@ -0,0 +1,59 @@
> +# cannot figure out how to get make to honor the %.odt dependency correctly 
> +# so need to manually enter the list below
> +%.pdf:
> +	unoconv -v -f pdf --output "$@" $(call us,$(@:.pdf=.odt))

common/Make.rules has

%.1 %.2 %.3 %.4 %.5 %.6 %.7 %.8: %.pod
    $(POD2MAN) $< --release=$(MAN_RELEASE) --center=AppArmor --stderr --section=$(subst .,,$(suffix $@)) > $@

So I'd guess you need something like (untested!)

%.pdf: %.odt
    unoconv -v -f pdf --output "$@" "$<"


Christian Boltz
Das hier ist eine Anfängerliste.
Ich will Dir auch erklären warum:
Den 'Linux Profi' gibt es IMHO nicht.
[Bernd Obermayr in suse-linux]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20161201/805493e3/attachment.pgp>

More information about the AppArmor mailing list