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:
parent
6f5dc8d9b7
commit
131b4bcf6e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user