Test::Smoke::Patcher

Test::Smoke::Patcher is a OO interface to help patching the source-tree.
Download

Test::Smoke::Patcher Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Abe Timmerman
  • Publisher web site:
  • http://search.cpan.org/~abeltje/WWW-CheckSite-0.018/lib/WWW/CheckSite/Spider.pm

Test::Smoke::Patcher Tags


Test::Smoke::Patcher Description

Test::Smoke::Patcher is a OO interface to help patching the source-tree. Test::Smoke::Patcher is a OO interface to help patching the source-tree.SYNOPSIS use Test::Smoke::Patcher; my $patcher = Test::Smoke::Patcher->new( single => { ddir => $build_dir, pfile => $patch, popts => '-p1', v => 1, # 0..2 }); $patcher->patch;or my $patcher = Test::Smoke::Patcher->new( multi => { ddir => $buildir, pfile => $patch_info, v => 1, #0..2 }); $patcher->patch;Okay, you will need a working patch program, which I believe is available for most platforms perl runs on.There are two ways to initialise the Test::Smoke::Patcher object.single modeThe pfile attribute is a pointer to a single patch. There are four (4) ways to specify that patch.refernece to a SCALARThe scalar holds the complete patch as literal text.reference to an ARRAYThe array holds a list of lines (with newlines) that make up the patch as literal text ($patch = join "", @$array_ref).reference to a GLOBYou passed an opened filehandle to a file containing the patch.filenameIf none of the above apply, it is assumed you passed a filename. Relative paths are rooted at the builddir (ddir attribute).multi modeThe pfile attribute is a pointer to a recource that contains filenames of patches. The format of this recource is one filename per line optionally followed by a semi-colon (;) and switches for the patch program.The patch-resource can also be specified in four (4) ways.reference to a SCALAR reference to an ARRAY reference to a GLOB filename Requirements: · Perl


Test::Smoke::Patcher Related Software