[otb] 02/15: script to generate manpages

Rashad Kanavath rashad-guest at moszumanska.debian.org
Wed Dec 16 14:43:47 UTC 2015


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

rashad-guest pushed a commit to branch master
in repository otb.

commit e0cc764c4f3f17e0b466d93293771948191589dd
Author: Rashad Kanavath <rashad.kanavath at c-s.fr>
Date:   Tue Dec 15 11:15:36 2015 +0100

    script to generate manpages
---
 debian/generatemanpages.sh | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/debian/generatemanpages.sh b/debian/generatemanpages.sh
new file mode 100755
index 0000000..1749156
--- /dev/null
+++ b/debian/generatemanpages.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+CURDIR=$1
+VERSION=$3
+MANDIR=$CURDIR/debian/manpages
+BINDIR=$CURDIR/$2/bin
+LIBDIR=$CURDIR/$2/lib
+
+export PATH=$PATH:$BINDIR
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBDIR
+
+help2man $BINDIR/otbTestDriver --no-discard-stderr --version-string=$VERSION  -o $MANDIR/otbTestDriver.1 ;
+for file in `ls $BINDIR/otbcli* $BINDIR/otb*Launcher*` ; do
+     echo "Generating man pages $file"
+     help2man `basename $file` --no-discard-stderr --help-option='-help' --version-string=$VERSION -o $MANDIR/`basename $file`.1;
+ done
+
+for file in `ls $BINDIR/otbgui*` ; do
+    echo "Generating man pages $file"
+    help2man `basename $file` --no-discard-stderr --help-option='-help' --version-string=$VERSION -o $MANDIR/`basename $file`.1;
+done
+
+for file in `ls $MANDIR/*1 ` ; do
+    #echo "Fix man pages $file"
+    sed -i 's/.PP.*Inconsistency.detected.by.ld.*_dl_close.*Assertion.*_init_called.*failed//g' $file;
+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