summaryrefslogtreecommitdiff
path: root/bin/release-to-athena
blob: 0147febca45de47dcfd5870008041083f55c39b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl

use 5.028;
use strict;
use warnings;

use autodie ":all";
use Term::UI;

system qw(dgit sbuild --no-run-lintian);

my $term = Term::ReadLine->new("brand");
exit unless $term->ask_yn(prompt => "run athena-apt-add and git tag?");

chomp(my $version = `dpkg-parsechangelog -SVersion`);
chomp(my $package = `dpkg-parsechangelog -SSource`);
system "athena-apt-add", "../${package}_${version}_multi.changes";
system qw(gbp buildpackage --git-tag-only --git-ignore-branch);