dirs="${LIB_DIRS} `cat ${LOCALBASE}/libdata/ldconfig/* 2>/dev/null || :`"
resolv_symlink() {
local file tgt
local file tgt count
file=${1}
if [ ! -L ${file} ] ; then
count=0
echo ${file}
return
fi
tgt=`readlink ${file}`
case $tgt in
/*)
echo $tgt
;;
esac
file=${file%/*}/${tgt}
while [ -L ${file} ]
absolute_path ${file}
do
count=`expr ${count} + 1`
if [ ${count} -gt 10 ]; then
break
file=$tgt;;
*)
file=`absolute_path ${file}`
done
}
absolute_path() {