diff options
author | Hans de Graaff <hans@degraaff.org> | 2015-12-29 11:39:13 +0100 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2015-12-29 11:39:13 +0100 |
commit | 8d1eff1ae8b4e0230fefd1f7087ee22ce2c0c1d1 (patch) | |
tree | dd4776a72637f0f6e4c925b070c89282d80d0bc5 | |
parent | Add ruby23 to target plot (diff) | |
download | ruby-scripts-8d1eff1ae8b4e0230fefd1f7087ee22ce2c0c1d1.tar.gz ruby-scripts-8d1eff1ae8b4e0230fefd1f7087ee22ce2c0c1d1.tar.bz2 ruby-scripts-8d1eff1ae8b4e0230fefd1f7087ee22ce2c0c1d1.zip |
Add ruby23 support
-rw-r--r-- | eselect-ruby/ruby.eselect | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/eselect-ruby/ruby.eselect b/eselect-ruby/ruby.eselect index 883d1ff..2dfcd33 100644 --- a/eselect-ruby/ruby.eselect +++ b/eselect-ruby/ruby.eselect @@ -4,14 +4,14 @@ DESCRIPTION="Manage Ruby symlinks" MAINTAINER="a3li@gentoo.org" -SVN_DATE="20141227" -VERSION="20141227" +SVN_DATE="20151229" +VERSION="20151229" bindir=/usr/bin man1dir=/usr/share/man/man1 find_targets() { - for t in ${EROOT}${bindir}/${1:-ruby}{18,19,20,21,22} ; do + for t in ${EROOT}${bindir}/${1:-ruby}{18,19,20,21,22,23} ; do [[ -e $t ]] || continue echo ${t} done @@ -62,7 +62,7 @@ create_symlinks() { local target=${1} version version=${target##*ruby} - + local path="${EROOT}${bindir}/" # these have to work for f in "ruby" "irb" "erb" "ri" "testrb" "rdoc" ; do @@ -108,7 +108,7 @@ do_show() { write_kv_list_entry "(none)" return 1 fi - + write_list_start "Current Rubygems version:" if [[ -L "${EROOT}${bindir}/gem" ]] ; then write_kv_list_entry "$(basename $(canonicalise ${EROOT}${bindir}/gem ) )" "" @@ -163,11 +163,11 @@ describe_set_parameters() { do_set() { [[ -z ${@} ]] && die -q "Parameter expected." - + local target=$(check_target ${1}) - + [[ $target = "invalid" ]] && die -q "Can't use that profile. No suitable Ruby interpreter found." - + remove_symlinks || \ die -q "Could not remove symlinks" |