new-func revision 70e5a7403f0e0a3bd292b8287c5fed5772c15270
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Permission to use, copy, modify, and/or distribute this software for any
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# purpose with or without fee is hereby granted, provided that the above
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# copyright notice and this permission notice appear in all copies.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# PERFORMANCE OF THIS SOFTWARE.
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic Updater# $Id: new-func,v 1.4 2007/06/19 23:47:24 tbox Exp $
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Given two CHANGES files, list [bug] entries present in the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# first one but not in the second one.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Read the CHANGES file $fn and return a hash of change
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# texts and categories indexed by change number.
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic Updater $changes->{$changeid}->{category} = $category;
38417cbfb1a328c20b5b723b8584a02c57f88897Automatic Updater@ARGV == 2 || @ARGV == 3 or die "usage: $0 changes-file-1 changes-file-2\n";
98b5a9d1099f72169c90de39712fc4f63e9d990eAutomatic Updaterforeach my $c (sort {$a <=> $b} keys %$c1) {
c6d486af36165da7eb970354981d145249e342e4Mark Andrews my $text = $c1->{$c}->{text};
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein if ($category eq "func" && !exists($c2->{$c}) && !exists($c3->{$c})) {
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein print $c1->{$c}->{text};