Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #26 from cavalier38/lvu-links

Lvu links
  • Loading branch information...
commit dff7d4e54fa7504a96f0d8b2a981c0ef31c5558d 2 parents 5be9539 + e3f0f71
@Ratler Ratler authored
Showing with 3 additions and 11 deletions.
  1. +1 −0  misc/protected
  2. +2 −11 prog/lvu
View
1  misc/protected
@@ -7,6 +7,7 @@ bin/cp
bin/cut
bin/date
bin/dirname
+bin/fgrep
bin/file
bin/grep
bin/install
View
13 prog/lvu
@@ -1574,19 +1574,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
;;
Please sign in to comment.
Something went wrong with that request. Please try again.