#!/bin/bash # # # 23-Aug-05 amo Date-of-Birth # 27-Aug-05 amo Create DIR # # # CMD="$1" # DIR=" /lib /usr/lib /usr/X11R6/lib /opt/kde/lib /mnt/loop2/usr/lib /mnt/loop2/usr/lib/qt-3.3.3/lib " # # # List of Libraries # ----------------- find $DIR \( -type f -o -type l \) -maxdepth 1 | sort > /tmp/lib.txt # # # # ldd /usr/X11R6/bin/X # ldd /usr/X11R6/bin/xterm # echo "#" echo "# dir=$DIR " echo "#" echo "# ldd $CMD | cut -d \" \" -f 1 " echo "#" # LIBS=`ldd $CMD | cut -d " " -f 1 | sort` # for lib in $LIBS do # grep "$lib" /tmp/lib.txt stat="$?" # if [ $stat != 0 ]; then # echo "# ERROR: Could not find $lib " # fi # done # # echo "#" echo "# done" echo "#" # # # End of file