[Lunar-commits] <lunar> Improved lvu links

Peter de Ridder peter at lunar-linux.org
Sun Oct 7 15:15:54 CEST 2012


commit 5becd032b56ec6327f01c1aff2c8d9301ab96b19
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Sun, 02 Sep 2012 13:20:04 -0700
URL: https://github.com/lunar-linux/lunar/commit/5becd032b56ec6327f01c1aff2c8d9301ab96b19

Improved lvu links
---
  prog/lvu | +2/-11    
  1 file changed, 2 insertions(+), 11 deletions(-)

--- a/prog/lvu
+++ b/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
      ;;
 




More information about the Lunar-commits mailing list