diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2010-03-01 19:21:30 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2010-03-01 19:21:30 +0000 |
| commit | 5d4454b6757a3bef41d9c265f377cbdde27b01b8 (patch) | |
| tree | 99f38f768d0dae13fd26e7845c3c428971687501 /bin/revdep-rebuild | |
| parent | de2d04cefb6df2d92d38be7b6246e40b3d2251ca (diff) | |
| download | gentoolkit-5d4454b6757a3bef41d9c265f377cbdde27b01b8.tar.gz | |
Fix extended regular expression support in revdep-rebuild
svn path=/trunk/gentoolkit/; revision=747
Diffstat (limited to 'bin/revdep-rebuild')
| -rwxr-xr-x | bin/revdep-rebuild | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/revdep-rebuild b/bin/revdep-rebuild index 1eb4393..8b0dec0 100755 --- a/bin/revdep-rebuild +++ b/bin/revdep-rebuild @@ -18,7 +18,7 @@ unset GREP_OPTIONS # Readonly variables: declare -r APP_NAME="${0##*/}" # The name of this application -declare -r VERSION="svn" +declare -r VERSION="genscripts-r230" declare -r OIFS="$IFS" # Save the IFS declare -r ENV_FILE=0_env.rr # Contains environment variables declare -r FILES_FILE=1_files.rr # Contains a list of files to search @@ -757,8 +757,8 @@ main_checks() { # FIXME: I hate duplicating code # Only rebuild for direct dependencies MISSING_LIBS=$( - expr="/$SONAME_SEARCH/s/^[[:space:]]*\([^[:space:]]*\).*$/\1/p" - sort -u <<< "$ldd_output" | sed -n "$expr" + expr="s/^[[:space:]]*\([^[:space:]]*\).*$/\1/p" + sort -u <<< "$ldd_output" | grep -E "$SONAME | sed -n "$expr" ) REQUIRED_LIBS=$( expr='s/^[[:space:]]*NEEDED[[:space:]]*\([^[:space:]]*\).*/\1/p'; |
