Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Lvu links #26

Merged
merged 2 commits into from

2 participants

@cavalier38

No description provided.

@Ratler Ratler merged commit dff7d4e into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 2, 2012
  1. @cavalier38

    Improved lvu links

    cavalier38 authored
  2. @cavalier38

    Added fgrep to protected

    cavalier38 authored
This page is out of date. Refresh to see the latest.
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
@@ -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
;;
Something went wrong with that request. Please try again.