[SCM] Packaging of DBIx::DBStag in Debian branch, master, updated. upstream/0.12-4-g4f557c6

Olivier Sallou olivier.sallou at irisa.fr
Wed Oct 5 08:22:36 UTC 2011


The following commit has been merged in the master branch:
commit 4f557c69ec926fe12c60baffd98bc23461ad0933
Author: Olivier Sallou <olivier.sallou at irisa.fr>
Date:   Wed Oct 5 10:02:16 2011 +0200

    fix what-is section

diff --git a/debian/README.source b/debian/README.source
deleted file mode 100644
index a195a02..0000000
--- a/debian/README.source
+++ /dev/null
@@ -1,3 +0,0 @@
-
-Lintian raises some warnings on manpage-has-bad-whatis-entry
-As scripts were renamed to remove extensions, NAME does not correspond anymore to files. Warning can be skipped.
diff --git a/debian/patches/fix-man-whatis b/debian/patches/fix-man-whatis
new file mode 100644
index 0000000..d6ac1d6
--- /dev/null
+++ b/debian/patches/fix-man-whatis
@@ -0,0 +1,195 @@
+--- a/DBIx/DBStag/Constraint.pm
++++ b/DBIx/DBStag/Constraint.pm
+@@ -118,7 +118,7 @@
+ 
+ =head1 NAME
+ 
+-  DBIx::DBStag::Constraint -
++DBIx::DBStag::Constraint - recursive structure for representing query constraints
+ 
+ =head1 SYNOPSIS
+ 
+--- a/scripts/selectall_html.pl
++++ b/scripts/selectall_html.pl
+@@ -2,11 +2,11 @@
+ 
+ =head1 NAME 
+ 
+-selectall_html.pl
++stag-selectall_html - Select all from db
+ 
+ =head1 SYNOPSIS
+ 
+-  selectall_html.pl -d "dbi:Pg:dbname=mydb;host=localhost" "SELECT * FROM a NATURAL JOIN b"
++  stag-selectall_html -d "dbi:Pg:dbname=mydb;host=localhost" "SELECT * FROM a NATURAL JOIN b"
+ 
+ =head1 DESCRIPTION
+ 
+--- a/scripts/selectall_xml.pl
++++ b/scripts/selectall_xml.pl
+@@ -333,11 +333,11 @@
+ 
+ =head1 NAME 
+ 
+-selectall_xml.pl
++stag-selectall_xml - query a database using SQL script or template
+ 
+ =head1 SYNOPSIS
+ 
+-  selectall_xml.pl [-d <dbi>] [-f file of sql] [-nesting|n <nesting>] SQL
++  stag-selectall_xml [-d <dbi>] [-f file of sql] [-nesting|n <nesting>] SQL
+ 
+ =head1 DESCRIPTION
+ 
+@@ -348,7 +348,7 @@
+ 
+ =head2 EXAMPLES
+ 
+-  selectall_xml.pl -d "dbi:Pg:dbname=mydb;host=localhost"\
++  stag-selectall_xml -d "dbi:Pg:dbname=mydb;host=localhost"\
+         "SELECT * FROM a NATURAL JOIN b"
+ 
+ 
+@@ -359,15 +359,15 @@
+ 
+ For example:
+ 
+-  selectall_xml.pl -d genedb /genedb-gene gene_symbol=Adh
++  stag-selectall_xml -d genedb /genedb-gene gene_symbol=Adh
+ 
+ Or:
+ 
+-  selectall_xml.pl -d genedb /genedb-gene Adh 
++  stag-selectall_xml -d genedb /genedb-gene Adh
+ 
+ Or:
+ 
+-  selectall_xml.pl -d genedb /genedb-gene gene_symbol@=Adh,dpp,bam,indy
++  stag-selectall_xml -d genedb /genedb-gene gene_symbol@=Adh,dpp,bam,indy
+ 
+ A template is indicated by the syntactic shorthand of using a slash to
+ precede the template name; in this case the template is called
+--- a/scripts/stag-autoddl.pl
++++ b/scripts/stag-autoddl.pl
+@@ -2,13 +2,13 @@
+ 
+ =head1 NAME 
+ 
+-stag-autoddl.pl
++stag-autoddl - wrapper for the Data::Stag modules
+ 
+ =head1 SYNOPSIS
+ 
+-  stag-autoddl.pl -parser XMLAutoddl -handler ITextWriter file1.txt file2.txt
++  stag-autoddl -parser XMLAutoddl -handler ITextWriter file1.txt file2.txt
+ 
+-  stag-autoddl.pl -parser MyMod::MyParser -handler MyMod::MyWriter file.txt
++  stag-autoddl -parser MyMod::MyParser -handler MyMod::MyWriter file.txt
+ 
+ =head1 DESCRIPTION
+ 
+--- a/scripts/stag-autotemplate.pl
++++ b/scripts/stag-autotemplate.pl
+@@ -2,14 +2,14 @@
+ 
+ =head1 NAME 
+ 
+-  stag-autotemplate.pl
++stag-autotemplate - Generates Stag SQL Templates files
+ 
+ =head1 SYNOPSIS
+ 
+-  stag-autotemplate.pl \
++  stag-autotemplate \
+     -s my-schema-name -dir ./templates my-sample-data.xml
+ 
+-  stag-autotemplate.pl \
++  stag-autotemplate \
+     -s my-schema-name -dir ./templates -no_pp my-stagschema.sxpr
+ 
+ =head1 DESCRIPTION
+@@ -18,7 +18,7 @@
+ 
+ See the script
+   
+-  stag-autoschema.pl
++  stag-autoschema
+ 
+ for generating stag schemas from sample data
+ 
+--- a/scripts/stag-storenode.pl
++++ b/scripts/stag-storenode.pl
+@@ -146,11 +146,11 @@
+ 
+ =head1 NAME 
+ 
+-stag-storenode.pl
++stag-storenode - script is for storing data in database
+ 
+ =head1 SYNOPSIS
+ 
+-  stag-storenode.pl -d "dbi:Pg:dbname=mydb;host=localhost" myfile.xml
++  stag-storenode -d "dbi:Pg:dbname=mydb;host=localhost" myfile.xml
+ 
+ =head1 DESCRIPTION
+ 
+@@ -289,7 +289,7 @@
+ attributes) and to change the element with postgresql reserved word
+ 'date', do this:
+ 
+-  stag-mogrify.pl -xml -r 's/^date$/moddate/' -r 's/\-//g' data.xml > data.mog.xml
++  stag-mogrify -xml -r 's/^date$/moddate/' -r 's/\-//g' data.xml > data.mog.xml
+ 
+ You may also need to explicitly make elements where you will need
+ linking tables. For instance, if the relationship between 'movie' and
+@@ -310,11 +310,11 @@
+ 
+ you can do this with the -i switch:
+ 
+-  stag-mogrify.pl -xml -i movie,star,movie2star data.xml > data.mog.xml
++  stag-mogrify -xml -i movie,star,movie2star data.xml > data.mog.xml
+ 
+ or if you simply do:
+ 
+-  stag-mogrify.pl -xml -i star data.xml > data.mog.xml
++  stag-mogrify -xml -i star data.xml > data.mog.xml
+ 
+ the mogrifier will simply interpose an element above every time it
+ sees 'star'; the naming rule is to use the two elements with an
+@@ -322,15 +322,15 @@
+ 
+ =head2 Step 2: Generating CREATE TABLE statements
+ 
+-Use the stag-autoddl.pl script;
++Use the stag-autoddl script;
+ 
+-  stag-autoddl.pl data.mog.xml > table.sql
++  stag-autoddl data.mog.xml > table.sql
+ 
+ The default rule is to create foreign keys from the nested element to
+ the outer element; you will want linking tables tobe treated
+ differently (a linking table will point to parent and child elements).
+ 
+-  stag-autoddl.pl -l movie2star -l star2character data.mog.xml > table.sql
++  stag-autoddl -l movie2star -l star2character data.mog.xml > table.sql
+ 
+ Once you have done this, load the statements into your db; eg for postgresql
+ (for other databases, use L<SQL::Translator>)
+@@ -349,7 +349,7 @@
+ 
+ =head2 Step 3: Store the data in the db
+ 
+-  stag-storenode.pl -u movie -d 'dbi:Pg:mydb' data.mog.xml
++  stag-storenode -u movie -d 'dbi:Pg:mydb' data.mog.xml
+ 
+ You generally dont need extra metadata here; everything can be
+ infered by introspecting the database.
+@@ -361,7 +361,7 @@
+ 
+ If this works, you should now be able to retreive XML from the database, eg
+ 
+-  selectall_xml.pl -d 'dbi:Pg:mydb' 'SELECT * FROM x NATURAL JOIN y'
++  stag-selectall_xml -d 'dbi:Pg:mydb' 'SELECT * FROM x NATURAL JOIN y'
+ 
+ =cut
+ 
diff --git a/debian/patches/series b/debian/patches/series
index a0dcb96..f6cd706 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix_manpages
+fix-man-whatis

-- 
Packaging of DBIx::DBStag in Debian



More information about the Pkg-perl-cvs-commits mailing list