From e175a4488cbf5a560dca6e0afadd6691d769cbc0 Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Tue, 30 Jul 2013 15:32:31 +0200 Subject: [PATCH] Bug 9247 - Add two more usage examples to the manpage for koha-mysql MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It might not be immediately obvious that it is possible to send SQL queries "directly" to the koha-mysql command, or that files from mysqldump can be loaded with it. This patch adds these as "example usage" to the man page for koha-mysql. To test: Run these commands and look at the formatted man page: $ xsltproc /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \ debian/docs/koha-mysql.xml $ man -l koha-mysql.8 Make sure this test passes: $ prove -v xt/verify-debian-docbook.t This patch also corrects a couple places where "Koha" was written as "koha". --- debian/docs/koha-mysql.xml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/debian/docs/koha-mysql.xml b/debian/docs/koha-mysql.xml index 070deb6..e3f79c7 100644 --- a/debian/docs/koha-mysql.xml +++ b/debian/docs/koha-mysql.xml @@ -17,7 +17,7 @@ koha-mysql - Provide an interactive mysql shell set up for the specified koha instance. + Provide an interactive mysql shell set up for the specified Koha instance. UNIX/Linux @@ -28,7 +28,24 @@ Description - Provide an interactive mysql shell set up for the specified koha instance. + Provide an interactive mysql shell set up for the specified Koha instance. + + + Example usage + + + Send an SQL query to MySQL + + "Some SQL query" | koha-mysql instancename + + + + Load a database dump (e.g. one produced by mysqldump) into the database of the given instance + + koha-mysql instancename < /path/to/mysqldump.sql + + + See also -- 1.7.9.5