Index: XML-SAX-1.02-new/Makefile.PL
===================================================================
--- XML-SAX-1.02-new/Makefile.PL (nonexistent)
+++ XML-SAX-1.02-new/Makefile.PL (revision 349)
@@ -0,0 +1,61 @@
+use ExtUtils::MakeMaker;
+use File::Basename ();
+use File::Spec ();
+
+
+WriteMakefile(
+ 'NAME' => 'XML::SAX',
+ 'VERSION_FROM' => 'lib/XML/SAX.pm', # finds $VERSION
+ 'PREREQ_PM' => {
+ 'File::Temp' => 0,
+ 'XML::SAX::Base' => 1.05,
+ 'XML::NamespaceSupport' => 0.03,
+ },
+ META_MERGE => {
+ "meta-spec" => { version => 2 },
+ resources => {
+ repository => {
+ type => 'git',
+ url => 'git@github.com:grantm/XML-SAX.git',
+ web => 'https://github.com/grantm/xml-sax',
+ },
+ },
+ },
+);
+
+sub MY::install {
+ package MY;
+ my $script = shift->SUPER::install(@_);
+
+ # Only modify existing ParserDetails.ini if user agrees
+
+ my $write_ini_ok = 0;
+
+ eval { require XML::SAX };
+ if ($@) {
+ $write_ini_ok = 1;
+ }
+ else {
+ my $dir = File::Basename::dirname($INC{'XML/SAX.pm'});
+ if (-e File::Spec->catfile($dir, 'SAX', 'ParserDetails.ini')) {
+ $write_ini_ok = 0;
+ }
+ else {
+ $write_ini_ok = 1;
+ }
+ }
+
+ if ($write_ini_ok) {
+ $script =~ s/install :: (.*)$/install :: $1 install_sax_pureperl/m;
+ $script .= <<"INSTALL";
+
+install_sax_pureperl : pure_install
+\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
+
+INSTALL
+
+ }
+
+ return $script;
+}
+
Index: create.patch.sh
===================================================================
--- create.patch.sh (nonexistent)
+++ create.patch.sh (revision 349)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+VERSION=1.02
+
+tar --files-from=file.list -xzvf ../XML-SAX-$VERSION.tar.gz
+mv XML-SAX-$VERSION XML-SAX-$VERSION-orig
+
+cp -rf ./XML-SAX-$VERSION-new ./XML-SAX-$VERSION
+
+diff --unified -Nr XML-SAX-$VERSION-orig XML-SAX-$VERSION > XML-SAX-$VERSION-no-prompt.patch
+
+mv XML-SAX-$VERSION-no-prompt.patch ../patches
+
+rm -rf ./XML-SAX-$VERSION
+rm -rf ./XML-SAX-$VERSION-orig
Property changes on: create.patch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: file.list
===================================================================
--- file.list (nonexistent)
+++ file.list (revision 349)
@@ -0,0 +1 @@
+XML-SAX-1.02/Makefile.PL