--- a/revdep-rebuild.sh 2017-12-29 22:44:09.298998714 +0100 +++ a/revdep-rebuild.sh 2017-12-29 22:47:44.427490406 +0100 @@ -1,7 +1,7 @@ #!/bin/bash -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation -# revdep-rebuild: Reverse dependency rebuilder. +# revdep-rebuild.sh: Reverse dependency rebuilder. # Original Author: Stanislav Brabec # Rewrite Author: Michael A. Smith # Current Maintainer: Paul Varner @@ -17,7 +17,7 @@ unset GREP_OPTIONS # Readonly variables: -declare -r APP_NAME="revdep-rebuild" # # The name of this application +declare -r APP_NAME="revdep-rebuild.sh" # # The name of this application declare -r VERSION="git" declare -r OIFS="$IFS" # Save the IFS declare -r ENV_FILE=0_env.rr # Contains environment variables @@ -62,15 +62,15 @@ declare EMERGE_OPTIONS # Array of options to pass to portage declare PORTAGE_NICENESS # Renice to this value declare PORTAGE_ROOT # The root path for portage -declare REVDEP_REBUILD_DEFAULT_OPTS # String of default emerge options for revdep-rebuild +declare REVDEP_REBUILD_DEFAULT_OPTS # String of default emerge options for revdep-rebuild.sh # Customizable incremental variables: # These variables can be prepended to either by setting the variable in # your environment prior to execution, or by placing an entry in -# /etc/make.conf. +# /etc/portage/make.conf. # # An entry of "-*" means to clear the variable from that point forward. -# Example: env SEARCH_DIRS="/usr/bin -*" revdep-rebuild will set SEARCH_DIRS +# Example: env SEARCH_DIRS="/usr/bin -*" revdep-rebuild.sh will set SEARCH_DIRS # to contain only /usr/bin declare LD_LIBRARY_MASK # Mask of specially evaluated libraries declare SEARCH_DIRS # List of dirs to search for executables and libraries @@ -336,7 +336,7 @@ echo "Encountered unrecognized option $1." >&2 echo echo "$APP_NAME no longer automatically passes unrecognized options to portage." - echo "Separate emerge-only options from revdep-rebuild options with the -- flag." + echo "Separate emerge-only options from revdep-rebuild.sh options with the -- flag." echo echo "For example, $APP_NAME -v -- --ask" echo @@ -1072,7 +1072,7 @@ fi } -# Get multiple portage variables at once to speedup revdep-rebuild. +# Get multiple portage variables at once to speedup revdep-rebuild.sh. portage_settings() { local ORIG_SEARCH_DIRS="$SEARCH_DIRS" local ORIG_SEARCH_DIRS_MASK="$SEARCH_DIRS_MASK" @@ -1126,7 +1126,7 @@ # Read the incremental variables from environment and portage # Until such time as portage supports these variables as incrementals - # The value will be what is in /etc/make.conf + # The value will be what is in /etc/portage/make.conf # SEARCH_DIRS+=" "$(unset SEARCH_DIRS; portageq envvar SEARCH_DIRS) # SEARCH_DIRS_MASK+=" "$(unset SEARCH_DIRS_MASK; portageq envvar SEARCH_DIRS_MASK) # LD_LIBRARY_MASK+=" "$(unset LD_LIBRARY_MASK; portageq envvar LD_LIBRARY_MASK) @@ -1233,7 +1233,7 @@ trap trap_cmd SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM einfo 'Build finished correctly. Removing temporary files...' einfo - einfo 'You can re-run revdep-rebuild to verify that all libraries and binaries' + einfo 'You can re-run revdep-rebuild.sh to verify that all libraries and binaries' einfo 'are fixed. Possible reasons for remaining inconsistencies include:' einfo ' orphaned files' einfo ' deep dependencies' @@ -1245,7 +1245,7 @@ [[ $KEEP_TEMP ]] || rm -f "${FILES[@]}" fi else - einfo 'Now you can remove -p (or --pretend) from arguments and re-run revdep-rebuild.' + einfo 'Now you can remove -p (or --pretend) from arguments and re-run revdep-rebuild.sh.' fi }