Update of /cvsroot/fink/experimental/rangerrick
In directory usw-pr-cvs1:/tmp/cvs-serv13704

Added Files:
        deplist.sh 
Log Message:
a little script to list the dependencies of a package


--- NEW FILE: deplist.sh ---
#!/bin/sh

clear
echo "checking for libraries..."
LIBS=`(dpkg -L $* 2>/dev/null | grep -E '(dylib|so|bundle)$'; dpkg -L $* 2>/dev/null | 
grep '/bin/') | sort | uniq`
echo "scanning library dependencies..."
DEPS=`otool -L $LIBS 2>/dev/null | grep -v : | awk '{ print $1 }' | sort | uniq`
echo "backtracking packages..."
PACKAGES=`dpkg --search $DEPS 2>/dev/null | awk -F: '{ print $1 }' | sort | uniq`

echo ""
echo "Packages:"
for PACK in $PACKAGES; do
        echo "  $PACK"
done
echo ""



-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to