#!/bin/sh
# $Id: lstsoftlinks,v 1.1 2000/03/07 07:06:38 mrsam Exp $
#
# Copyright 1998 - 1999 Double Precision, Inc.  See COPYING for
# distribution information.

for f in $*
do
	SOFTLINK=""
	for component in `echo $f | tr '-' ' '`
	do
		if test "$SOFTLINK" = ""
		then
			SOFTLINK="$component"
		else
			SOFTLINK="$SOFTLINK""-$component"
		fi

		if test -f $SOFTLINK/LANGUAGE
		then
			test `cat $SOFTLINK/LANGUAGE` = $SOFTLINK && continue
		fi
		echo $SOFTLINK
	done
done
