This is an automated email from the git hooks/post-receive script.

nomadium pushed a commit to annotated tag debian/0.0.337.2-3
in repository bnd.

commit 92fbcbbb890acb34666bdf64f37bae8e97b3ec61
Author: Ludovic Claude <[email protected]>
Date:   Fri Aug 7 23:08:33 2009 +0000

    Add man page for bnd script
---
 debian/TODO        |  1 -
 debian/bnd.pod     | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/changelog   |  8 +++--
 debian/manpages    |  1 +
 debian/maven.rules |  1 +
 debian/orig-tar.sh |  2 +-
 debian/rules       |  6 ++++
 7 files changed, 114 insertions(+), 4 deletions(-)

diff --git a/debian/TODO b/debian/TODO
index ba8bf2f..15b0732 100644
--- a/debian/TODO
+++ b/debian/TODO
@@ -1,3 +1,2 @@
-* Man page
 * Build the full jar with the OSGi and Eclipse dependencies (runtime and 
eclipse sub-packages)
 * Clarify the licensing issues for some files (BndScanner.java and Filter.java)
diff --git a/debian/bnd.pod b/debian/bnd.pod
new file mode 100644
index 0000000..1fd0a9c
--- /dev/null
+++ b/debian/bnd.pod
@@ -0,0 +1,99 @@
+=head1 NAME
+
+bnd - Create and diagnose OSGi R4 bundles.
+
+=head1 SYNOPSIS
+
+B<bnd> [S<I<general-options>>] [S<I<cmd>>] [S<I<cmd-options>>]
+
+B<bnd> [S<I<general-options>>] E<lt>fileE<gt>.jar
+
+B<bnd> [S<I<general-options>>] E<lt>fileE<gt>.bnd
+
+=head1 DESCRIPTION
+
+The bnd tool helps you create and diagnose OSGi R4 bundles. The key functions 
are:
+
+ * Show the manifest and JAR contents of a bundle
+ * Wrap a JAR so that it becomes a bundle
+ * Create a Bundle from a specification and a class path
+ * Verify the validity of the manifest entries 
+
+=head1 GENERAL OPTIONS
+
+=over
+
+=item -failok
+
+Same as the property -failok. The current run will create a JAR file even if 
there were errors.
+
+=item -exceptions
+
+Will print the exception when the software has ran into a bad exception and 
bails out. Normally only a message is printed. For debugging or diagnostic 
reasons, the exception stack trace can be very helpful.
+
+=back
+
+=head1 COMMANDS
+
+=over
+
+=item print ( -verify | -manifest | -list | - all ) * E<lt>fileE<gt>.jar +
+
+The print function will take a list of JAR file and print one or more aspect 
of the JAF riles. The following aspects can be added.
+
+    * -verify - Verify the JAR for consistency with the specification
+      The print will exit with an error if the verify fails.
+    * -manifest - Show the manifest
+    * -list - List the entries in the JAR file
+    * -all - Do all (this is the default. 
+
+C<bnd print -verify *.jar>
+
+=item build ( -classpath LIST | -eclipse <lt>fileE<gt> | -noeclipse | -output 
E<lt>fileE<gt> ) * E<lt>fileE<gt>.bnd +
+
+The build function will assemble a bundle from the bnd specification. The 
default name of the output bundle is the name of the bnd file with a .jar 
extension.
+
+    * -classpath - A list of JAR files and/or directories that should
+      be placed on the class path before the calculation starts.
+    * -eclipse - Parse the file as an Eclipse .classpath file, use
+      the information to create an Eclipse's project class path.
+      If this option is used, the default .classpath file is not read
+    * -noeclipse - Do not parse the .classpath file of an Eclipse
+      project.
+    * -output - Override the default output name of the bundle or the
+      directory. If the output is a directory, the name will be
+      derived from the bnd file name. 
+
+C<bnd build -classpath bin -noeclipse -output test.jar xyz.bnd>
+
+=item wrap ( -classpath (<lt>fileE<gt>(','<lt>fileE<gt>)*)-output 
<lt>fileE|dir<gt> | -properties <lt>fileE<gt> ) *
+-ignoremanifest? <lt>fileE<gt>.jar *
+
+The wrap command takes an existing JAR file and guesses the manifest headers 
that will make this JAR useful for an OSGi Service Platform. If the output file 
is not overridden, the name of the input file is used with a .bar extension. 
The default bnd file for the header calculation is:
+
+ Export-Package: * 
+ Import-Package: <packages inside the target jar>
+
+If the target bundle has a manifest, the headers are merged with the 
properties.
+
+The defaults can be overridden with a specific properties file.
+
+    * -output - Set the output file or directory
+    * -classpath - Sets the classpath as a comma separated list
+    * -properties - Use a special property file for the manifest
+      calculation.
+    * -ignoremanifest - Do not include the manifest headers from
+      the target bundle 
+
+C<bnd wrap -classpath osgi.jar *.jar>
+
+=back
+
+=head1 SEE ALSO
+
+L<http://www.aqute.biz/Code/Bnd>
+
+=head1 AUTHOR
+
+Ludovic Claude <[email protected]>
+
diff --git a/debian/changelog b/debian/changelog
index ab789ab..3022f4f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,9 @@
-bnd (0.0.337.2-2) UNRELEASED; urgency=low
+bnd (0.0.337.2-2) unstable; urgency=low
 
+  [Ludovic Claude]
+  * Add man page for bnd script
+
+  [Damien Raude-Morvan]
   * Add myself as Uploaders
   * Install a "bnd" shell script to execute BND command line interface
     - Add debian/bnd.sh script
@@ -7,7 +11,7 @@ bnd (0.0.337.2-2) UNRELEASED; urgency=low
   * Add debian/watch
   * Remove duplicate Section declaration on first binary package
 
- -- Damien Raude-Morvan <[email protected]>  Tue, 04 Aug 2009 22:43:11 +0200
+ -- Ludovic Claude <[email protected]>  Fri, 07 Aug 2009 14:12:23 
+0100
 
 bnd (0.0.337.2-1) experimental; urgency=low
 
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..919665b
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/bnd.1
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..db5497e
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1 @@
+biz.aQute s/bnd/bndlib/
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 252266a..26ea162 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -5,7 +5,7 @@ TAR=../bnd_$VERSION.orig.tar.gz
 DIR=bnd-$VERSION
 
 DATE=20090701
-cvs -z3 -d:pserver:[email protected]:/cvsroot/bnd co -D $DATE 
-d bnd-cvs .
+cvs -z3 -d:pserver:[email protected]:/cvsroot/bnd checkout -D 
$DATE -d bnd-cvs .
 
 # Use a script to transform the current codebase.
 # Hopefully the next release of BND will adopt this layout
diff --git a/debian/rules b/debian/rules
index 5fb4c29..abd2b82 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,11 @@ DEB_ANT_BUILD_TARGET := package #javadoc
 DEB_ANT_BUILDFILE    := debian/build.xml
 DEB_ANT_ARGS         := -Dpackage=$(PACKAGE) -Dbin.package=$(PACKAGE) 
-Dversion=$(VERSION)
 
+install/$(PACKAGE)::
+       pod2man -c 'BND for Debian GNU/Linux' \
+         -r $(PACKAGE)-$(VERSION) \
+         debian/bnd.pod > debian/bnd.1
+
 binary-post-install/$(PACKAGE)::
        mh_installpoms -p$(PACKAGE)
        mh_installjar -p$(PACKAGE) -l src/main/resources/pom.xml target/bnd.jar
@@ -19,6 +24,7 @@ binary-post-install/$(PACKAGE)::
 
 clean::
        -rm -rf debian/tmp
+       -rm -f debian/bnd.1
 
 get-orig-source:
        #-uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download 
--rename

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-java/bnd.git

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to