Magellan Linux

Diff of /trunk/mage/usr/lib/mage/ldd-fix.sh

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

revision 1781 by niro, Wed Jul 14 17:37:07 2010 UTC revision 1782 by niro, Mon Mar 12 23:23:02 2012 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Id$  # $Id$
3    
4  if [ -z "$1" ]  if [ -z "$@" ]
5  then  then
6   echo "$(basename $0) /path/to"   echo "$(basename $0) /path/to"
7   exit 1   exit 1
# Line 13  PACKAGES_TO_CHECK="" Line 13  PACKAGES_TO_CHECK=""
13  export LC_ALL=C  export LC_ALL=C
14    
15  echo "Checking all files for dynamic link issues ... this may take a while ..."  echo "Checking all files for dynamic link issues ... this may take a while ..."
16  for file in $(find $1 -mount -type f)  for file in $(find $@ -mount -type f)
17  do  do
18   if [ -x ${file} -a ! -L ${file} ]   if [ -x ${file} -a ! -L ${file} ]
19   then   then

Legend:
Removed from v.1781  
changed lines
  Added in v.1782