From 95dfe50f34f7a41b5660288e9160717c59c38c86 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 2 Dec 2009 16:21:47 +0100 Subject: [PATCH] build script and rules --- .gitignore | 6 ++++++ Build.PL | 25 +++++++++++++++++++++++++ lib/File/Rewrite.pm | 3 ++- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100755 Build.PL diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..27649bd --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/_build/ +/Build +/META.yml +/MANIFEST +/blib/ +/cover_db/ diff --git a/Build.PL b/Build.PL new file mode 100755 index 0000000..44c1b62 --- /dev/null +++ b/Build.PL @@ -0,0 +1,25 @@ +#!/usr/bin/env perl +use strict; +use warnings; + +use Module::Build; + +Module::Build->new( + module_name => 'File::Rewrite', + dynamic_config => 0, + license => 'perl', + requires => { + 'perl' => '5.006', # probably, only 5.8+ tested + 'autodie' => 0, + }, + build_requires => { + 'File::Temp' => 0, + 'Test::NoWarnings' => 0, + }, + meta_merge => { + resources => { + repository => 'git://git.shiar.nl/file-rewrite', + }, + }, +)->create_build_script; + diff --git a/lib/File/Rewrite.pm b/lib/File/Rewrite.pm index 90c30f4..7319259 100644 --- a/lib/File/Rewrite.pm +++ b/lib/File/Rewrite.pm @@ -6,6 +6,7 @@ use warnings; use autodie ':all'; use Exporter 'import'; +our $VERSION = '1.00'; our @EXPORT_OK = qw(fileset); sub fileset { @@ -66,7 +67,7 @@ sub fileset { =head1 NAME -File::Rewrite +File::Rewrite - Append and/or strip lines from text files =head1 SYNOPSIS -- 2.30.0