[med-svn] [mne-python] 01/03: help2man does a pretty poor job for this manpage - provide a very simple manually edited page

Andreas Tille tille at debian.org
Mon Nov 25 10:53:02 UTC 2013


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

tille pushed a commit to branch master
in repository mne-python.

commit d160a763950fa5d5fc9c4b589d102c12269d2dd2
Author: Andreas Tille <tille at debian.org>
Date:   Mon Nov 25 11:52:22 2013 +0100

    help2man does a pretty poor job for this manpage - provide a very simple manually edited page
---
 debian/control  |  1 -
 debian/manpages |  1 +
 debian/mne.1    | 33 +++++++++++++++++++++++++++++++++
 debian/rules    | 12 ------------
 4 files changed, 34 insertions(+), 13 deletions(-)

diff --git a/debian/control b/debian/control
index ac2499a..07a49eb 100644
--- a/debian/control
+++ b/debian/control
@@ -20,7 +20,6 @@ Build-Depends: debhelper (>= 9),
                xvfb,
                xauth,
                libgl1-mesa-dri,
-               help2man,
                python-coverage
 Standards-Version: 3.9.4
 Vcs-Git: git://anonscm.debian.org/debian-med/mne-python.git
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..0f65186
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/*.1
diff --git a/debian/mne.1 b/debian/mne.1
new file mode 100644
index 0000000..bcfa7a7
--- /dev/null
+++ b/debian/mne.1
@@ -0,0 +1,33 @@
+.TH MNE "1" "November 2013" "MNE 0.7.git" "User Commands"
+.SH NAME
+mne \- MEG and EEG data analysis
+.SH SYNOPSIS
+.b mne
+\fB<command>\fR \fI[options]\fR
+.SH OPTIONS
+Accepted commands :
+.IP
+\- browse_raw
+.IP
+\- bti2fiff
+.IP
+\- clean_eog_ecg
+.IP
+\- compute_proj_ecg
+.IP
+\- compute_proj_eog
+.IP
+\- flash_bem_model
+.IP
+\- kit2fiff
+.IP
+\- make_scalp_surfaces
+.IP
+\- maxfilter
+.IP
+\- surf2bem
+.SH EXAMPLE
+\fBmne\fR \fBbrowse_raw\fR \fI\-\-raw\fR sample_audvis_raw.fif
+.PP
+Getting help example:
+\fBmne\fR \fBcompute_proj_eog\fR \fI\-h\fR
diff --git a/debian/rules b/debian/rules
index cec3fae..7bdf3df 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,15 +20,3 @@ override_dh_auto_test:
 	MNE_SKIP_SAMPLE_DATASET_TESTS=true \
 	  xvfb-run --auto-servernum --server-num=20 -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" \
 	  $(NOSETESTS) mne
-
-override_dh_installman:
-	# try to create man page via help2man
-	mkdir -p $(mandir)
-	set -e; \
-	cd bin && for f in *; do \
-			descr=$$(grep -h -e "^ *'''" -e 'DESCRIP =' $$f -h | sed -e "s,.*' *\([^'][^']*\)'.*,\1,g" | head -n 1); \
-	PYTHONPATH=../ \
-			help2man -n "$$descr" --no-discard-stderr --no-info --version-string "$(uver)" ./$$f \
-			>| $(mandir)/$$f.1; \
-	done
-

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/mne-python.git



More information about the debian-med-commit mailing list