]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - debian/scripts/misc/insert-changes.pl
4 $droot = $ARGV[0] if (defined $ARGV[0]);
5 $droot = 'debian' if (!defined $droot);
6 $debian = $ARGV[1] if (defined $ARGV[1]);
7 $debian = 'debian.master' if (!defined $debian);
9 system("make -s -f $droot/rules printchanges > $debian/changes");
11 open(CHANGELOG
, "< $debian/changelog") or die "Cannot open changelog";
12 open(CHANGES
, "< $debian/changes") or die "Cannot open new changes";
13 open(NEW
, "> $debian/changelog.new") or die "Cannot open new changelog";
18 if (/^ CHANGELOG: /) {
35 rename("$debian/changelog.new", "$debian/changelog");
36 unlink("$debian/changes");