summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-11-12 07:25:13 +0000
committerUlrich Müller <ulm@gentoo.org>2009-11-12 07:25:13 +0000
commitbc7435c5ceb5faf3303ac6da7c4904e26a806248 (patch)
treebbf1ec8f018bd61994739ecd4d79db2f3a671095 /wxwidgets.eselect
parentAdd editor file variables. (diff)
downloadeselect-wxwidgets-bc7435c5ceb5faf3303ac6da7c4904e26a806248.tar.gz
eselect-wxwidgets-bc7435c5ceb5faf3303ac6da7c4904e26a806248.tar.bz2
eselect-wxwidgets-bc7435c5ceb5faf3303ac6da7c4904e26a806248.zip
Support brief output mode, bugs 292104, 292117, 292119, and 292120.
svn path=/trunk/extern/; revision=719 Filtered-out-of: https://gitweb.gentoo.org/proj/eselect.git/ Filtered-branch: extern Filtered-commit: 856f039d7807d80d94c612f5c2cc3495ae50a183
Diffstat (limited to 'wxwidgets.eselect')
-rw-r--r--wxwidgets.eselect25
1 files changed, 10 insertions, 15 deletions
diff --git a/wxwidgets.eselect b/wxwidgets.eselect
index 5be5eae..48248a8 100644
--- a/wxwidgets.eselect
+++ b/wxwidgets.eselect
@@ -1,5 +1,5 @@
# -*-eselect-*- vim: ft=eselect
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-wxwidgets/files/wxwidgets.eselect-0.8,v 1.2 2008/02/08 01:08:07 dirtyepic Exp $
@@ -92,23 +92,18 @@ describe_list() {
}
do_list() {
- local i targets
+ local i targets currconf
# targets is an array containing names of available configs
targets=( $(find_targets) )
+ [[ -e ${WXCONFFILE} ]] && currconf=$(load_config ${WXCONFFILE} WXCONFIG)
- if [[ -n ${targets[@]} ]]; then
- for (( i = 0; i < ${#targets[@]}; i++ )); do
- if [[ -e ${WXCONFFILE} ]]; then
- # highlight current version
- [[ ${targets[${i}]} == $(load_config ${WXCONFFILE} WXCONFIG) ]] \
- && targets[${i}]="$(highlight ${targets[${i}]}) *"
- fi
- done
- write_list_start "Available wxWidgets profiles:"
- write_numbered_list "${targets[@]}"
- else
- write_kv_list_entry "(none found)" ""
- fi
+ for (( i = 0; i < ${#targets[@]}; i++ )); do
+ # highlight current version
+ [[ ${targets[i]} = ${currconf} ]] \
+ && targets[i]=$(highlight_marker "${targets[i]}")
+ done
+ write_list_start "Available wxWidgets profiles:"
+ write_numbered_list -m "(none found)" "${targets[@]}"
}
### set action ###