aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2012-02-18 14:55:38 +0000
committerUlrich Müller <ulm@gentoo.org>2012-02-18 14:55:38 +0000
commitc1a89fbb4a2ba40e2b32a679f7ba98ac903fa22f (patch)
tree891776509389ea886a76c5a37f56ab5b62b2c525 /libs
parentUpdate version to 1.3.1. (diff)
downloadeselect-c1a89fbb4a2ba40e2b32a679f7ba98ac903fa22f.tar.gz
eselect-c1a89fbb4a2ba40e2b32a679f7ba98ac903fa22f.tar.bz2
eselect-c1a89fbb4a2ba40e2b32a679f7ba98ac903fa22f.zip
Show versions of eselect and of module in default.eselect.
svn path=/trunk/; revision=874
Diffstat (limited to 'libs')
-rw-r--r--libs/default.eselect.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/default.eselect.in b/libs/default.eselect.in
index a65cf36..fb0241a 100644
--- a/libs/default.eselect.in
+++ b/libs/default.eselect.in
@@ -16,7 +16,7 @@
# eselect. If not, see <http://www.gnu.org/licenses/>.
DESCRIPTION="No description available"
-VERSION="No version available"
+VERSION=""
DEFAULT_ACTION="usage"
describe_usage() {
@@ -85,7 +85,9 @@ describe_version() {
}
do_version() {
- echo "Version ${VERSION}"
+ [[ -n ${ESELECT_MODULE_NAME} && -n ${VERSION} ]] \
+ && echo "${ESELECT_MODULE_NAME}.eselect ${VERSION}"
+ echo "${ESELECT_PROGRAM_NAME} ${ESELECT_VERSION}"
}
describe_help() {