new-func revision bf8267aa453e5d2a735ed732a043b77a0b355b20
f0aad5341752aefe5059832f6cf3abc3283c6e16Tinderbox User# Copyright (C) 2005, 2007, 2012 Internet Systems Consortium, Inc. ("ISC")
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Permission to use, copy, modify, and/or distribute this software for any
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# purpose with or without fee is hereby granted, provided that the above
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# copyright notice and this permission notice appear in all copies.
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# 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
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# PERFORMANCE OF THIS SOFTWARE.
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.
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User $changes->{$changeid}->{category} = $category;
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein@ARGV == 2 || @ARGV == 3 or die "usage: $0 changes-file-1 changes-file-2\n";
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein my $category = $c1->{$c}->{category};
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein my $text = $c1->{$c}->{text};
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein if ($category eq "func" && !exists($c2->{$c}) && !exists($c3->{$c})) {
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein print $c1->{$c}->{text};