Debian Codegraph @

scripts/tag-release.pl

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