diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-12-19 23:36:25 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-12-19 23:36:25 +0000 |
commit | aa526f6a34933327bd78007cf05c4117d568bb36 (patch) | |
tree | 3a4c0664828840b6f8e27bb5e09d7583d7f22570 /tools/addchangelog.pl | |
parent | 19680f5f4fbd3b662f7ddcc6fadb828beac33f7b (diff) | |
download | drakx-aa526f6a34933327bd78007cf05c4117d568bb36.tar drakx-aa526f6a34933327bd78007cf05c4117d568bb36.tar.gz drakx-aa526f6a34933327bd78007cf05c4117d568bb36.tar.bz2 drakx-aa526f6a34933327bd78007cf05c4117d568bb36.tar.xz drakx-aa526f6a34933327bd78007cf05c4117d568bb36.zip |
tools to auto generate the ChangeLog and the mail to changelog
Diffstat (limited to 'tools/addchangelog.pl')
-rwxr-xr-x | tools/addchangelog.pl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/addchangelog.pl b/tools/addchangelog.pl new file mode 100755 index 000000000..eff3e76ea --- /dev/null +++ b/tools/addchangelog.pl @@ -0,0 +1,21 @@ +#!/usr/bin/perl + +@ARGV == 2 or die "usage $0: <dir> <cvslog2changelog script>\n"; + +($dir, $script) = @ARGV; + +chomp(my $cwd = `pwd`); +$script = "$cwd/$script" if $script !~ m|^/|; + +chdir $dir; +$date = (split('/', `grep ChangeLog CVS/Entries`))[3]; + +@changelog = `cvs log -d ">$date" | $script`; +@before = `cat ChangeLog`; + +print foreach @changelog; + +open F, ">ChangeLog"; +print F foreach @changelog, @before; + +system(q(cvs commit -m "New snapshot uploaded" ChangeLog)); |