[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-857-g1324a010d
git at osgeo.org
git at osgeo.org
Mon May 16 08:33:38 PDT 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 1324a010dabc2ef30a7cb5d472568bb5baeb9152 (commit)
from 6188339d51b2fea912cc0972a28302c806e1c7f4 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1324a010dabc2ef30a7cb5d472568bb5baeb9152
Author: Sandro Santilli <strk at kbt.io>
Date: Mon May 16 17:32:50 2022 +0200
Print usage of pgtopo_export if called with -h / --help
diff --git a/topology/loader/pgtopo_export b/topology/loader/pgtopo_export
index ac203e3e4..76e8976ba 100755
--- a/topology/loader/pgtopo_export
+++ b/topology/loader/pgtopo_export
@@ -20,7 +20,10 @@ SKIP_LAYERS=no
OUTFILE=-
while test -n "$1"; do
- if test "$1" = '--skip-layers'; then
+ if test "$1" = '--help' || test "$1" = '-h'; then
+ usage
+ exit 0
+ elif test "$1" = '--skip-layers'; then
SKIP_LAYERS=yes
shift
elif test "$1" = '-f'; then
@@ -44,10 +47,6 @@ DUMPNAME="pgtopo_export"
if test "${OUTFILE}" = "-"; then
exec 4>&2
- if [ -t 1 ]; then
- echo "Exporting to terminal is not supported, please redirect stdout or specify a destination with -f" >&4
- exit 1
- fi
else
exec 4>&1
fi
@@ -57,6 +56,13 @@ test -n "${TOPONAME}" || {
exit 1
}
+if test "${OUTFILE}" = "-"; then
+ if [ -t 1 ]; then
+ echo "Exporting to terminal is not supported, please redirect stdout or specify a destination with -f" >&2
+ exit 1
+ fi
+fi
+
TMPDIR=${TMPDIR-/tmp}
WORKDIR=${TMPDIR}/pgtopo_export_$$
DUMPDIR=${WORKDIR}/${DUMPNAME}
-----------------------------------------------------------------------
Summary of changes:
topology/loader/pgtopo_export | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list