Changeset 862 in MondoRescue for branches/stable/mindi/mindi


Ignore:
Timestamp:
Oct 1, 2006, 11:55:54 AM (18 years ago)
Author:
Bruno Cornec
Message:

Try again to fix the ReadAllLink issue (libs do not go in the archive now as reported by Andree)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r861 r862  
    11171117
    11181118    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
    11201124        echo "$link `ReadAllLink $link`"
    11211125    else
     
    11241128    fi 
    11251129}
    1126 
    11271130
    11281131LocateFile() {
     
    23312334        incoming=`echo "$incoming" | sed '/[[:blank:]]*.*[[:blank:]]*=>[[:blank:]]*(.*/d ; s/[[:blank:]]*.*[[:blank:]]*=>[[:blank:]]*\(\/.*\)/\1/ ; s/[[:blank:]]*\(\/.*\)[[:blank:]]*(.*/\1/'`
    23322335        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`"
    23562337        done
    23572338        read incoming
Note: See TracChangeset for help on using the changeset viewer.