Straffung der gendependics routine

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@4882 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2009-10-23 13:35:00 +00:00
parent 6f5dc8d9b7
commit 131b4bcf6e

View File

@ -339,9 +339,6 @@ GenDependics() {
PKGROOT=$1
cd $PKGROOT
if [ -f /tmp/lddlist_tmp$$ ]; then
rm /tmp/lddlist_tmp$$
fi
if [ -f /tmp/lddlist$$ ]; then
rm /tmp/lddlist$$
fi
@ -349,22 +346,18 @@ GenDependics() {
if file $execfile |grep "LSB executable" &>/dev/null; then
ldd $execfile|\
sed -e "/not a dynamic/d"|\
awk '{print $1}' >>/tmp/lddlist_tmp$$
awk '{print $1}'
elif file $execfile|grep "LSB shared object" &>/dev/null; then
ldd $execfile|\
sed -e "/not a dynamic/d"|\
awk '{print $1}' >>/tmp/lddlist_tmp$$
awk '{print $1}'
fi
done
if [ -f /tmp/lddlist_tmp$$ ]; then
cat /tmp/lddlist_tmp$$|sort -u >/tmp/lddlist$$
rm /tmp/lddlist_tmp$$
done |sort -u >/tmp/lddlist$$
if [ -f /tmp/lddlist$$ ]; then
for i in `cat /tmp/lddlist$$`; do
grep "FN=$i;" $ROOT/var/install/contents|awk -F";" '{print $1}'|sed -e "s/PN=//" >>/tmp/packagelist$$
done
grep "FN=$i;" $ROOT/var/install/contents|awk -F";" '{print $1}'|sed -e "s/PN=//"
done|sort -u
rm /tmp/lddlist$$
sort -u /tmp/packagelist$$
rm /tmp/packagelist$$
fi
cd - >/dev/null
}