summaryrefslogtreecommitdiffstats
path: root/sqwebmail/html/lstsoftlinks
blob: 7bf76900ab92ee25f6c587f8bb79e4e42aa52205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# 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