[ncview] 10/17: Create & install man page.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sat Apr 18 18:05:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository ncview.
commit 251c9a81d91c9beaebe5d813ff8e96db2217ee66
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat Apr 18 16:20:32 2015 +0200
Create & install man page.
---
debian/manpages | 1 +
debian/patches/manpage.patch | 23 +++++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 6 ++++++
4 files changed, 31 insertions(+)
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..bc73596
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+ncview.1
diff --git a/debian/patches/manpage.patch b/debian/patches/manpage.patch
new file mode 100644
index 0000000..c131b2d
--- /dev/null
+++ b/debian/patches/manpage.patch
@@ -0,0 +1,23 @@
+Description: Fix man page issues reported by lintian.
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/data/ncview.1.sed
++++ b/data/ncview.1.sed
+@@ -3,7 +3,7 @@
+ ncview \- graphically display netCDF files under X windows
+ .SH SYNOPSIS
+ .B ncview
+-[-beep] [-copying] [-frames] [-warranty] [-private] [-ncolors XX] [-extrainfo] [-mtitle "title"] [-minmax fast | med | slow | all] datafiles ...
++[\-beep] [\-copying] [\-frames] [\-warranty] [\-private] [\-ncolors XX] [\-extrainfo] [\-mtitle "title"] [\-minmax fast | med | slow | all] datafiles ...
+ .PP
+ .SH DESCRIPTION
+ .I Ncview
+@@ -305,7 +305,7 @@ the name of a directory which contains a
+ files.
+ If that is not defined, then colormaps are sought in
+ the user's home directory, and in the directory which
+-.i ncview
++.I ncview
+ was run from.
+
+ Colormap files have 256 lines, each consisting of
diff --git a/debian/patches/series b/debian/patches/series
index c592a56..f12d83e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
auxiliary-typo.patch
+manpage.patch
diff --git a/debian/rules b/debian/rules
index d7c7a7a..4c8690e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,15 @@
--with autotools-dev \
--parallel
+override_dh_clean:
+ dh_clean ncview.1
+
override_dh_auto_install:
dh_auto_install
# removing embedded rpath in binaries
-find $(CURDIR)/debian/*/usr/bin -type f -exec chrpath --delete {} \;
+ # Create man page
+ sed 's/NCVIEW_LIB_DIR/\/usr\/share\/ncview/g' data/ncview.1.sed > ncview.1
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/ncview.git
More information about the Pkg-grass-devel
mailing list