--- trunk/depend-tools/discover_libs.sh 2006/05/30 17:02:30 378 +++ trunk/depend-tools/discover_libs.sh 2006/06/05 09:35:36 379 @@ -1,6 +1,17 @@ #!/bin/bash SOURCE="$1" +if [[ $2 = --references ]] || [[ $2 = -r ]] +then + shift;shift + for i in $1 + do + REFERENCES="${REFERENCES} $(< ${i})" + done +fi + +COLRED="\033[1;6m\033[31m" +COLDEFAULT="\033[0m" not_in_list() { @@ -75,7 +86,12 @@ echo for i in ${ALL_PACKAGES} do - echo "${i}" + if not_in_list "${REFERENCES}" "${i}" + then + echo "${i}" + else + echo -e "${COLRED}${i}${COLDEFAULT}" + fi done | sort echo