From b5d43e74a10e43d00561177f95876da7e7da3495 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 9 Jan 2001 23:33:57 +0000 Subject: - hide the output of cvs commit ChangeLog - give the revision of ChangeLog (aka DrakX version) to output --- tools/addchangelog.pl | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'tools') diff --git a/tools/addchangelog.pl b/tools/addchangelog.pl index eff3e76ea..27befd6d8 100755 --- a/tools/addchangelog.pl +++ b/tools/addchangelog.pl @@ -1,21 +1,18 @@ #!/usr/bin/perl -@ARGV == 2 or die "usage $0: \n"; +@ARGV == 1 or die "usage $0: \n"; -($dir, $script) = @ARGV; +($script) = @ARGV; -chomp(my $cwd = `pwd`); -$script = "$cwd/$script" if $script !~ m|^/|; +$date = (split('/', `grep ChangeLog perl-install/CVS/Entries`))[3]; -chdir $dir; -$date = (split('/', `grep ChangeLog CVS/Entries`))[3]; +@changelog = `(cvs log -d ">$date" mdk-stage1 ; cd perl-install; cvs log -d ">$date") | $script`; +@before = `cat perl-install/ChangeLog`; -@changelog = `cvs log -d ">$date" | $script`; -@before = `cat ChangeLog`; - -print foreach @changelog; - -open F, ">ChangeLog"; +open F, ">perl-install/ChangeLog"; print F foreach @changelog, @before; -system(q(cvs commit -m "New snapshot uploaded" ChangeLog)); +`cvs commit -m '' perl-install/ChangeLog >/dev/null` =~ /new revision: (.*$);/; + +print "$1\n"; +print foreach @changelog; -- cgit v1.2.1