Permalink
Browse files

Improved lvu links

  • Loading branch information...
cavalier38 committed Sep 2, 2012
1 parent 963f08e commit 5becd032b56ec6327f01c1aff2c8d9301ab96b19
Showing with 2 additions and 11 deletions.
  1. +2 −11 prog/lvu
View
@@ -1571,19 +1571,10 @@ main() {
links)
[[ -z "$2" ]] && return 1
- REGEX=""
- for LINK in `lvu install $2 | xargs file | awk -F: '/ELF/ { print $1 }' | xargs ldd | egrep -v ':$' | cut -d' ' -f3 | sort | uniq`
- do
- if [[ -z $REGEX ]]
- then
- REGEX="($LINK)"
- else
- REGEX="${REGEX}|($LINK)"
- fi
- done
+ REGEX=$(lvu install $2 | xargs file | awk -F: '/ELF/ { print $1 }' | xargs ldd | fgrep '=>' | cut -d' ' -f3 | sort | uniq)
pushd $INSTALL_LOGS >/dev/null
- egrep -l "$REGEX" *
+ fgrep -xl "$REGEX" *
popd >/dev/null
;;

0 comments on commit 5becd03

Please sign in to comment.