[Python-modules-commits] r15048 - in packages/sqlparse/trunk/debian (3 files)

jollyroger-guest at users.alioth.debian.org jollyroger-guest at users.alioth.debian.org
Wed Dec 8 17:04:19 UTC 2010


    Date: Wednesday, December 8, 2010 @ 17:04:16
  Author: jollyroger-guest
Revision: 15048

Fix lintian warnings:
 * bump Standards-Version to 3.9.1
 * write a manpage to sqlformat script

Added:
  packages/sqlparse/trunk/debian/python-sqlparse.manpages
  packages/sqlparse/trunk/debian/sqlformat.1
Modified:
  packages/sqlparse/trunk/debian/control

Modified: packages/sqlparse/trunk/debian/control
===================================================================
--- packages/sqlparse/trunk/debian/control	2010-12-07 22:13:55 UTC (rev 15047)
+++ packages/sqlparse/trunk/debian/control	2010-12-08 17:04:16 UTC (rev 15048)
@@ -4,7 +4,7 @@
 Maintainer: Andriy Senkovych <jolly_roger at itblog.org.ua>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Build-Depends: debhelper (>= 7.0.50~), python
-Standards-Version: 3.8.4
+Standards-Version: 3.9.1
 Homepage: http://code.google.com/p/python-sqlparse/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/sqlparse/trunk
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/sqlparse/trunk/

Added: packages/sqlparse/trunk/debian/python-sqlparse.manpages
===================================================================
--- packages/sqlparse/trunk/debian/python-sqlparse.manpages	                        (rev 0)
+++ packages/sqlparse/trunk/debian/python-sqlparse.manpages	2010-12-08 17:04:16 UTC (rev 15048)
@@ -0,0 +1 @@
+debian/sqlformat.1

Added: packages/sqlparse/trunk/debian/sqlformat.1
===================================================================
--- packages/sqlparse/trunk/debian/sqlformat.1	                        (rev 0)
+++ packages/sqlparse/trunk/debian/sqlformat.1	2010-12-08 17:04:16 UTC (rev 15048)
@@ -0,0 +1,63 @@
+.\" Based on template /usr/share/man-db/examples/manpage.example provided by 
+.\" Tom Christiansen <tchrist at jhereg.perl.com>.
+.TH SQLFORMAT "1" "December 2010" "python-sqlparse version: 0.1.2" "User Commands"
+.SH NAME
+sqlformat \- reformat SQL file
+.SH SYNOPSIS
+.PP
+.B sqlformat
+[
+.I "OPTION"
+] ... [
+.I "FILE"
+] ...
+.SH DESCRIPTION
+.\" Putting a newline after each sentence can generate better output.
+The `sqlformat' command-line tool can be used to reformat SQL file according to
+specified options or prepare a snippet in in some programming language (only
+Puthon and PHP currently supported).
+Use "-" as
+.I FILE
+to read from stdin.
+.SH OPTIONS
+.TP
+\fB\-i\fR \fICHOICE\fR|\fB\-\-identifiers\fR=\fIFORMAT\fR
+Change case of identifiers.
+.I FORMAT
+is one of "upper", "lower", "capitalize".
+.TP
+\fB\-k\fR \fICHOICE\fR|\fB\-\-keywords\fR=\fIFORMAT\fR
+Change case of keywords.
+.I FORMAT
+is one of "upper", "lower", "capitalize".
+.TP
+\fB\-l\fR \fICHOICE\fR|\fB\-\-language\fR=\fILANG\fR
+Output a snippet in programming language LANG.
+.I LANG
+can be "python", "php".
+.TP
+\fB\-o\fR \fIFILE\fR|\fB\-\-outfile\fR=\fIFILE\fR
+Write output to
+.I FILE
+(defaults to stdout).
+.TP
+.BR \-r | \-\-reindent
+Reindent statements.
+.TP
+\fB\-\-indent_width\fR=\fIINDENT_WIDTH\fR
+Set indent width to
+.IR INDENT_WIDTH .
+Default is 2 spaces.
+.TP
+\fB\-\-strip\-comments
+Remove comments.
+.TP
+.BR \-h | \-\-help
+Print a short help message and exit.
+All subsequent options are ignored.
+.TP
+.BR --verbose
+Verbose output.
+.TP
+.BR \-\-version
+Print program's version number and exit.




More information about the Python-modules-commits mailing list