[med-svn] [plip] 09/14: Use help2man to generate man page, remove manually created manpage

Alex Mestiashvili malex-guest at moszumanska.debian.org
Thu Mar 24 16:43:57 UTC 2016


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

malex-guest pushed a commit to branch master
in repository plip.

commit d404769baf0b6bd2f470a2854387985c65b01771
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date:   Thu Mar 24 14:35:48 2016 +0100

    Use help2man to generate man page, remove manually created manpage
---
 debian/control       |  2 +-
 debian/plip.manpages |  1 -
 debian/plipcmd.1     | 46 ----------------------------------------------
 debian/rules         |  7 +++++++
 4 files changed, 8 insertions(+), 48 deletions(-)

diff --git a/debian/control b/debian/control
index 210b6f5..11109b8 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Uploaders: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
 Section: python
 Testsuite: autopkgtest
 Priority: optional
-Build-Depends: debhelper (>= 9), dh-python, python-all, python-setuptools
+Build-Depends: debhelper (>= 9), dh-python, python-all, python-setuptools, help2man
 Standards-Version: 3.9.7
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/plip.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/plip.git
diff --git a/debian/plip.manpages b/debian/plip.manpages
deleted file mode 100644
index ab32cc9..0000000
--- a/debian/plip.manpages
+++ /dev/null
@@ -1 +0,0 @@
-debian/plipcmd.1
diff --git a/debian/plipcmd.1 b/debian/plipcmd.1
deleted file mode 100644
index 539b5f9..0000000
--- a/debian/plipcmd.1
+++ /dev/null
@@ -1,46 +0,0 @@
-.TH PLIPCMD "1" "June 2015" "plipcmd 1.1.0" "User Commands"
-.SH NAME
-plipcmd - Protein-Ligand Interaction Profiler (PLIP). Tool to analyze and visualize protein-ligand interactions in PDB files.
-.PP
-If you are using PLIP in your work, please cite:
-.TP
-Salentin,S. et al. PLIP: fully automated protein-ligand interaction profiler. Nucl. Acids Res. first published online April 14, 2015 doi:10.1093/nar/gkv315
-.SH SYNOPSIS
-\fBplipcmd\fR [\-h] (\fB\-f\fR INPUT | \fB\-i\fR PDBID) [\-o OUTPATH] [\-v] [\-p] [\-x] [\-y] [\-\-maxthreads MAXTHREADS]
-.SH OPTIONS
-.TP
-\fB\-h\fR, \fB\-\-help\fR
-show this help message and exit
-.HP
-\fB\-f\fR INPUT, \fB\-\-file\fR INPUT
-.HP
-\fB\-i\fR PDBID, \fB\-\-input\fR PDBID
-.HP
-\fB\-o\fR OUTPATH, \fB\-\-out\fR OUTPATH
-.TP
-\fB\-v\fR, \fB\-\-verbose\fR
-Set verbose mode
-.TP
-\fB\-p\fR, \fB\-\-pics\fR
-Additional pictures
-.TP
-\fB\-x\fR, \fB\-\-xml\fR
-Additional XML output for reports
-.TP
-\fB\-y\fR, \fB\-\-pymol\fR
-Additional PyMOL session files
-.TP
-\fB\-\-maxthreads\fR MAXTHREADS
-Set maximum number of main threads (number of binding
-sites processed simultaneously)
-.SH EXIT CODES
-.TP
-\fB1\fR Unspecified Error 
-.TP
-\fB2\fR Empty PDB file as input 
-.TP
-\fB3\fR Invalid PDB ID 
-.TP
-\fB4\fR PDB file can't be read by OpenBabel (due to invalid input files) 
-.TP
-\fB5\fR PDB ID is valid, but wwPDB offers no file in PDB format for download.
diff --git a/debian/rules b/debian/rules
index b3e06ae..de66563 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,10 @@ export PYBUILD_NAME=plip
 
 override_dh_auto_test:
 	debian/tests/special-cases
+
+HELP2MAN = help2man --no-info --help-option="-h" --no-discard-stderr
+mandir := $(CURDIR)/debian/$(PYBUILD_NAME)/usr/share/man/man1
+
+override_dh_auto_install:
+	mkdir -p $(mandir)
+	$(HELP2MAN)  --name='Protein-Ligand Interaction Profiler (PLIP)' plip/plipcmd > $(mandir)/plipcmd.1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/plip.git



More information about the debian-med-commit mailing list