diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2008-11-24 19:10:42 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2008-11-24 19:10:42 +0000 |
| commit | fa02817a18274f2c7af07032814dc35a2a6daf21 (patch) | |
| tree | ae86c22d5372b2f050d8a920ad9ed5f224e0176d /trunk/src | |
| parent | b3f8e5db24c5e85f9e62ccb825b0b86d7697b1c9 (diff) | |
| download | gentoolkit-fa02817a18274f2c7af07032814dc35a2a6daf21.tar.gz | |
Added patch from igli to fix find command.
svn path=/; revision=521
Diffstat (limited to 'trunk/src')
| -rwxr-xr-x | trunk/src/revdep-rebuild/revdep-rebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index 3ffe904..315f31c 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -123,6 +123,7 @@ rm() { eerror "I was instructed to rm '$@'" die 1 "Refusing to delete anything before changing to temporary directory." } +: <<'EW' ## # GNU find has -executable, but if our users' finds do not have that flag # we emulate it with this function. Also emulates -writable and -readable. @@ -158,6 +159,7 @@ find() { fi find "$@" } +EW print_usage() { cat << EOF @@ -633,8 +635,8 @@ get_files() { findMask="${findMask[@]/#/-o -path }" findMask="( ${findMask#-o } ) -prune -o" fi - # TODO: Check this - find ${SEARCH_DIRS[@]} $findMask -type f \( -executable -o \ + # TODO: Check this -- afaict SEARCH_DIRS isn't an array, so this should just be $SEARCH_DIRS? + find ${SEARCH_DIRS[@]} $findMask -type f \( -perm -u+x -o -perm -g+x -o -perm -o+x -o \ -name '*.so' -o -name '*.so.*' -o -name '*.la' \) -print 2> /dev/null | sort -u > "$FILES_FILE" || die $? "find failed to list binary files (This is a bug.)" |
