619 |
# prefer scanelf |
# prefer scanelf |
620 |
if [[ -x $(type -P scanelf) ]] |
if [[ -x $(type -P scanelf) ]] |
621 |
then |
then |
622 |
local soname="$(scanelf -SB ${file} | cut -d' ' -f2)" |
local soname="$(scanelf -qBF '%S#p' ${file})" |
623 |
ln ${verbose} -snf $(basename ${file}) ${BINDIR}/${dest}/${soname} || die |
ln ${verbose} -snf $(basename ${file}) ${BINDIR}/${dest}/${soname} || die |
624 |
else |
else |
625 |
echo -e "${COLYELLOW}minstalllib(): Warning: scanelf not found, using fallback symlink method${COLDEFAULT}" |
echo -e "${COLYELLOW}minstalllib(): Warning: scanelf not found, using fallback symlink method${COLDEFAULT}" |
698 |
fi |
fi |
699 |
|
|
700 |
[[ -z ${dest} ]] && die "No dest given." |
[[ -z ${dest} ]] && die "No dest given." |
701 |
[[ ! -e ${BINDIR}/${dest} ]] && die "${BINDIR}/${dest} does not exist." |
if [[ ! -e ${BINDIR}/${dest} ]] || [[ ! -L ${BINDIR}/${dest} ]] |
702 |
|
then |
703 |
|
die "${BINDIR}/${dest} does not exist." |
704 |
|
if |
705 |
|
|
706 |
rm -v ${opts} ${BINDIR}/${dest} || die |
rm -v ${opts} ${BINDIR}/${dest} || die |
707 |
} |
} |