cleanup
[cmdllinux.git] / scripts / _ls_lib_provides_soname.sh
blobde12e2f7da01f8a6a6d1a12b62f7aa32e93da88c
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"'