public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Mueller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect:master commit in: /, modules/
Date: Tue, 16 Jul 2013 14:27:08 +0000 (UTC)	[thread overview]
Message-ID: <1373960730.2ea27fd3794db4758c2f76117f34d6205652ce2b.ulm@gentoo> (raw)

commit:     2ea27fd3794db4758c2f76117f34d6205652ce2b
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 13 15:41:00 2013 +0000
Commit:     Ulrich Mueller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Jul 16 07:45:30 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=2ea27fd3

Remove bashcomp module, bug 476992.

* modules/bashcomp.eselect: Remove.
* modules/Makefile.am (modules_DATA): Remove bashcomp.eselect.
* Makefile.am (symlinks): Don't install bashcomp-config symlink.

---
 AUTHORS                  |   2 +-
 ChangeLog                |   6 ++
 Makefile.am              |   2 +-
 modules/Makefile.am      |   1 -
 modules/bashcomp.eselect | 207 -----------------------------------------------
 5 files changed, 8 insertions(+), 210 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index 4bb8e85..5246168 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -9,7 +9,7 @@ Danny van Dyk <kugelfang@gentoo.org>
     Libraries:  config, multilib
 
 Aaron Walker <ka0ttic@gentoo.org>
-    Modules:    bashcomp, profile
+    Modules:    profile
 
 Donnie Berkholz <dberkholz@gentoo.org>
     Libraries:  skel

diff --git a/ChangeLog b/ChangeLog
index 827532d..67605fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-07-16  Ulrich Müller  <ulm@gentoo.org>
+
+	* modules/bashcomp.eselect: Remove, bug 476992.
+	* modules/Makefile.am (modules_DATA): Remove bashcomp.eselect.
+	* Makefile.am (symlinks): Don't install bashcomp-config symlink.
+
 2013-07-14  Ulrich Müller  <ulm@gentoo.org>
 
 	* modules/kernel.eselect (find_targets, set_symlink, do_show):

diff --git a/Makefile.am b/Makefile.am
index e7a0972..ead15e5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,7 +1,7 @@
 AUTOMAKE_OPTIONS = dist-xz no-dist-gzip
 
 doc_files = README TODO
-export symlinks := kernel-config profile-config rc-config bashcomp-config
+export symlinks := kernel-config profile-config rc-config
 
 SUBDIRS = doc man misc bin libs modules
 MAINTAINERCLEANFILES = \

diff --git a/modules/Makefile.am b/modules/Makefile.am
index db6857b..73960c4 100644
--- a/modules/Makefile.am
+++ b/modules/Makefile.am
@@ -1,7 +1,6 @@
 modulesdir=$(datadir)/$(PACKAGE_NAME)/modules/
 
 modules_DATA = \
-	bashcomp.eselect \
 	binutils.eselect \
 	editor.eselect \
 	env.eselect \

diff --git a/modules/bashcomp.eselect b/modules/bashcomp.eselect
deleted file mode 100644
index d837b67..0000000
--- a/modules/bashcomp.eselect
+++ /dev/null
@@ -1,207 +0,0 @@
-# -*-eselect-*-  vim: ft=eselect
-# Copyright 2005-2013 Gentoo Foundation
-# Distributed under the terms of the GNU GPL version 2 or later
-
-DESCRIPTION="Manage contributed bash-completion scripts"
-MAINTAINER="eselect@gentoo.org"
-
-find_targets() {
-	local bcdir bc
-
-	for bcdir in "${EROOT%/}/usr/share/bash-completion" ${ES_BASHCOMP_DIRS}
-	do
-		for bc in "${bcdir}"/*; do
-			[[ -f ${bc} && ${bc} != *~ ]] && basename "${bc}"
-		done
-	done | sort -u
-}
-
-is_enabled() {
-	local bcdir
-
-	bcdir=${ROOT%/}/${HOME}/.bash_completion.d
-	if [[ $1 == "--global" ]]; then
-		bcdir=${EROOT%/}/etc/bash_completion.d
-		shift
-	fi
-
-	[[ -e ${bcdir}/$1 ]]
-}
-
-### list action ###
-
-describe_list() {
-	echo "List available completions"
-}
-
-describe_list_options() {
-	echo "--global : List globally enabled completions"
-}
-
-do_list() {
-	local targets opts i
-	targets=( $(find_targets) )
-
-	if [[ $1 == "--global" ]]; then
-		opts="--global"
-		shift
-	fi
-
-	for (( i = 0; i < ${#targets[@]}; i++ )); do
-		is_enabled ${opts} "${targets[i]}" \
-			&& targets[i]=$(highlight_marker "${targets[i]}")
-	done
-
-	write_list_start "Available completions:"
-	write_numbered_list -m "(none found)" "${targets[@]}"
-}
-
-### enable action ###
-
-describe_enable() {
-	echo "Enable specified completion(s)"
-}
-
-describe_enable_parameters() {
-	echo "<target>"
-}
-
-describe_enable_options() {
-	echo "--global : Enable for all users"
-	echo "<target> : Target name or number (from 'list' action)"
-}
-
-do_enable() {
-	local bcdir bc mode="" file target targets
-
-	bcdir=${ROOT%/}/${HOME}/.bash_completion.d
-	if [[ $1 == "--global" ]]; then
-		bcdir=${EROOT%/}/etc/bash_completion.d
-		mode="-m 0755"
-		shift
-	fi
-
-	[[ $# -eq 0 ]] && die -q "You didn't specify any completions to enable."
-
-	# create directory if necessary
-	if [[ ! -d ${bcdir} && -w $(dirname ${bcdir}) ]]; then
-		mkdir ${mode} "${bcdir}" || die -q "Failed to create ${bcdir}"
-	elif [[ ! -d ${bcdir} ]]; then
-		die -q "You don't have permission to create ${bcdir}"
-	fi
-
-	# make sure we have proper permissions
-	[[ -w ${bcdir} ]] \
-		|| die -q "You don't have permission to write to ${bcdir}"
-
-	targets=( $(find_targets) )
-
-	for bc in "$@"; do
-		# ignore any unrecognized options
-		[[ ${bc} == --* ]] && continue
-
-		target=${bc}
-		is_number "${target}" && target=${targets[target-1]}
-
-		[[ -z ${target} ]] \
-			&& die -q "Target \"${bc}\" doesn't appear to be valid!"
-
-		bc=${target}
-
-		# what form is the argument in?
-		case "${bc}" in
-			# absolute path
-			/*)
-				file=${ROOT%/}/${bc}
-				;;
-			# relative path
-			*/*)
-				file=${ROOT%/}/${PWD}/${bc}
-				;;
-			# no path
-			*)
-				# assume /usr/share/bash-completion
-				file=${EROOT%/}/usr/share/bash-completion/${bc}
-				if [[ ! -f ${file} ]]; then
-					for x in ${ES_BASHCOMP_DIRS}; do
-						[[ -f ${x}/${bc} ]] && file=${x}/${bc}
-					done
-				fi
-				;;
-		esac
-
-		# does it exist?
-		if [[ ! -f ${file} ]]; then
-			write_error_msg "${file} doesn't exist"
-			continue
-		fi
-
-		# already installed?
-		if [[ -e ${bcdir}/$(basename ${bc}) ]]; then
-			write_error_msg "$(basename ${bc}) is already installed"
-			continue
-		fi
-
-		# finally, create the symlink
-		ln -s "$(relative_name "${file}" "${bcdir}")" "${bcdir}/" \
-			|| die -q "Failed to create symlink from ${file} to ${bcdir}"
-	done
-}
-
-### disable action ###
-
-describe_disable() {
-	echo "Disable specified completion(s)"
-}
-
-describe_disable_parameters() {
-	echo "<target>"
-}
-
-describe_disable_options() {
-	echo "--global : Disable for all users"
-	echo "<target> : Target name or number (from 'list' action)"
-}
-
-
-do_disable() {
-	local bcdir bc targets target file
-
-	bcdir=${ROOT%/}/${HOME}/.bash_completion.d
-	if [[ $1 == "--global" ]]; then
-		bcdir=${EROOT%/}/etc/bash_completion.d
-		shift
-	fi
-
-	[[ $# -eq 0 ]] && die -q "You didn't specify any completions to disable"
-
-	targets=( $(find_targets) )
-
-	for bc in "$@"; do
-		# ignore any unrecognized options
-		[[ ${bc} == --* ]] && continue
-
-		target=${bc}
-
-		is_number "${target}" && target=${targets[target-1]}
-
-		[[ -z ${target} ]] \
-			&& die -q "Target \"${bc}\" doesn't appear to be valid!"
-
-		bc=${target}
-		file=${bcdir}/${bc}
-
-		# is it installed?
-		if [[ ! -e ${file} ]]; then
-			write_error_msg "${bc} is not installed"
-			continue
-		fi
-
-		# remove it if we have permissions
-		if [[ -w $(dirname ${file}) ]]; then
-			rm "${file}" || die -q "Failed to remove ${file}"
-		else
-			die -q "You don't have permission to remove ${file}"
-		fi
-	done
-}


             reply	other threads:[~2013-07-16 14:27 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16 14:27 Ulrich Mueller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-22  5:55 [gentoo-commits] proj/eselect:master commit in: /, modules/ Ulrich Müller
2024-11-18  5:52 Ulrich Müller
2024-11-13 20:26 Ulrich Müller
2023-08-07 16:22 Ulrich Müller
2023-06-12 16:24 Ulrich Müller
2019-11-28 13:16 Ulrich Müller
2018-01-24 10:03 Ulrich Müller
2018-01-08 23:30 Ulrich Müller
2017-12-25 11:00 Ulrich Müller
2017-05-22 11:27 Ulrich Müller
2017-05-06 13:24 Ulrich Müller
2016-12-06  7:05 Ulrich Müller
2015-01-18 22:01 Ulrich Müller
2014-08-28 13:02 Ulrich Müller
2014-05-24  7:02 Ulrich Müller
2014-02-25 10:09 Ulrich Müller
2014-02-09 17:57 Ulrich Müller
2014-02-09 16:23 Ulrich Müller
2014-02-09 17:57 ` Ulrich Müller
2013-11-14 16:47 Ulrich Müller
2013-08-24 16:52 Ulrich Mueller
2013-07-14 15:24 Ulrich Mueller
2013-02-22 22:24 Ulrich Mueller
2012-12-06 21:02 Ulrich Mueller
2012-09-12 22:09 Ulrich Mueller
2012-08-19 20:03 Ulrich Mueller
2012-06-27 17:02 Ulrich Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1373960730.2ea27fd3794db4758c2f76117f34d6205652ce2b.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox