[pycsw] 01/03: Install pycsw-admin into /usr/bin
Johan Van de Wauw
johanvdw-guest at moszumanska.debian.org
Sun Oct 12 06:34:53 UTC 2014
This is an automated email from the git hooks/post-receive script.
johanvdw-guest pushed a commit to branch master
in repository pycsw.
commit 3ca9aa96f2a4d9f503a4aec1e93361835f1e700c
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date: Sun Oct 12 07:20:22 2014 +0200
Install pycsw-admin into /usr/bin
---
debian/control | 4 +--
debian/man/pycsw-admin.md | 82 +++++++++++++++++++++++++++++++++++++++++++++
debian/python-pycsw.install | 2 ++
3 files changed, 86 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 6b0877f..feeb240 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Uploaders: Angelos Tzotsos <gcpp.kalxas at gmail.com>,
Section: python
Priority: optional
Build-Depends: debhelper (>= 9),
+ dh-exec,
dh-python,
python-setuptools,
python-all,
@@ -12,7 +13,7 @@ Build-Depends: debhelper (>= 9),
dh-apache2,
apache2-dev
Standards-Version: 3.9.6
-Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-grass/pycsw.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/pycsw.git
Vcs-Git: git://anonscm.debian.org/pkg-grass/pycsw.git
Homepage: http://pycsw.org
X-Python-Version: >= 2.5
@@ -73,4 +74,3 @@ Description: OGC compliant metadata (catalog service for web) server
Mac OS X).
.
This package contains the documentation.
-
diff --git a/debian/man/pycsw-admin.md b/debian/man/pycsw-admin.md
new file mode 100644
index 0000000..d5c9de1
--- /dev/null
+++ b/debian/man/pycsw-admin.md
@@ -0,0 +1,82 @@
+pycsw-admin - pycsw admin utility
+=================================
+
+##SYNOPSIS
+ pycsw-admin.py -c <command> -f <cfg> [-h] [-p /path/to/records] [-r]
+
+##OPTIONS
+ -c Command to be performed:
+ - setup_db
+ - load_records
+ - export_records
+ - rebuild_db_indexes
+ - optimize_db
+ - refresh_harvested_records
+ - gen_sitemap
+ - post_xml
+ - get_sysprof
+ - validate_xml
+
+ -f Filepath to pycsw configuration
+
+ -h Usage message
+
+ -o path to output file
+
+ -p path to input/output directory to read/write metadata records
+
+ -r load records from directory recursively
+
+ -s XML Schema
+
+ -t Timeout (in seconds) for HTTP requests (default is 30)
+
+ -u URL of CSW
+
+ -x XML document
+
+##EXAMPLE
+ 1.) setup_db: Creates repository tables and indexes
+
+ pycsw-admin.py -c setup_db -f default.cfg
+
+ 2.) load_records: Loads metadata records from directory into repository
+
+ pycsw-admin.py -c load_records -p /path/to/records -f default.cfg
+
+ Load records from directory recursively
+
+ pycsw-admin.py -c load_records -p /path/to/records -f default.cfg -r
+
+ 3.) export_records: Dump metadata records from repository into directory
+
+ pycsw-admin.py -c export_records -p /path/to/records -f default.cfg
+
+ 4.) rebuild_db_indexes: Rebuild repository database indexes
+
+ pycsw-admin.py -c rebuild_db_indexes -f default.cfg
+
+ 5.) optimize_db: Optimize repository database
+
+ pycsw-admin.py -c optimize_db -f default.cfg
+
+ 6.) refresh_harvested_records: Refresh repository records
+ which have been harvested
+
+ pycsw-admin.py -c refresh_harvested_records -f default.cfg
+
+ 7.) gen_sitemap: Generate XML Sitemap
+
+ pycsw-admin.py -c gen_sitemap -f default.cfg -o /path/to/sitemap.xml
+
+ 8.) post_xml: Execute a CSW request via HTTP POST
+
+ pycsw-admin.py -c post_xml -u http://host/csw -x /path/to/request.xml
+
+ 9.) get_sysprof: Get versions of dependencies
+
+ pycsw-admin.py -c get_sysprof
+
+ 10.) validate_xml: Validate an XML document against an XML Schema
+
+ pycsw-admin.py -c validate_xml -x file.xml -s file.xsd
diff --git a/debian/python-pycsw.install b/debian/python-pycsw.install
old mode 100644
new mode 100755
index 444b3d5..c9d4e2e
--- a/debian/python-pycsw.install
+++ b/debian/python-pycsw.install
@@ -1 +1,3 @@
+#!/usr/bin/dh-exec
debian/tmp/usr/lib
+bin/pycsw-admin.py => /usr/bin/pycsw-admin
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pycsw.git
More information about the Pkg-grass-devel
mailing list