summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-06-27 13:25:26 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-06-27 13:25:26 +0200
commitdb6e031170896bd100c94e2ec50905e56a4da167 (patch)
tree1172c7d64f0ac6504f2dc48073e543e1633d4a1a
parent13b9dcdf70eb95c74e8971122bbe5b268b81bd50 (diff)
Remove useless git version magic from Build.PL, update gitignore
-rw-r--r--.gitignore1
-rw-r--r--Build.PL12
2 files changed, 4 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index a8f36dc..189304f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/MANIFEST.SKIP
/MANIFEST.SKIP.bak
/MYMETA.yml
+/MYMETA.json
diff --git a/Build.PL b/Build.PL
index 827db39..9595edd 100644
--- a/Build.PL
+++ b/Build.PL
@@ -4,7 +4,8 @@ use strict;
use warnings;
use Module::Build;
-my %opts = (
+Module::Build->new(
+
build_requires => {
'Test::More' => 0,
'Test::Compile' => 0,
@@ -20,12 +21,5 @@ my %opts = (
'XML::LibXML' => 0,
'WWW::Mechanize' => 0,
},
-);
-
-if (-d '.git' and qx{which git} =~ qr{/git$}) {
- $opts{'dist_version'} = qx{git describe};
- chomp $opts{'dist_version'};
-}
-my $build = Module::Build->new(%opts);
-$build->create_build_script;
+)->create_build_script();