[Git][debian-gis-team/postgis][experimental] Use upstream pgtopo manpages.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Mon May 23 10:32:21 BST 2022



Bas Couwenberg pushed to branch experimental at Debian GIS Project / postgis


Commits:
7466f786 by Bas Couwenberg at 2022-05-23T11:32:07+02:00
Use upstream pgtopo manpages.

- - - - -


5 changed files:

- + debian/patches/0001-Add-manpages-for-pgtopo_import-and-pgtopo_export.patch
- debian/patches/series
- − debian/pgtopo_export.1
- − debian/pgtopo_import.1
- debian/postgis.manpages


Changes:

=====================================
debian/patches/0001-Add-manpages-for-pgtopo_import-and-pgtopo_export.patch
=====================================
@@ -0,0 +1,146 @@
+From 6e0680a6ec2ba5959d0566b655fa433173a40b83 Mon Sep 17 00:00:00 2001
+From: Sandro Santilli <strk at kbt.io>
+Date: Mon, 23 May 2022 10:29:37 +0200
+Subject: Add manpages for pgtopo_import and pgtopo_export
+
+Closes #5158
+---
+ doc/Makefile.in         |  4 +++
+ doc/man/pgtopo_export.1 | 49 +++++++++++++++++++++++++++++++++
+ doc/man/pgtopo_import.1 | 60 +++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 113 insertions(+)
+ create mode 100644 doc/man/pgtopo_export.1
+ create mode 100644 doc/man/pgtopo_import.1
+
+--- a/doc/Makefile.in
++++ b/doc/Makefile.in
+@@ -395,10 +395,14 @@ man-install: man/shp2pgsql.1 man/pgsql2s
+ 	mkdir -p $(DESTDIR)$(PGSQL_MANDIR)/man1
+ 	$(INSTALL_DATA) man/pgsql2shp.1 $(DESTDIR)$(PGSQL_MANDIR)/man1/pgsql2shp.1
+ 	$(INSTALL_DATA) man/shp2pgsql.1 $(DESTDIR)$(PGSQL_MANDIR)/man1/shp2pgsql.1
++	$(INSTALL_DATA) man/pgtopo_export.1 $(DESTDIR)$(PGSQL_MANDIR)/man1/pgtopo_export.1
++	$(INSTALL_DATA) man/pgtopo_import.1 $(DESTDIR)$(PGSQL_MANDIR)/man1/pgtopo_import.1
+ 
+ man-uninstall:
+ 	rm -f $(DESTDIR)$(PGSQL_MANDIR)/man1/shp2pgsql.1
+ 	rm -f $(DESTDIR)$(PGSQL_MANDIR)/man1/pgsql2shp.1
++	rm -f $(DESTDIR)$(PGSQL_MANDIR)/man1/pgtopo_export.1
++	rm -f $(DESTDIR)$(PGSQL_MANDIR)/man1/pgtopo_import.1
+ 
+ docs-install: html/postgis.html html/style.css
+ 	mkdir -p $(DESTDIR)$(PGSQL_DOCDIR)/postgis/images
+--- /dev/null
++++ b/doc/man/pgtopo_export.1
+@@ -0,0 +1,49 @@
++.TH "pgtopo_export" "1" "" "" "PostGIS"
++.SH "NAME"
++.LP
++pgtopo_export - postgis topology exporter
++
++.SH "SYNTAX"
++.LP
++pgtopo_export [\fIoptions\fR] \fIdatabase\fR \fItopology\fR
++
++.SH "DESCRIPTION"
++.LP
++The pgtopo_export script connects to the named database and exports
++data of the named topology and associated layers to a file with a
++custom format.
++
++.SH "USAGE"
++.LP
++The <database> is the name of the database to connect to.
++
++The <topology> is the name of the topology to read data from.
++
++.SH "OPTIONS"
++.LP
++The commandline options are:
++.TP
++\fB\-f\fR <\fIfilename\fR>
++Write the output to a particular filename instead of stadard output.
++.TP
++\fB\--skip-layers\fR
++Do not export layers, just topology primitives.
++\fB\-h\fR
++Display usage information.
++
++.SH "EXAMPLES"
++.LP
++An example session using the exporter to create an export file of a
++topology "city_data" from a database might look like this:
++
++# \fBpgtopo_export \-f city_data.pgtopo_export my_db city_data\fR
++
++.SH "AUTHORS"
++.LP
++Originally written by Sandro Santilli <strk at kbt.io>.
++
++.SH "SEE ALSO"
++.LP
++pgtopo_import(1)
++
++More information is available at http://postgis.net
+--- /dev/null
++++ b/doc/man/pgtopo_import.1
+@@ -0,0 +1,60 @@
++.TH "pgtopo_import" "1" "" "" "PostGIS"
++.SH "NAME"
++.LP
++pgtopo_import - postgis topology importer
++
++.SH "SYNTAX"
++.LP
++pgtopo_import [ --skip-layers | --only-layers ] [ -f <dumpfile> ] <toponame>
++pgtopo_import [\fIoptions\fR] \fItopology\fR
++
++.SH "DESCRIPTION"
++.LP
++The pgtopo_import data loader reads an export file written
++by pgtopo_export and outputs an SQL script reconstructing
++the topology therein contained.
++
++.SH "USAGE"
++.LP
++The <topology> is the name to give to the re-created topology, which
++can be different from the name of the topology the export was made
++from.
++
++By default the SQL script is written on standard output.
++
++.SH "OPTIONS"
++.LP
++These are the supported options
++
++(Note that \--skip-layers and \--only-layers are mutually exclusive.)
++.TP
++\fB\--skip-layers\fR
++Do not include layers in the output SQL script. Just the topology
++schema.
++.TP
++\fB\--only-layers\fR
++Do not include the topology schema in the output SQL script. Just the
++layers.
++.TP
++\fB\-f\fR <\fIfilename\fR>
++Read the export file from the specified filename, rather than from
++standard input.
++\fB\-h\fR
++Display usage information.
++
++.SH "EXAMPLES"
++.LP
++An example session using the loader to create an SQL file and uploading it
++might look like this:
++
++# \fBpgtopo_import city_data < city_data.pgtopo_export | psql newdb\fR
++
++.SH "AUTHORS"
++.LP
++Originally written by Sandro Santilli <strk at kbt.io>.
++
++.SH "SEE ALSO"
++.LP
++pgtopo_export(1)
++
++More information is available at http://postgis.net


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 relax-test-timing-constraints.patch
 chaikin
 incorrect-path-for-interpreter.patch
+0001-Add-manpages-for-pgtopo_import-and-pgtopo_export.patch


=====================================
debian/pgtopo_export.1 deleted
=====================================
@@ -1,9 +0,0 @@
-.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.48.1.
-.TH PGTOPO_EXPORT "1" "May 2022" "pgtopo_export 3.3.0" "User Commands"
-.SH NAME
-pgtopo_export \- PostGIS topology data exporter
-.SH SYNOPSIS
-.B pgtopo_export
-[\fI\,--skip-layers\/\fR] [ \fI\,-f <dumpfile> \/\fR] \fI\,<dbname> <toponame>\/\fR
-.SH DESCRIPTION
-Export PostGIS topology data.


=====================================
debian/pgtopo_import.1 deleted
=====================================
@@ -1,9 +0,0 @@
-.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.48.1.
-.TH PGTOPO_EXPORT "1" "May 2022" "pgtopo_import 3.3.0" "User Commands"
-.SH NAME
-pgtopo_import \- PostGIS topology data importer
-.SH SYNOPSIS
-.B pgtopo_import
-[\fI\,--skip-layers\/\fR | \fI\,--only-layers\/\fR] [ \fI\,-f <dumpfile> \/\fR] \fI\,<toponame>\/\fR
-.SH DESCRIPTION
-Import PostGIS topology data.


=====================================
debian/postgis.manpages
=====================================
@@ -1,5 +1,5 @@
 doc/man/pgsql2shp.1
+doc/man/pgtopo_export.1
+doc/man/pgtopo_import.1
 doc/man/shp2pgsql.1
-debian/pgtopo_export.1
-debian/pgtopo_import.1
 debian/raster2pgsql.1



View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/7466f786e5109561f4437fe484e82cff54e5d4c1

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/postgis/-/commit/7466f786e5109561f4437fe484e82cff54e5d4c1
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20220523/f88ec9aa/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list