#!/bin/csh -f
#
# |-----------------------------------------------------------|
# | Copyright (c) 1991, 1990 MIPS Computer Systems, Inc.      |
# | All Rights Reserved                                       |
# |-----------------------------------------------------------|
# |          Restricted Rights Legend                         |
# | Use, duplication, or disclosure by the Government is      |
# | subject to restrictions as set forth in                   |
# | subparagraph (c)(1)(ii) of the Rights in Technical        |
# | Data and Computer Software Clause of DFARS 252.227-7013.  |
# |         MIPS Computer Systems, Inc.                       |
# |         950 DeGuigne Avenue                               |
# |         Sunnyvale, California 94088-3650, USA             |
# |-----------------------------------------------------------|
#
# $Header: find_candidate,v 1.3.2.1 92/06/24 14:14:47 marker Exp $
set base1=$1:t
set base2=$2:t
   comm -12 ext.$base1:r ext.$base2:r | sed -e 's/	.*//' -e 's/\.$/.o/' | sort | uniq > candidate.$base1:r
   comm -12 __ext.$base1:r __ext.$base2:r | sed -e 's/	.*//' -e 's/\.$/.o/' | sort | uniq > __candidate.$base1:r
   cat *candidate.$base1:r | sort | uniq
   exit 0
