blob: 808f410e1c0a0af79441ab4d40bd7d9e64d8960a (
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
25
26
27
28
29
|
#!/bin/sh
#
# Copyright 1998 - 2000 Double Precision, Inc. See COPYING for
# distribution information.
DIR="$1"
REALDIR="$2"
SOFTLINK=""
echo "rmsoftlinks $DIR $REALDIR"
for component in `echo $REALDIR | tr '-' ' '`
do
if test "$SOFTLINK" = ""
then
SOFTLINK="$component"
else
SOFTLINK="$SOFTLINK""-$component"
fi
if test "$SOFTLINK" != "$REALDIR"
then
test -f $DIR/$SOFTLINK/LANGUAGE && continue
echo rm -f $DIR/$SOFTLINK
rm -f $DIR/$SOFTLINK
fi
done
|