aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-10-21 22:35:23 +0200
committerUlrich Müller <ulm@gentoo.org>2013-10-21 22:35:23 +0200
commita1de32ca76ee2dc24961f52b38c9c0f3cd51eb03 (patch)
tree4a6495b945e716292faea1666de720be9a9a7be6 /bin
parentAdd env_update to eselect-mode keywords. (diff)
downloadeselect-a1de32ca76ee2dc24961f52b38c9c0f3cd51eb03.tar.gz
eselect-a1de32ca76ee2dc24961f52b38c9c0f3cd51eb03.tar.bz2
eselect-a1de32ca76ee2dc24961f52b38c9c0f3cd51eb03.zip
Move es_find_module function to core library.
* bin/eselect.in (es_find_module): Move function to core library. * libs/core.bash.in (find_module): Rename and simplify.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/eselect.in15
1 files changed, 0 insertions, 15 deletions
diff --git a/bin/eselect.in b/bin/eselect.in
index ea632ce..e50fa8e 100755
--- a/bin/eselect.in
+++ b/bin/eselect.in
@@ -70,21 +70,6 @@ inherit manip output path-manipulation tests
# it, don't ask...
trap 'echo "exiting" >&2; exit 250' 15
-# es_find_module foo
-# Find and echo the filename of the foo module. If there's no foo module,
-# die.
-es_find_module() {
- local modname="$1" modpath="" modfile=""
- [[ -z ${modname} ]] && die "Usage: ${FUNCNAME} <module>"
- for modpath in "${ESELECT_MODULES_PATH[@]}"; do
- [[ -f ${modpath}/${modname}.eselect ]] && break
- done
-
- modfile="${modpath}/${modname}.eselect"
- [[ -r ${modfile} ]] || die -q "Can't load module ${modname}"
- echo ${modfile}
-}
-
# es_do_usage
# Display eselect usage
es_do_usage() {