Annotation of /branches/mage-next/src/tools/ldd-fix.in
Parent Directory | Revision Log
Revision 87 -
(hide annotations)
(download)
(as text)
Fri Jun 3 16:41:48 2005 UTC (19 years, 3 months ago) by niro
Original Path: trunk/mage/usr/lib/mage/ldd-fix.sh
File MIME type: application/x-sh
File size: 889 byte(s)
Fri Jun 3 16:41:48 2005 UTC (19 years, 3 months ago) by niro
Original Path: trunk/mage/usr/lib/mage/ldd-fix.sh
File MIME type: application/x-sh
File size: 889 byte(s)
fixed -mount
1 | niro | 82 | #!/bin/bash |
2 | niro | 87 | # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/ldd-fix.sh,v 1.2 2005-06-03 16:41:48 niro Exp $ |
3 | niro | 82 | |
4 | if [ -z "$1" ] | ||
5 | then | ||
6 | echo "$(basename $0) /path/to" | ||
7 | exit 1 | ||
8 | fi | ||
9 | |||
10 | PACKAGES_TO_CHECK="" | ||
11 | |||
12 | echo "Checking all files for dynamic link issues ... this may take a while ..." | ||
13 | niro | 87 | for file in $(find $1 -mount -type f) |
14 | niro | 82 | do |
15 | if [ -x ${file} -a ! -L ${file} ] | ||
16 | then | ||
17 | i=$(ldd ${file} | grep 'not found') | ||
18 | if [ -n "${i}" ] | ||
19 | then | ||
20 | #echo " ${file} fix me" | ||
21 | x=$(grep -irl ${file} /var/db/mage/*) | ||
22 | #echo DEBUG:$x | ||
23 | if [ -n "${x}" ] | ||
24 | then | ||
25 | for pkg in ${x} | ||
26 | do | ||
27 | k=$(basename $(dirname ${pkg})) | ||
28 | if [ -z "$(echo ${PACKAGES_TO_CHECK} | grep ${k})" ] | ||
29 | then | ||
30 | PACKAGES_TO_CHECK="${PACKAGES_TO_CHECK} ${k}" | ||
31 | fi | ||
32 | done | ||
33 | else | ||
34 | "no packages found for ${file}" | ||
35 | fi | ||
36 | fi | ||
37 | fi | ||
38 | done | ||
39 | |||
40 | #output | ||
41 | for i in ${PACKAGES_TO_CHECK} | ||
42 | do | ||
43 | echo " ${i}" | ||
44 | done | ||
45 |
Properties
Name | Value |
---|---|
svn:executable | * |