[gmt] 13/23: Add manpage for gmt-config.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sat Jun 13 22:40:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository gmt.
commit 53db3fa092fe9d23d261d24eb5662a426c6594da
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Fri Jun 12 22:05:11 2015 +0200
Add manpage for gmt-config.
---
debian/changelog | 1 +
debian/control | 6 +-
debian/libgmt-dev.manpages | 1 +
debian/man/gmt-config.1.xml | 149 ++++++++++++++++++++++++++++++++++++++++++++
debian/rules | 12 ++++
5 files changed, 168 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 9fb5174..984899f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -44,6 +44,7 @@ gmt (5.1.2+dfsg1-1) UNRELEASED; urgency=medium
* Add symbols file for libgmt5.
* Add debug package.
* Use Breaks/Replaces instead of versioned Conflicts.
+ * Add manpage for gmt-config.
-- Bas Couwenberg <sebastic at debian.org> Sun, 07 Jun 2015 12:06:29 +0200
diff --git a/debian/control b/debian/control
index 9140f06..19cbbea 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,11 @@ Build-Depends: debhelper (>= 9),
sfftw-dev,
texlive,
texlive-latex-extra,
- zlib1g-dev
+ zlib1g-dev,
+ docbook2x,
+ docbook-xsl,
+ docbook-xml,
+ xsltproc
Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/gmt.git
Vcs-Git: git://anonscm.debian.org/pkg-grass/gmt.git
diff --git a/debian/libgmt-dev.manpages b/debian/libgmt-dev.manpages
new file mode 100644
index 0000000..7650cf5
--- /dev/null
+++ b/debian/libgmt-dev.manpages
@@ -0,0 +1 @@
+debian/man/gmt-config.1
diff --git a/debian/man/gmt-config.1.xml b/debian/man/gmt-config.1.xml
new file mode 100644
index 0000000..b91e62a
--- /dev/null
+++ b/debian/man/gmt-config.1.xml
@@ -0,0 +1,149 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
+<refentry id='gmt-config'>
+
+ <refmeta>
+ <refentrytitle>gmt-config</refentrytitle>
+ <manvolnum>1</manvolnum>
+ </refmeta>
+
+ <refnamediv>
+ <refname>gmt-config</refname>
+ <refpurpose>query GMT build options</refpurpose>
+ </refnamediv>
+
+ <refsynopsisdiv id='synopsis'>
+ <cmdsynopsis>
+ <command>gmt-config</command>
+ <arg choice='opt'><option>--help</option></arg>
+ <arg choice='opt'><option>--bits</option></arg>
+ <arg choice='opt'><option>--cflags</option></arg>
+ <arg choice='opt'><option>--datadir</option></arg>
+ <arg choice='opt'><option>--dcw</option></arg>
+ <arg choice='opt'><option>--dep-libs</option></arg>
+ <arg choice='opt'><option>--gshhg</option></arg>
+ <arg choice='opt'><option>--has-fftw</option></arg>
+ <arg choice='opt'><option>--has-fftw</option></arg>
+ <arg choice='opt'><option>--has-gdal</option></arg>
+ <arg choice='opt'><option>--has-pcre</option></arg>
+ <arg choice='opt'><option>--includedir</option></arg>
+ <arg choice='opt'><option>--libs</option></arg>
+ <arg choice='opt'><option>--prefix</option></arg>
+ <arg choice='opt'><option>--version</option></arg>
+ </cmdsynopsis>
+ </refsynopsisdiv>
+
+ <refsect1 id='description'>
+ <title>DESCRIPTION</title>
+ <para>
+ <command>gmt-config</command> allows querying the options used to
+ build GMT.
+ </para>
+ </refsect1>
+
+ <refsect1 id='options'>
+ <title>OPTIONS</title>
+ <variablelist>
+
+ <varlistentry>
+ <term><option>--help</option></term>
+ <listitem>
+ <para>display help message and exit</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--bits</option></term>
+ <listitem>
+ <para>whether library is build 32-bit or 64-bit</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--cflags</option></term>
+ <listitem>
+ <para>pre-processor and compiler flags</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--datadir</option></term>
+ <listitem>
+ <para>GMT's data directory</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--dcw</option></term>
+ <listitem>
+ <para>location of used DCW</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--dep-libs</option></term>
+ <listitem>
+ <para>dependent libraries</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--gshhg</option></term>
+ <listitem>
+ <para>location of used GSHHG</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--has-fftw</option></term>
+ <listitem>
+ <para>whether FFTW is used in build</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--has-gdal</option></term>
+ <listitem>
+ <para>whether GDAL is used in build</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--has-pcre</option></term>
+ <listitem>
+ <para>whether PCRE is used in build</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--includedir</option></term>
+ <listitem>
+ <para>include directory</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--libs</option></term>
+ <listitem>
+ <para>library linking information</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--prefix</option></term>
+ <listitem>
+ <para>install prefix</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>--version</option></term>
+ <listitem>
+ <para>library version</para>
+ </listitem>
+ </varlistentry>
+
+ </variablelist>
+ </refsect1>
+
+</refentry>
diff --git a/debian/rules b/debian/rules
index 5cedbbb..5cd1251 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,6 +16,9 @@ ifneq (,$(findstring verbose,$(DEB_BUILD_OPTIONS)))
endif
UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/~.*//; s/^[0-9]://')
+BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
+
+MANPAGES:=$(wildcard debian/man/*.*.xml)
BUILDDIR = $(CURDIR)/debian/build
DESTDIR = $(CURDIR)/debian/tmp
@@ -39,6 +42,9 @@ CMAKE_OPTS = -DCMAKE_BUILD_TYPE=RelWithDebInfo \
--sourcedirectory=$(CURDIR) --builddirectory=$(BUILDDIR) \
--parallel
+override_dh_clean:
+ dh_clean debian/man/*.1
+
override_dh_auto_clean:
rm -rf $(BUILDDIR) $(DESTDIR)
dh_auto_clean
@@ -52,6 +58,12 @@ override_dh_auto_build-indep:
$(MAKE) -C $(BUILDDIR) docs_man docs_html docs_pdf
override_dh_auto_install:
+ # Create man pages from DocBook XML
+ for x in $(MANPAGES) ; do \
+ docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \
+ mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
+ done
+
DESTDIR=$(DESTDIR) $(MAKE) -C $(BUILDDIR) install
# remove duplicated stuff
# rm -rf debian/tmp/usr/share/conf \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/gmt.git
More information about the Pkg-grass-devel
mailing list