Author: schoenfeld
Date: 2009-07-22 11:54:25 +0000 (Wed, 22 Jul 2009)
New Revision: 1934

Added:
   trunk/debian/TODO
   trunk/debian/genmanpage.pl
   trunk/scripts/devscripts.1.in
Removed:
   trunk/scripts/devscripts.1
Modified:
   trunk/debian/changelog
   trunk/po4a/devscripts-po4a.conf
   trunk/scripts/Makefile
Log:
Add a script listing to devscripts.1 which is auto-generated from
debian/control

(and a debian/TODO noting, that we have to fix the translation foo)

Added: trunk/debian/TODO
===================================================================
--- trunk/debian/TODO                           (rev 0)
+++ trunk/debian/TODO   2009-07-22 11:54:25 UTC (rev 1934)
@@ -0,0 +1 @@
+- Fix translations for the new auto-generated devscripts.1

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2009-07-21 13:03:17 UTC (rev 1933)
+++ trunk/debian/changelog      2009-07-22 11:54:25 UTC (rev 1934)
@@ -35,8 +35,10 @@
     have a copyright (Closes: #535337)
   * nmudiff: Use 'bts select' to test, weither a check already has a patch
     tag set or not and only set it, if not (Closes: #519678)
+  * Add a script listing to devscripts.1 which is auto-generated from
+    debian/control
 
- -- Patrick Schoenfeld <[email protected]>  Tue, 21 Jul 2009 15:01:22 +0200
+ -- Patrick Schoenfeld <[email protected]>  Tue, 21 Jul 2009 17:25:40 +0200
 
 devscripts (2.10.52) unstable; urgency=low
 

Added: trunk/debian/genmanpage.pl
===================================================================
--- trunk/debian/genmanpage.pl                          (rev 0)
+++ trunk/debian/genmanpage.pl  2009-07-22 11:54:25 UTC (rev 1934)
@@ -0,0 +1,33 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+# Define item leadin/leadout for man output
+my $ITEM_LEADIN = '.IP "\fI';
+my $ITEM_LEADOUT = '\fR(1)"';
+
+# Open control file
+open(CONTROL, "< ../debian/control") or die "unable to open control: $!";
+
+my $package;
+my $description;
+
+# Parse the control file
+while(<CONTROL>) {
+    chomp;
+    # A line starting with '  -' indicates a script
+    if (/^  - ([^:]*): (.*)/) {
+       if ($package and $description) {
+           # If we get here, then we need to output the man code
+           print $ITEM_LEADIN . $package . $ITEM_LEADOUT . "\n";
+           print $description . "\n";
+       }
+       $package = $1;
+       $description = $2
+    }
+    else {
+       s/^.{3}//;
+       $description .= $_;
+    }
+}

Modified: trunk/po4a/devscripts-po4a.conf
===================================================================
--- trunk/po4a/devscripts-po4a.conf     2009-07-21 13:03:17 UTC (rev 1933)
+++ trunk/po4a/devscripts-po4a.conf     2009-07-22 11:54:25 UTC (rev 1934)
@@ -67,7 +67,7 @@
        fr:fr/debuild.fr.1 add_fr:add_fr/translator_man.add
 [type:pod] ../scripts/desktop2menu.pl \
        fr:fr/desktop2menu.fr.pl add_fr:add_fr/translator_pod.add
-[type:man] ../scripts/devscripts.1 \
+[type:man] ../scripts/devscripts.1.in \
        fr:fr/devscripts.fr.1 add_fr:add_fr/translator_man.add
 [type:pod] ../scripts/dget.pl \
        fr:fr/dget.fr.pl add_fr:add_fr/translator_pod.add

Modified: trunk/scripts/Makefile
===================================================================
--- trunk/scripts/Makefile      2009-07-21 13:03:17 UTC (rev 1933)
+++ trunk/scripts/Makefile      2009-07-22 11:54:25 UTC (rev 1934)
@@ -16,7 +16,7 @@
 GEN_MAN1S = bts.1 build-rdeps.1 chdist.1 dcontrol.1 debcheckout.1 debcommit.1 \
            deb-reversion.1 desktop2menu.1 dget.1 licensecheck.1 mass-bug.1 \
            mk-build-deps.1 namecheck.1 rmadison.1 svnpath.1 tagpending.1 \
-           transition-check.1
+           transition-check.1 devscripts.1
 
 BINDIR = /usr/bin
 LIBDIR = /usr/lib/devscripts
@@ -36,6 +36,7 @@
        cp $< $@
        chmod +x $@
 
+       
 %.1: %.pl
        podchecker $<
        pod2man --center=" " --release="Debian Utilities" $< > $@
@@ -43,6 +44,10 @@
        xsltproc --nonet -o $@ \
          /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
 
+devscripts.1: devscripts.1.in
+       cat $+ > $@
+       perl ../debian/genmanpage.pl >> $@
+
 devscripts.%: %.bash_completion
        cp $< $@
 

Deleted: trunk/scripts/devscripts.1
===================================================================
--- trunk/scripts/devscripts.1  2009-07-21 13:03:17 UTC (rev 1933)
+++ trunk/scripts/devscripts.1  2009-07-22 11:54:25 UTC (rev 1934)
@@ -1,15 +0,0 @@
-.TH DEVSCRIPTS 1 "Debian Utilities" "DEBIAN" \" -*- nroff -*-
-.SH NAME
-devscripts \- scripts to ease the lives of Debian developers
-.SH DESCRIPTION
-The \fBdevscripts\fR package provides a collection of scripts which
-may be of use to Debian developers and others wishing to build Debian
-packages.  For a summary of the available scripts, please see the file
-\fI/usr/share/doc/devscripts/README.gz\fR, and for full details, please
-see the individual manpages.  They are contributed by multiple
-developers; for details of the authors, please see the code or
-manpages.
-
-Also, the directory \fI/usr/share/doc/devscripts/examples\fR contains
-examples of \fBprocmail\fR and \fBexim\fR scripts for sorting mail
-arriving to Debian mailing lists.

Copied: trunk/scripts/devscripts.1.in (from rev 1933, 
trunk/scripts/devscripts.1)
===================================================================
--- trunk/scripts/devscripts.1.in                               (rev 0)
+++ trunk/scripts/devscripts.1.in       2009-07-22 11:54:25 UTC (rev 1934)
@@ -0,0 +1,19 @@
+.TH DEVSCRIPTS 1 "Debian Utilities" "DEBIAN" \" -*- nroff -*-
+.TH DEVSCRIPTS 1 "Debian Utilities" "DEBIAN" \" -*- nroff -*-
+.SH NAME
+devscripts \- scripts to ease the lives of Debian developers
+.SH DESCRIPTION
+The \fBdevscripts\fR package provides a collection of scripts which
+may be of use to Debian developers and others wishing to build Debian
+packages.  For a summary of the available scripts, please see the file
+\fI/usr/share/doc/devscripts/README.gz\fR, and for full details, please
+see the individual manpages.  They are contributed by multiple
+developers; for details of the authors, please see the code or
+manpages.
+
+Also, the directory \fI/usr/share/doc/devscripts/examples\fR contains
+examples of \fBprocmail\fR and \fBexim\fR scripts for sorting mail
+arriving to Debian mailing lists.
+.SH SCRIPTS
+Here is the complete list of available devscripts. See their man pages
+for additional documentation.



-- 
To unsubscribe, send mail to [email protected].

Reply via email to