Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: debian.chrome/scripts/misc/insert-changes.pl

Issue 646032: Rename config to match naming convention. (Closed)
Patch Set: Send mail Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/perl -w
2
3 my $debian;
4 $debian = $ARGV[0] if (defined $ARGV[0]);
5 $debian = 'debian.chrome' if (!defined $debian);
6
7 system("make -s -f $debian/rules printchanges > $debian/changes");
8
9 open(CHANGELOG, "< $debian/changelog") or die "Cannot open changelog";
10 open(CHANGES, "< $debian/changes") or die "Cannot open new changes";
11 open(NEW, "> $debian/changelog.new") or die "Cannot open new changelog";
12
13 $printed = 0;
14
15 while (<CHANGELOG>) {
16 if (/^ CHANGELOG: /) {
17 next if $printed;
18
19 while (<CHANGES>) {
20 print NEW;
21 }
22
23 $printed = 1;
24 } else {
25 print NEW;
26 }
27 }
28
29 close(NEW);
30 close(CHANGES);
31 close(CHANGELOG);
32
33 rename("$debian/changelog.new", "$debian/changelog");
34 unlink("$debian/changes");
OLDNEW
« no previous file with comments | « debian.chrome/scripts/misc/git-ubuntu-log ('k') | debian.chrome/scripts/misc/insert-ubuntu-changes » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698