add so func here
This commit is contained in:
parent
9f235fd884
commit
dbba0f74a2
1 changed files with 16 additions and 1 deletions
|
@ -15,7 +15,22 @@ LIBDIR='@libdir@'
|
|||
|
||||
[[ -r ${LIBDIR}/util-msg.sh ]] && source ${LIBDIR}/util-msg.sh
|
||||
|
||||
import ${LIBDIR}/util-pkg.sh
|
||||
# $1: sofile
|
||||
# $2: soarch
|
||||
process_sofile() {
|
||||
# extract the library name: libfoo.so
|
||||
local soname="${1%.so?(+(.+([0-9])))}".so
|
||||
# extract the major version: 1
|
||||
soversion="${1##*\.so\.}"
|
||||
if [[ "$soversion" = "$1" ]] && (($IGNORE_INTERNAL)); then
|
||||
continue
|
||||
fi
|
||||
if ! in_array "${soname}=${soversion}-$2" ${soobjects[@]}; then
|
||||
# libfoo.so=1-64
|
||||
msg "${soname}=${soversion}-$2"
|
||||
soobjects+=("${soname}=${soversion}-$2")
|
||||
fi
|
||||
}
|
||||
|
||||
set -e
|
||||
shopt -s extglob
|
||||
|
|
Loading…
Reference in a new issue