[Pkg-gnutls-commits] r346 - in /packages/gnutls13/branches/branch1.7.x.EXP/debian: README.source_and_patches changelog rules

ametzler at users.alioth.debian.org ametzler at users.alioth.debian.org
Mon May 28 11:04:05 UTC 2007


Author: ametzler
Date: Mon May 28 11:04:05 2007
New Revision: 346

URL: http://svn.debian.org/wsvn/pkg-gnutls/?sc=1&rev=346
Log:
Keep doc/gnutls.pdf on debian/rules clean. #424357

Modified:
    packages/gnutls13/branches/branch1.7.x.EXP/debian/README.source_and_patches
    packages/gnutls13/branches/branch1.7.x.EXP/debian/changelog
    packages/gnutls13/branches/branch1.7.x.EXP/debian/rules

Modified: packages/gnutls13/branches/branch1.7.x.EXP/debian/README.source_and_patches
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls13/branches/branch1.7.x.EXP/debian/README.source_and_patches?rev=346&op=diff
==============================================================================
--- packages/gnutls13/branches/branch1.7.x.EXP/debian/README.source_and_patches (original)
+++ packages/gnutls13/branches/branch1.7.x.EXP/debian/README.source_and_patches Mon May 28 11:04:05 2007
@@ -8,3 +8,22 @@
 to see the patched source.
 
 See cdbs-edit-patch for a useful way to make modifications.
+
+
+----------------------------------------
+Rebuilding PDF documentation:
+
+apt-get install texlive-latex-base texlive-fonts-recommended \
+  texlive-generic-recommended imagemagick
+
+# Convert pictures to pf format since texinfo needs this for pdf output.
+# This is a upstream bug that will be fixed
+cd doc
+for i in *png ; do
+  pdf=`basename $i .png`.pdf
+  if ! test -e "$pdf" ; then
+     convert "$i"  "$pdf"
+  fi
+done
+cd ..
+make pdf

Modified: packages/gnutls13/branches/branch1.7.x.EXP/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls13/branches/branch1.7.x.EXP/debian/changelog?rev=346&op=diff
==============================================================================
--- packages/gnutls13/branches/branch1.7.x.EXP/debian/changelog (original)
+++ packages/gnutls13/branches/branch1.7.x.EXP/debian/changelog Mon May 28 11:04:05 2007
@@ -7,6 +7,9 @@
     - Improved gnutls_set_default_priority() priorities, with matching correct
       docs. (Closes: #422024)
     - bumped shlibs.
+  * Do not delete doc/gnutls.pdf on clean, allowing to run dpkg-buildpackage
+    twice in a row on the same sourcetree. (Closes: #424357) Document what is
+    needed to rebuild doc/gnutls.pdf in README.source_and_patches.
 
  -- Andreas Metzler <ametzler at debian.org>  Mon, 28 May 2007 08:36:42 +0200
 

Modified: packages/gnutls13/branches/branch1.7.x.EXP/debian/rules
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/gnutls13/branches/branch1.7.x.EXP/debian/rules?rev=346&op=diff
==============================================================================
--- packages/gnutls13/branches/branch1.7.x.EXP/debian/rules (original)
+++ packages/gnutls13/branches/branch1.7.x.EXP/debian/rules Mon May 28 11:04:05 2007
@@ -27,6 +27,13 @@
 post-patches::
 	cd $(DEB_SRCDIR) && chmod +x doc/scripts/sort2.pl doc/scripts/gdoc
 
+# pre-clean rule: save gnutls.pdf since it is expensive to regenerate.
+# See README.source_and_patches
+cleanbuilddir/gnutls-doc::
+	if [ -e doc/gnutls.pdf ] ; then mv doc/gnutls.pdf doc/gnutls.pdf.debbackup ; fi
+
+
+# additional commands for clean
 clean::
 	mkdir -p m4
 
@@ -35,4 +42,9 @@
 	-rm -f tests/stamp-tests
 	# stupid conflicts
 	-rm -f libextra/lzoconf.h libextra/lzodefs.h
+	# restore gnutls.pdf
+	if [ -e doc/gnutls.pdf.debbackup ] && [ ! -e doc/gnutls.pdf ] ; then mv doc/gnutls.pdf.debbackup doc/gnutls.pdf ; fi
 
+# additional comands for build rule
+build/gnutls-doc::
+	$(MAKE) html




More information about the Pkg-gnutls-commits mailing list