[SCM] Packaging of DBIx::DBStag in Debian branch, master, updated. debian/0.12-1-8-g66f6747

Olivier Sallou olivier.sallou at irisa.fr
Mon Oct 10 10:10:33 UTC 2011


The following commit has been merged in the master branch:
commit d757d54bc56993b0e0dc242cf3d965f07759e055
Author: Olivier Sallou <olivier.sallou at irisa.fr>
Date:   Mon Oct 10 11:29:51 2011 +0200

    update patches to minimum, add headers

diff --git a/debian/patches/fix-man-whatis b/debian/patches/fix-man-whatis
index d6ac1d6..d0edd6a 100644
--- a/debian/patches/fix-man-whatis
+++ b/debian/patches/fix-man-whatis
@@ -1,3 +1,8 @@
+Subject: fix the what-is section of man pages
+Author: Olivier Sallou <olivier.sallou at irisa.fr>
+Last-Upadted: 10-10-2011
+Description: Fix what-is section of man pages,
+some files do not have descriptions with script name.
 --- a/DBIx/DBStag/Constraint.pm
 +++ b/DBIx/DBStag/Constraint.pm
 @@ -118,7 +118,7 @@
@@ -9,187 +14,67 @@
  
  =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 @@
+@@ -2,7 +2,7 @@
  
  =head1 NAME 
  
 -stag-autoddl.pl
-+stag-autoddl - wrapper for the Data::Stag modules
++stag-autoddl.pl - 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
+@@ -14,7 +14,7 @@
+ 
+ script wrapper for the Data::Stag modules
  
--  stag-autoddl.pl -parser MyMod::MyParser -handler MyMod::MyWriter file.txt
-+  stag-autoddl -parser MyMod::MyParser -handler MyMod::MyWriter file.txt
+-=over ARGUMENTS
++=over
  
- =head1 DESCRIPTION
+ =item -help|h
  
 --- a/scripts/stag-autotemplate.pl
 +++ b/scripts/stag-autotemplate.pl
-@@ -2,14 +2,14 @@
+@@ -2,7 +2,7 @@
  
  =head1 NAME 
  
 -  stag-autotemplate.pl
-+stag-autotemplate - Generates Stag SQL Templates files
++stag-autotemplate.pl - 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 @@
+@@ -146,7 +146,7 @@
  
  =head1 NAME 
  
 -stag-storenode.pl
-+stag-storenode - script is for storing data in database
++stag-storenode.pl - 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
+--- a/scripts/selectall_html.pl
++++ b/scripts/selectall_html.pl
+@@ -2,7 +2,7 @@
  
- 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 @@
+ =head1 NAME 
  
- =head2 Step 3: Store the data in the db
+-selectall_html.pl
++selectall_html.pl - select all elements from database
  
--  stag-storenode.pl -u movie -d 'dbi:Pg:mydb' data.mog.xml
-+  stag-storenode -u movie -d 'dbi:Pg:mydb' data.mog.xml
+ =head1 SYNOPSIS
  
- You generally dont need extra metadata here; everything can be
- infered by introspecting the database.
-@@ -361,7 +361,7 @@
+--- a/scripts/selectall_xml.pl
++++ b/scripts/selectall_xml.pl
+@@ -333,7 +333,7 @@
  
- If this works, you should now be able to retreive XML from the database, eg
+ =head1 NAME 
  
--  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'
+-selectall_xml.pl
++selectall_xml.pl - Query all elements from database with an XML output
  
- =cut
+ =head1 SYNOPSIS
  
diff --git a/debian/patches/series b/debian/patches/series
index f6cd706..bc7619f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1 @@
-fix_manpages
 fix-man-whatis

-- 
Packaging of DBIx::DBStag in Debian



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