Skip to content

Commit

Permalink
build: sync common files from github_organization_management repository
Browse files Browse the repository at this point in the history
  • Loading branch information
metworkbot committed Feb 10, 2025
1 parent 9c6ae0b commit 98a71ea
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions integration_tests/revert_ldd_not_found.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

function usage() {
echo "revert_ldd.sh /path"
echo " => execute this in a directory and it will try to find who"
echo " need this shared library"
}

if test "$1" = ""; then
usage
exit 1
fi
if test "$1" = "--help"; then
usage
exit 0
fi

for F in $(find . -type f -name "*.so*" ; find . -type f -wholename "*/bin/*"); do
N=$(ldd "${F}" 2>/dev/null |grep "=>" |awk -F '=>' '{print $1;}' |grep -c "$1")
if test "$N" -gt 0; then
echo "${F}"
fi
done

0 comments on commit 98a71ea

Please sign in to comment.