Magellan Linux

Diff of /trunk/depend-tools/discover_libs.sh

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

revision 359 by niro, Mon Mar 27 21:21:04 2006 UTC revision 379 by niro, Mon Jun 5 09:35:36 2006 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  SOURCE="$1"  SOURCE="$1"
4    if [[ $2 = --references ]] || [[ $2 = -r ]]
5    then
6     shift;shift
7     for i in $1
8     do
9     REFERENCES="${REFERENCES} $(< ${i})"
10     done
11    fi
12    
13    COLRED="\033[1;6m\033[31m"
14    COLDEFAULT="\033[0m"
15    
16  not_in_list()  not_in_list()
17  {  {
# Line 75  echo "done" Line 86  echo "done"
86  echo  echo
87  for i in ${ALL_PACKAGES}  for i in ${ALL_PACKAGES}
88  do  do
89   echo "${i}"   if not_in_list "${REFERENCES}" "${i}"
90     then
91     echo "${i}"
92     else
93     echo -e "${COLRED}${i}${COLDEFAULT}"
94     fi
95  done | sort  done | sort
96  echo  echo
97    

Legend:
Removed from v.359  
changed lines
  Added in v.379