#!/bin/sh
#   Copyright (C) 1996-1997 by Haruo Yokota,
#     Japan Advanced Inst. of Sci. and Tech.,
#     1-1 Asahidai, Tatsunokuchi, Ishikawa 923-12, Japan.

KLIC_COMP=/usr/lang/klic-3.001/compiler

while :
do
	case $1 in
		-D)  shift
		     KLIC_COMP=$1
		     shift;;
		*)    break;;
	esac
done

N=$#
while :
do
	echo [ $N ] " ---" $1 "---"
	echo  $1  ::: $KLIC_COMP/$1
	./diff $1 $KLIC_COMP/$1
	N=`expr $N - 1`
	if [ $N -eq 0 ] ; then break
	else shift
	fi
done
