- Timestamp:
- Oct 1, 2006, 11:55:54 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r861 r862 1117 1117 1118 1118 link=`readlink $file` 1119 if [ "`dirname $link | cut -c1`" = "/" ]; then 1119 d=`dirname $file` 1120 if [ ! -e "$link" -a ! -e "$d/$link" ]; then 1121 echo "Problem with dead link on $file -> $link" >> $LOGFILE 1122 fi 1123 if [ "`echo $link | cut -c1`" = "/" ]; then 1120 1124 echo "$link `ReadAllLink $link`" 1121 1125 else … … 1124 1128 fi 1125 1129 } 1126 1127 1130 1128 1131 LocateFile() { … … 2331 2334 incoming=`echo "$incoming" | sed '/[[:blank:]]*.*[[:blank:]]*=>[[:blank:]]*(.*/d ; s/[[:blank:]]*.*[[:blank:]]*=>[[:blank:]]*\(\/.*\)/\1/ ; s/[[:blank:]]*\(\/.*\)[[:blank:]]*(.*/\1/'` 2332 2335 for f in `echo "$incoming"` ; do 2333 echo "$f" 2334 if [ -h "$f" ]; then 2335 g=`readlink $f` 2336 if [ -e "$g" ]; then 2337 echo "$g" 2338 else 2339 if [ "`echo $g | cut -c1`" != "/" ] ; then 2340 # that link is in the same dir 2341 g="`dirname $f`/$g" 2342 if -e "$g" ]; then 2343 echo "$g" 2344 else 2345 echo "Problem with ldd on $f" >> $LOGFILE 2346 fi 2347 else 2348 echo "Problem with ldd on $f" >> $LOGFILE 2349 fi 2350 fi 2351 else 2352 if [ ! -e "$f" ]; then 2353 echo "Problem with ldd on $f" >> $LOGFILE 2354 fi 2355 fi 2336 echo "$f `ReadAllLink $f`" 2356 2337 done 2357 2338 read incoming
Note:
See TracChangeset
for help on using the changeset viewer.