chiark / gitweb /
pdf link
authoraba <aba@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Tue, 1 Feb 2005 20:03:21 +0000 (20:03 +0000)
committeraba <aba@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Tue, 1 Feb 2005 20:03:21 +0000 (20:03 +0000)
git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@2846 313b444b-1b9f-4f58-a734-7bb04f332e8d

Makefile
add_pdf_link.diff [new file with mode: 0644]

index 3be98dd..c14e1e8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,10 @@ DEBIANDOC2LATEX      := debiandoc2latex
 DEBIANDOC2PS   := debiandoc2latexps
 DEBIANDOC2PDF  := debiandoc2latexpdf
 
+# this hint is for adding a link to the pdf version
+add_pdf_link   := patch -p0 < add_pdf_link.diff
+remove_pdf_link        := patch -p0 -R < add_pdf_link.diff
+
 make_directory := install -d -m 755
 install_file   := install -m 644 -p
 
@@ -41,7 +45,9 @@ publish:      all
           $(PUBLISHDIR)/$(MANUAL)
 
 developers-reference.html:     developers-reference.sgml
+       $(add_pdf_link)
        $(DEBIANDOC2HTML) -l en $<
+       $(remove_pdf_link)
 
 developers-reference.html/*:   developers-reference.html
 
diff --git a/add_pdf_link.diff b/add_pdf_link.diff
new file mode 100644 (file)
index 0000000..c828bdb
--- /dev/null
@@ -0,0 +1,19 @@
+Index: developers-reference.sgml
+===================================================================
+RCS file: /org/cvs.debian.org//cvs/debian-doc/ddp/manuals.sgml/developers-reference/developers-reference.sgml,v
+retrieving revision 1.257
+diff -u -r1.257 developers-reference.sgml
+--- developers-reference.sgml  26 Jan 2005 09:21:37 -0000      1.257
++++ developers-reference.sgml  1 Feb 2005 19:44:23 -0000
+@@ -52,6 +52,11 @@
+ the &debian-formal; distribution or on the World Wide Web at <url
+ id="&url-gpl;" name="the GNU web site">.  You can also obtain it by
+ writing to the &fsf-addr;.
++<!-- BEGIN-PDFLINK -->
++       <p>
++If you want to print this reference, you should use the <url
++id="&url-pdf-reference;" name="pdf version">.
++<!-- END-PDFLINK -->
+     <toc detail="sect1">