diff options
author | Ulrich Müller <ulm@gentoo.org> | 2012-02-18 14:55:38 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2012-02-18 14:55:38 +0000 |
commit | c1a89fbb4a2ba40e2b32a679f7ba98ac903fa22f (patch) | |
tree | 891776509389ea886a76c5a37f56ab5b62b2c525 /libs | |
parent | Update version to 1.3.1. (diff) | |
download | eselect-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.in | 6 |
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() { |