[SCM] thuban branch, master, updated. upstream/1.2.2-31-g356ea40

Bas Couwenberg sebastic at xs4all.nl
Tue Oct 1 17:02:14 UTC 2013


The following commit has been merged in the master branch:
commit 0ed1c635639a37af6feec6053ff1bf8fc38b770e
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Tue Oct 1 18:28:06 2013 +0200

    Convert thuban man page to Docbook XML.

diff --git a/debian/changelog b/debian/changelog
index c597a9d..f54fb73 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,7 @@ thuban (1.2.2-4) UNRELEASED; urgency=low
   * Build depend on python-psycopg2 instead of its virtual package.
   * Bump Standards-Version to 3.9.4, changes: minimal dh rules, Vcs-* fields,
     copyright.
+  * Convert thuban man page to Docbook XML.
 
  -- Bas Couwenberg <sebastic at xs4all.nl>  Tue, 01 Oct 2013 12:42:46 +0200
 
diff --git a/debian/control b/debian/control
index 1a30f95..7dae090 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,10 @@ Build-Depends: debhelper (>= 9),
                libgdal1-dev,
                libwxgtk2.8-dev,
                docbook-utils,
-               docbook-xml
+               docbook-xsl,
+               docbook-xml,
+               docbook2x,
+               xsltproc
 Standards-Version: 3.9.4
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/thuban.git
 Vcs-Git: git://anonscm.debian.org/pkg-grass/thuban.git
diff --git a/debian/man/thuban.1.xml b/debian/man/thuban.1.xml
new file mode 100644
index 0000000..cddcbca
--- /dev/null
+++ b/debian/man/thuban.1.xml
@@ -0,0 +1,84 @@
+<?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='thuban'>
+
+  <refmeta>
+    <refentrytitle>thuban</refentrytitle>
+    <manvolnum>1</manvolnum>
+  </refmeta>
+
+  <refnamediv>
+    <refname>thuban</refname>
+    <refpurpose>interactive geographic data viewer</refpurpose>
+  </refnamediv>
+
+  <refsynopsisdiv id='synopsis'>
+    <cmdsynopsis>
+      <command>thuban</command>
+      <arg choice='opt'><replaceable>thuban-session-file</replaceable></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+
+  <refsect1 id='description'>
+    <title>DESCRIPTION</title>
+    <para>
+      This manual page documents briefly the <command>thuban</command> command.
+      This manual page was written for the Debian distribution because the
+      original program does not have a manual page.
+    </para>
+    <para>
+      <command>thuban</command> is an interactiv geographic data viewer.
+      Thuban can read geographic data in the shapefile format. To control
+      the visual appearance of a layer you have to select the layer in the
+      session window of thuban. Afterwards you can change the layers color
+      with the Layer-menu.
+    </para>
+    <para>
+      You can load the layers table with the Layer-table-menu. Afterwards you
+      can query the table for feature selection. You can also load new tables
+      with the Table-menu and make a table join to the current layer table.
+    </para>
+    <para>
+      Maps can be printed or exported to the PS-format by Map/print.
+    </para>
+    <para>
+      All changes can be saved in a thuban session file. If a thuban session
+      file has been indicated on command line it will be loaded by thuban. If
+      no thuban session file has been given thuban starts with a new session.
+    </para>
+  </refsect1>
+
+  <refsect1 id='see-also'>
+    <title>SEE ALSO</title>
+
+    <para>
+     http://thuban.intevation.org/
+    </para>
+
+  </refsect1>
+
+  <refsect1 id='author'>
+    <title>AUTHOR</title>
+
+    <para>
+     Thuban was written by Intevation GmbH, <email>bh at intevation.de</email>
+    </para>
+    <para>
+      This manual page was written by Silke Reimer
+      <email>silke at intevation.de</email>
+      for the Debian GNU/Linux system (but may be used by others).
+    </para>
+
+  </refsect1>
+
+  <refsect1 id='copyright'>
+    <title>COPYRIGHT</title>
+
+    <para>
+      Thuban may be copied and modified under the terms of the GNU General
+      Public License.
+    </para>
+
+  </refsect1>
+
+</refentry>
diff --git a/debian/rules b/debian/rules
index 92da38e..42be5c4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,8 @@
 PYDEF=$(shell pyversions -d)
 PYDEFVER=$(shell pyversions -d -v)
 
+MANPAGES:=$(wildcard debian/man/*.*.xml)
+
 CFLAGS += -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
         CFLAGS += -O0
@@ -26,6 +28,12 @@ override_dh_clean:
 	$(RM) -rf $(CURDIR)/Doc/manual/thuban-manual-de
 
 override_dh_auto_build:
+	# Create man pages from DocBook XML
+	for x in $(MANPAGES) ; do \
+	  docbook2x-man $$x ; \
+	  mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
+	done
+
 	python setup.py build_ext
 	
 	find $(CURDIR) -name "*.mo" -delete
diff --git a/debian/thuban.1 b/debian/thuban.1
deleted file mode 100644
index 82ee588..0000000
--- a/debian/thuban.1
+++ /dev/null
@@ -1,48 +0,0 @@
-.TH THUBAN 1 "July  28, 2003"
-.\" Some roff macros, for reference:
-.\" .nh        disable hyphenation
-.\" .hy        enable hyphenation
-.\" .ad l      left justify
-.\" .ad b      justify to both left and right margins
-.\" .nf        disable filling
-.\" .fi        enable filling
-.\" .br        insert line break
-.\" .sp <n>    insert n+1 empty lines
-.\" for manpage-specific macros, see man(7)
-.SH NAME
-thuban \- interactive geographic data viewer
-.SH SYNOPSIS
-.B thuban
-.RI [thuban-session-file]
-.SH DESCRIPTION
-This manual page documents briefly the
-.B thuban
-command.
-This manual page was written for the Debian distribution
-because the original program does not have a manual page.
-.PP
-\fBthuban\fP is an interactiv geographic data viewer. Thuban can read
-geographic data in the shapefile format. To control the visual appearance
-of a layer you have to select the layer in the session window of thuban.
-Afterwards you can change the layers color with the Layer-menu.
-.PP
-You can load the layers table with the Layer-table-menu. Afterwards you can
-query the table for feature selection. You can also load new tables with
-the Table-menu and make a table join to the current layer table.
-.PP
-Maps can be printed or exported to the PS-format by Map/print.
-.PP
-All changes can be saved in a thuban session file. If a thuban session file
-has been indicated on command line it will be loaded by thuban. If no
-thuban session file has been given thuban starts with a new session.
-
-.SH SEE ALSO
-http://thuban.intevation.org/
-.SH AUTHOR
-Thuban was written by Intevation GmbH, \fB<bh at intevation.de\fR>
-.PP
-This manual page was written by Silke Reimer <silke at intevation.de>,
-for the Debian GNU/Linux system (but may be used by others).
-.SH COPYRIGHT
-Thuban may be copied and modified under te terms of
-\s-1GNU\s0 General Public License.
diff --git a/debian/thuban.manpages b/debian/thuban.manpages
index 77ea3d8..ff89709 100644
--- a/debian/thuban.manpages
+++ b/debian/thuban.manpages
@@ -1 +1 @@
-debian/thuban.1
+debian/man/thuban.1

-- 
Yet another interactive geographic data viewer



More information about the Pkg-grass-devel mailing list