Commit 568586af authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Khalid Elmously

UBUNTU: [Package] add support for specifying the primary makefile

BugLink: https://bugs.launchpad.net/bugs/1786013Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent afb2fbdf
#!/usr/bin/perl #!/usr/bin/perl
if ($#ARGV != 2) { if ($#ARGV != 2 && $#ARGV != 3) {
die "Usage: $0 <changelog> <stop at> <start at>\n"; die "Usage: $0 <changelog> <stop at> <start at> [<source changelog>]\n";
} }
my ($changelog, $end, $start) = @ARGV; if ($#ARGV == 2) {
push(@ARGV, "debian.master/changelog")
}
my ($changelog, $end, $start, $source_changelog) = @ARGV;
$end =~ s/^\D+//; $end =~ s/^\D+//;
$start =~ s/^\D+//; $start =~ s/^\D+//;
...@@ -32,7 +35,7 @@ sub version_cmp($$) { ...@@ -32,7 +35,7 @@ sub version_cmp($$) {
my @changes = (); my @changes = ();
my $output = 0; my $output = 0;
open(CHG, "<debian.master/changelog") || open(CHG, "<$source_changelog") ||
open(CHG, "<debian/changelog") || open(CHG, "<debian/changelog") ||
die "$0: debian/changelog: open failed - $!\n"; die "$0: debian/changelog: open failed - $!\n";
while (<CHG>) { while (<CHG>) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment