diff options
author | Shlomi Fish <shlomif@shlomifish.org> | 2022-06-13 21:15:53 +0300 |
---|---|---|
committer | Shlomi Fish <shlomif@shlomifish.org> | 2022-06-13 21:15:53 +0300 |
commit | fadd3254690c937d11875b1a4f76856070fec9f2 (patch) | |
tree | cabc38527fcb7ff5daf6c2982e18c4478548ccb3 | |
parent | abe5589f2087b45e1fd64319eb87cec709b5dae8 (diff) |
prepare for a release
-rw-r--r-- | Changes | 3 | ||||
-rw-r--r-- | dist.ini | 7 | ||||
-rw-r--r-- | scripts/tag-release.pl | 21 |
3 files changed, 27 insertions, 4 deletions
@@ -1,5 +1,8 @@ Revision history for Perl extension File-Remove +1.61 2022-06-13 - Shlomi Fish + - Merged https://github.com/shlomif/File-Remove/pull/4 + 1.60 2020-10-22 - Shlomi Fish - Add .tidyallrc + related changes - Fix mismatched $VERSION. @@ -3,10 +3,7 @@ author = Shlomi Fish <shlomif@cpan.org> license = Perl_5 copyright_holder = Gabor Egressy copyright_year = 1998 -version = 1.60 - -[Prereqs] -Pod::Coverage::TrustPod = 0.100005 +version = 1.61 [@Filter] -bundle = @SHLOMIF @@ -18,3 +15,5 @@ repository_url = git://github.com/shlomif/File-Remove.git repository_web = https://github.com/shlomif/File-Remove repository_type = git [Test::TidyAll] +; authordep Pod::Coverage::TrustPod +; authordep Pod::Weaver::PluginBundle::SHLOMIF diff --git a/scripts/tag-release.pl b/scripts/tag-release.pl new file mode 100644 index 0000000..da8cf86 --- /dev/null +++ b/scripts/tag-release.pl @@ -0,0 +1,21 @@ +#! /usr/bin/env perl + +use strict; +use warnings; + +use Path::Tiny qw/ path /; + +my ($version) = + ( map { m{\Aversion * = *(\S+)} ? ($1) : () } + path("./dist.ini")->lines_utf8() ); + +if ( !defined($version) ) +{ + die "Version is undefined!"; +} + +my $DIST = "File-Remove"; +my @cmd = ( "git", "tag", "-m", "Tagging $DIST as $version", "$version", ); + +print join( " ", map { /\s/ ? qq{"$_"} : $_ } @cmd ), "\n"; +exec(@cmd); |