Magellan Linux

Diff of /branches/mage-next/src/tools/autodepend.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/mage/usr/lib/mage/autodepend.sh revision 1954 by niro, Fri Oct 12 13:02:10 2012 UTC branches/mage-next/src/tools/autodepend.sh revision 2546 by niro, Wed Jan 29 11:40:50 2014 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    # $Id$
3    
4  SCANELF="scanelf -LnyRB"  SCANELF="scanelf -LnyRB"
5  BINDIR="$1"  BINDIR="$1"
# Line 29  build_dep_list() Line 30  build_dep_list()
30    
31   # if /lib /lib64 are symlinks than add a prefix to honor usr-move   # if /lib /lib64 are symlinks than add a prefix to honor usr-move
32   if [[ -L /lib ]] || [[ -L /lib64 ]]   if [[ -L /lib ]] || [[ -L /lib64 ]]
33   then     then
34   prefix="/usr"   prefix="/usr"
35   fi   fi
36    
37   for soname in ${SONAME_LIST}   for soname in ${SONAME_LIST}
38   do   do
39   deps+=" $(magequery -e ${soname})"   deps+=" $(magequery -e ${prefix}${soname})"
40   done   done
41   DEPNAME_LIST="$(for i in ${deps}; do echo ${i}; done | sort -u)"   DEPNAME_LIST="$(for i in ${deps}; do echo ${i}; done | sort -u)"
42   export DEPNAME_LIST   export DEPNAME_LIST

Legend:
Removed from v.1954  
changed lines
  Added in v.2546