#!/bin/sh
usage()
{
echo "********************************************"
echo "it's for search libs that program depeend"
echo "usage: sh search_depeend_libs xxx"
echo "eg: sh search_depend_libs rdesktop"
echo "********************************************"
exit
}
num=$#
if [ ${num} != 1 ];then
usage
fi
mkdir libs
LIBS=`ldd $1 | awk -F ' ' '{print $3}'`
cp -vf $LIBS ./libs
for i in $LIBS
do
tmp=`ldd $i | awk -F ' ' '{print $3}'`
echo $tmp
if [ -z $tmp ] ; then
echo "null"
else
cp -vf $tmp ./libs
fi
done
阅读(773) | 评论(0) | 转发(0) |