Commits

Shlomi Fish  committed a267662

Move tag-release away

  • Participants
  • Parent commits 09ff8d3

Comments (0)

Files changed (4)

File modules/Test-Run-CmdLine/Changes

 Revision history for Test-Run-CmdLine
 
+0.0125     Wed  5 Sep 20:12:26 IDT 2012
+    - Moved away tag-release.pl under scripts to it won't be installed
+    by default.
+
 0.0124     Tue  4 Sep 12:26:01 IDT 2012
     - Explicit dependency on Test::Run::Core-0.0126, due to failing tests
     because of old Test::Runs such as:

File modules/Test-Run-CmdLine/MANIFEST

 MANIFEST
 META.yml # Will be created by "make dist"
 README
+scripts/tag-release.pl
 t/00-load.t
 t/01-class-name.t
 t/02-run.t
 t/07-trap-prove-app.t
 t/08-collect-plugins.t
 t/09-yaml-args.t
-tag-release.pl
 t/data/yaml-test.yml
 t/lib/Test/Run/CmdLine/Drivers/CmdLineTest.pm
 t/lib/Test/Run/CmdLine/Drivers/CollectPluginsBarZed.pm

File modules/Test-Run-CmdLine/scripts/tag-release.pl

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use IO::All;
+
+my ($version) =
+    (map { m{\$VERSION *= *'([^']+)'} ? ($1) : () }
+    io->file('lib/Test/Run/CmdLine.pm')->getlines()
+    )
+    ;
+
+if (!defined ($version))
+{
+    die "Version is undefined!";
+}
+
+my @cmd = (
+    "hg", "tag", "-m",
+    "Tagging the Test-Run-CmdLine release as $version",
+    "releases/modules/Test-Run-CmdLine/$version",
+);
+
+print join(" ", map { /\s/ ? qq{"$_"} : $_ } @cmd), "\n";
+exec(@cmd);
+

File modules/Test-Run-CmdLine/tag-release.pl

-#!/usr/bin/perl
-
-use strict;
-use warnings;
-
-use IO::All;
-
-my ($version) =
-    (map { m{\$VERSION *= *'([^']+)'} ? ($1) : () }
-    io->file('lib/Test/Run/CmdLine.pm')->getlines()
-    )
-    ;
-
-if (!defined ($version))
-{
-    die "Version is undefined!";
-}
-
-my @cmd = (
-    "hg", "tag", "-m",
-    "Tagging the Test-Run-CmdLine release as $version",
-    "releases/modules/Test-Run-CmdLine/$version",
-);
-
-print join(" ", map { /\s/ ? qq{"$_"} : $_ } @cmd), "\n";
-exec(@cmd);
-