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