[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#859273: release-notes: generate valid pdf files for languages which don't support pdf

Package: release-notes
Severity: wishlist
Tags: patch


Currently the pdf version of the release-notes is not available for
Japanese and Polish. However, there are pdf files in the table at
https://www.debian.org/releases/stretch/releasenotes, like

But this file is not a valid pdf file, it's a text file renamed to .pdf
which leads to errors when trying to view it.
People might think, they did something wrong or the file got corrupted
on download or ...

So I have a patch attached, which generates valid pdf files saying
something like
"PDF version of the release-notes not available for this language"
in a simple one-liner, stolen from
thanks to Frans Pop.

So long

Created with Sylpheed 3.2.0 under the new
	D E B I A N   L I N U X   7 . 0   W H E E Z Y !

Registered Linux User #311290 - https://linuxcounter.net/
Index: Makefile
--- Makefile	(Revision 11423)
+++ Makefile	(Arbeitskopie)
@@ -194,8 +194,7 @@
 ifneq "$(filter $(DISABLED_PDF),$(LINGUA))" ""
-%.pdf: %.xml
-	echo "PDF for $$LINGUA currently disabled." > $@
+	cp nopdf.pdf $(LINGUA)/$(manual).$(architecture).pdf
 ifneq "$(filter $(XMLROFF_LANGS),$(LINGUA))" ""
 %.fo: %.xml xmlroff.xsl
Index: nopdf.pdf
Kann nicht anzeigen: Dateityp ist als binär angegeben.
svn:mime-type = application/octet-stream
Index: nopdf.pdf
--- nopdf.pdf	(Revision 0)
+++ nopdf.pdf	(Arbeitskopie)

Eigenschaftsänderungen: nopdf.pdf
Added: svn:mime-type
## -0,0 +1 ##
\ No newline at end of property

Attachment: nopdf.pdf
Description: Adobe PDF document

Reply to: