Shlomi Fish avatar Shlomi Fish committed a267662

Move tag-release away

Comments (0)

Files changed (4)

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:

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

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);
+

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);
-
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.