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}" |
899 |
-b|--no-bindir) prefix=""; argv="$2" ;; |
-b|--no-bindir) prefix=""; argv="$2" ;; |
900 |
esac |
esac |
901 |
|
|
902 |
[[ -z ${argv} ]] && die "No argument given!" |
#[[ -z ${argv} ]] && die "No argument given!" |
903 |
|
|
904 |
confdir="$(dirname ${MCONFIG})" |
confdir="$(dirname ${MCONFIG})" |
905 |
if [[ ! -d ${prefix}/${confdir} ]] |
if [[ ! -d ${prefix}/${confdir} ]] |