summaryrefslogtreecommitdiffstats
path: root/tools/addchangelog.pl
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-01-09 23:33:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-01-09 23:33:57 +0000
commitb5d43e74a10e43d00561177f95876da7e7da3495 (patch)
tree5552c6fdf05530bc2c2e18aab4f24435c3065697 /tools/addchangelog.pl
parent3495f2ee59adf0432f9f8ae4ddadbc77f5b9e503 (diff)
downloaddrakx-b5d43e74a10e43d00561177f95876da7e7da3495.tar
drakx-b5d43e74a10e43d00561177f95876da7e7da3495.tar.gz
drakx-b5d43e74a10e43d00561177f95876da7e7da3495.tar.bz2
drakx-b5d43e74a10e43d00561177f95876da7e7da3495.tar.xz
drakx-b5d43e74a10e43d00561177f95876da7e7da3495.zip
- hide the output of cvs commit ChangeLog
- give the revision of ChangeLog (aka DrakX version) to output
Diffstat (limited to 'tools/addchangelog.pl')
-rwxr-xr-xtools/addchangelog.pl23
1 files changed, 10 insertions, 13 deletions
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: <dir> <cvslog2changelog script>\n";
+@ARGV == 1 or die "usage $0: <cvslog2changelog script>\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;