From: aph Date: Sun, 12 Sep 1999 01:33:46 +0000 (+0000) Subject: dynamically generate the TOC in the package description from developers-reference... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=developers-reference.git;a=commitdiff_plain;h=fd60fb0e20abd8d55019c6497388dff8099292c8 dynamically generate the TOC in the package description from developers-reference.sgml git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@840 313b444b-1b9f-4f58-a734-7bb04f332e8d --- diff --git a/debian/changelog b/debian/changelog index 9c3790e..4bedc96 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,8 +5,11 @@ developers-reference (2.7.1) unstable; urgency=low PGPv2 or v5 insofar as possible; recommend use of DSA keys rather than RSA * Sec. "Maintaining Your Public Key": remove PGP-centric stuff + * developers-reference.sgml: re-enable RCS variables in CVS sources + * debian/control,rules: dynamically generate the TOC in the package + description from developers-reference.sgml - -- Adam Di Carlo Sat, 11 Sep 1999 16:20:32 -0400 + -- Adam Di Carlo Sat, 11 Sep 1999 21:22:10 -0400 developers-reference (2.7.0) unstable; urgency=low diff --git a/debian/control b/debian/control index ba749bb..a363240 100644 --- a/debian/control +++ b/debian/control @@ -12,8 +12,3 @@ Description: Debian Developer's Reference . Table of Contents: . - 1 Applying to Become a Maintainer - 2 Internet Servers - 3 The Debian Archive - 4 Package uploads - 5 Handling bug reports diff --git a/debian/rules b/debian/rules index 516a3e6..a24215d 100755 --- a/debian/rules +++ b/debian/rules @@ -86,8 +86,11 @@ binary-indep: build sh -n debian/postinst sh -n debian/prerm # install the control files - $(install_script) debian/control debian/postinst debian/prerm \ - $(prefix)/DEBIAN/ + $(install_script) debian/postinst debian/prerm $(prefix)/DEBIAN/ + # be tricky about putting the TOC sections into the description of the package + cp debian/control debian/control.out + perl -ne '/^\d+\.\s/ && print " $$_";' < developers-reference.txt >> debian/control.out + $(install_file) debian/control.out $(prefix)/DEBIAN/control # compress docdir (policy) find $(docdir) -type f \( -size +4k -or -iname "change*" \) \