12345678910111213141516171819202122232425262728 |
- #!/usr/bin/env sh
-
-
- check () {
- regex="lib$1.+(so|dylib)"
-
-
-
- PATH="$PATH:/sbin"
- export PATH
-
-
- for dir in /lib /usr/lib /usr/local/lib /opt/local/lib /usr/lib/x86_64-linux-gnu /usr/lib/i386-linux-gnu; do
- if test -d $dir; then
-
- ls $dir | grep -E "$regex" && return 0
- fi
- done
-
- return 1
- }
-
- check "$1" > /dev/null
- if test "$?" -eq 0; then
- echo true
- else
- echo false
- fi
|