Debian Codegraph @

scripts/tag-release.pl

raw symbols SCIP
1 #! /usr/bin/env perl
2
3 use strict;
4 use warnings;
5
6 use Path::Tiny qw/ path /;
7
8 my ($version) =
9 ( map { m{\$VERSION *= *'([^']+)'} ? ($1) : () }
10 path("./lib/Config/IniFiles/")->lines_utf8() );
11
12 if ( !defined($version) )
13 {
14 die "Version is undefined!";
15 }
16
17 my $DIST = "Config-IniFiles";
18 my $TAG = "releases/$version";
19
20 my @cmd =
21 ( "git", "tag", "-m", "Tagging the $DIST release as $version", "$TAG", );
22
23 print join( " ", map { /\s/ ? qq{"$_"} : $_ } @cmd ), "\n";
24 exec(@cmd);