repo.or.cz
/
cmdllinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
improve some other setuptool
[cmdllinux.git]
/
scripts
/
_ls_lib_provides_soname.sh
blob
de12e2f7da01f8a6a6d1a12b62f7aa32e93da88c
1
if
[ !
-z
"
$1
"
];
then
2
DIR
=
"
$1
"
3
[ !
-d
"
$DIR
"
] &&
echo
"No such directory"
&&
exit
1
4
cd
"
$DIR
"
5
fi
6
_findbin |
xargs
-r -i
sh
-c
'SONAME=$(readelf -d {} | grep " 0x[0-9a-f]\+ (SONAME)" | grep -o "\[.*\]"); [ ! -z "
$SONAME
" ] && echo "{}
$SONAME
"'