Last change
on this file since 37aaf89 was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100755
|
File size:
424 bytes
|
Rev | Line | |
---|
[c5c522c] | 1 | #!/bin/bash |
---|
| 2 | #find all packages that binary depend on specified library.so file |
---|
| 3 | |
---|
| 4 | LIB=$1 |
---|
| 5 | |
---|
| 6 | [ "$1" ] || exit 1 |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | INDEX=.bindeps |
---|
| 10 | |
---|
| 11 | if ! [ -e $INDEX ] || [ "$LIB" == "--update" ]; then |
---|
| 12 | echo "Updating index:" |
---|
| 13 | rm $INDEX.tmp 2>/dev/null |
---|
| 14 | find -type f -name '*.pkg' |while read PKG; do |
---|
| 15 | echo "Checking $PKG" |
---|
| 16 | ./showbindeps $PKG >> $INDEX.tmp |
---|
| 17 | done |
---|
| 18 | mv $INDEX.tmp $INDEX |
---|
| 19 | fi |
---|
| 20 | |
---|
| 21 | [ "$LIB" == "--update" ] && exit 0 |
---|
| 22 | |
---|
| 23 | grep "$LIB" $INDEX |
---|
Note: See
TracBrowser
for help on using the repository browser.