r27613 - in /trunk/libhtml-parser-perl: Parser.pm debian/changelog debian/patches/ debian/patches/Parser.pm.patch debian/patches/eg___hform.patch debian/patches/eg___htextsub.patch eg/hform eg/htextsub

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Mon Dec 1 21:58:51 UTC 2008


Author: dmn
Date: Mon Dec  1 21:58:45 2008
New Revision: 27613

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=27613
Log:
split canges ti upstream sources into patches

Added:
    trunk/libhtml-parser-perl/debian/patches/
    trunk/libhtml-parser-perl/debian/patches/Parser.pm.patch
    trunk/libhtml-parser-perl/debian/patches/eg___hform.patch
    trunk/libhtml-parser-perl/debian/patches/eg___htextsub.patch
Modified:
    trunk/libhtml-parser-perl/Parser.pm
    trunk/libhtml-parser-perl/debian/changelog
    trunk/libhtml-parser-perl/eg/hform
    trunk/libhtml-parser-perl/eg/htextsub

Modified: trunk/libhtml-parser-perl/Parser.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/Parser.pm?rev=27613&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/Parser.pm (original)
+++ trunk/libhtml-parser-perl/Parser.pm Mon Dec  1 21:58:45 2008
@@ -1056,10 +1056,9 @@
   $p->parse_file(shift || die) || die $!;
   print "\n";
 
-On a Debian box, more examples can be found in the
-/usr/share/doc/libhtml-parser-perl/examples directory.
-The program C<hrefsub> shows how you can edit all links
-found in a document and C<htextsub> how to edit the text only; the
+More examples are found in the F<eg/> directory of the C<HTML-Parser>
+distribution: the program C<hrefsub> shows how you can edit all links
+found in a document; the program C<htextsub> shows how to edit the text only; the
 program C<hstrip> shows how you can strip out certain tags/elements
 and/or attributes; and the program C<htext> show how to obtain the
 plain text, but not any script/style content.

Modified: trunk/libhtml-parser-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/debian/changelog?rev=27613&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/debian/changelog (original)
+++ trunk/libhtml-parser-perl/debian/changelog Mon Dec  1 21:58:45 2008
@@ -4,6 +4,7 @@
   * New upstream release
     + bump years of copyright
   * adopt debelper 7; adjust rules, control and compat
+  * split canges ti upstream sources into patches
 
  -- Damyan Ivanov <dmn at debian.org>  Mon, 01 Dec 2008 23:15:48 +0200
 

Added: trunk/libhtml-parser-perl/debian/patches/Parser.pm.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/debian/patches/Parser.pm.patch?rev=27613&op=file
==============================================================================
--- trunk/libhtml-parser-perl/debian/patches/Parser.pm.patch (added)
+++ trunk/libhtml-parser-perl/debian/patches/Parser.pm.patch Mon Dec  1 21:58:45 2008
@@ -1,0 +1,16 @@
+--- libhtml-parser-perl-3.59.orig/Parser.pm
++++ libhtml-parser-perl-3.59/Parser.pm
+@@ -1056,9 +1056,10 @@
+   $p->parse_file(shift || die) || die $!;
+   print "\n";
+ 
+-More examples are found in the F<eg/> directory of the C<HTML-Parser>
+-distribution: the program C<hrefsub> shows how you can edit all links
+-found in a document; the program C<htextsub> shows how to edit the text only; the
++On a Debian box, more examples can be found in the
++/usr/share/doc/libhtml-parser-perl/examples directory.
++The program C<hrefsub> shows how you can edit all links
++found in a document and C<htextsub> how to edit the text only; the
+ program C<hstrip> shows how you can strip out certain tags/elements
+ and/or attributes; and the program C<htext> show how to obtain the
+ plain text, but not any script/style content.

Added: trunk/libhtml-parser-perl/debian/patches/eg___hform.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/debian/patches/eg___hform.patch?rev=27613&op=file
==============================================================================
--- trunk/libhtml-parser-perl/debian/patches/eg___hform.patch (added)
+++ trunk/libhtml-parser-perl/debian/patches/eg___hform.patch Mon Dec  1 21:58:45 2008
@@ -1,0 +1,26 @@
+--- libhtml-parser-perl-3.59.orig/eg/hform
++++ libhtml-parser-perl-3.59/eg/hform
+@@ -4,7 +4,7 @@
+ 
+ use HTML::PullParser ();
+ use HTML::Entities qw(decode_entities);
+-use Data::Dump qw(dump);
++use Data::Dumper qw(Dumper);
+ 
+ my @FORM_TAGS = qw(form input textarea button select option);
+ 
+@@ -46,7 +46,7 @@
+ 		while (defined(my $t = $p->get_token)) {
+ 		    next unless ref $t; # skip text
+ 		    last if $t->[0] eq "/select";
+-		    #print "select ", dump($t), "\n";
++		    #print "select ", Dumper($t), "\n";
+ 		    if ($t->[0] eq "option") {
+ 			my $value = $t->[1]->{value};
+ 			my $text = get_text($p, "/option");
+@@ -80,4 +80,4 @@
+     }
+ }
+ 
+-print dump(\@forms), "\n";
++print Dumper(\@forms), "\n";

Added: trunk/libhtml-parser-perl/debian/patches/eg___htextsub.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/debian/patches/eg___htextsub.patch?rev=27613&op=file
==============================================================================
--- trunk/libhtml-parser-perl/debian/patches/eg___htextsub.patch (added)
+++ trunk/libhtml-parser-perl/debian/patches/eg___htextsub.patch Mon Dec  1 21:58:45 2008
@@ -1,0 +1,10 @@
+--- libhtml-parser-perl-3.59.orig/eg/htextsub
++++ libhtml-parser-perl-3.59/eg/htextsub
+@@ -1,5 +1,7 @@
+ #!/usr/bin/perl -w
+ 
++# Shows how to edit text in an HTML document.
++
+ use strict;
+ my $code = shift || usage();
+ $code = 'sub edit_print { local $_ = shift; ' . $code . '; print }';

Modified: trunk/libhtml-parser-perl/eg/hform
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/eg/hform?rev=27613&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/eg/hform (original)
+++ trunk/libhtml-parser-perl/eg/hform Mon Dec  1 21:58:45 2008
@@ -4,7 +4,7 @@
 
 use HTML::PullParser ();
 use HTML::Entities qw(decode_entities);
-use Data::Dumper qw(Dumper);
+use Data::Dump qw(dump);
 
 my @FORM_TAGS = qw(form input textarea button select option);
 
@@ -46,7 +46,7 @@
 		while (defined(my $t = $p->get_token)) {
 		    next unless ref $t; # skip text
 		    last if $t->[0] eq "/select";
-		    #print "select ", Dumper($t), "\n";
+		    #print "select ", dump($t), "\n";
 		    if ($t->[0] eq "option") {
 			my $value = $t->[1]->{value};
 			my $text = get_text($p, "/option");
@@ -80,4 +80,4 @@
     }
 }
 
-print Dumper(\@forms), "\n";
+print dump(\@forms), "\n";

Modified: trunk/libhtml-parser-perl/eg/htextsub
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-parser-perl/eg/htextsub?rev=27613&op=diff
==============================================================================
--- trunk/libhtml-parser-perl/eg/htextsub (original)
+++ trunk/libhtml-parser-perl/eg/htextsub Mon Dec  1 21:58:45 2008
@@ -1,6 +1,4 @@
 #!/usr/bin/perl -w
-
-# Shows how to edit text in an HTML document.
 
 use strict;
 my $code = shift || usage();




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