[otb] 02/03: Add some simply method to create manpages for otbcli applications

Andreas Tille tille at debian.org
Mon Jul 14 19:18:01 UTC 2014


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

tille pushed a commit to branch master
in repository otb.

commit fe69c6181997d3280287d43df1799a916959c724
Author: Andreas Tille <tille at debian.org>
Date:   Mon Jul 14 17:28:45 2014 +0200

    Add some simply method to create manpages for otbcli applications
---
 debian/otbcli.1 | 13 +++++++++++++
 debian/rules    | 13 +++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/debian/otbcli.1 b/debian/otbcli.1
new file mode 100644
index 0000000..295f624
--- /dev/null
+++ b/debian/otbcli.1
@@ -0,0 +1,13 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.45.1.
+.TH OTBCLI "1" "July 2014" "otbcli 4.0.0" "User Commands"
+.SH NAME
+otbcli \- ORFEO Toolbox command line applications
+.SH DESCRIPTION
+ORFEO Toolbox (OTB) is distributed as an open source library of image
+processing algorithms. OTB is based on the medical image processing library
+ITK and offers particular functionalities for remote sensing image processing
+in general and for high spatial resolution images in particular.
+.SH USAGE
+\fI/usr/bin/otbApplicationLauncherCommandLine\fP module_name [MODULEPATH] [arguments]
+.P
+Here is a list of available module wrappers:
diff --git a/debian/rules b/debian/rules
index bdc77da..b234f71 100755
--- a/debian/rules
+++ b/debian/rules
@@ -47,6 +47,11 @@ CMAKE_FLAGS = \
 	-DOTB_WRAP_QT:BOOL=ON \
 	-DOTB_WRAP_PYTHON:BOOL=ON
 
+pkgcli:=otb-bin
+pkggui:=otb-bin-qt
+mancli:=$(CURDIR)/debian/$(pkgcli)/usr/share/man/man1
+mangui:=$(CURDIR)/debian/$(pkggui)/usr/share/man/man1
+
 OTB_LIB_DIRS = /usr/lib/otb
 
 %:
@@ -58,3 +63,11 @@ override_dh_auto_configure:
 override_dh_shlibdeps:
 	LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(OTB_LIB_DIRS) dh_shlibdeps
 
+override_dh_installman:
+	mkdir -p $(mancli)
+	cp -a debian/otbcli.1 $(mancli)
+	for bin in `ls $(CURDIR)/debian/$(pkgcli)/usr/bin/otbcli_*` ; do \
+	    echo '.IP' >> $(mancli)/otbcli.1 ; \
+	    basename $${bin} | sed 's/otbcli_//' >> $(mancli)/otbcli.1 ; \
+	    ln -sf otbcli.1 $(mancli)/`basename $${bin}`.1 ; \
+	done

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



More information about the Pkg-grass-devel mailing list