aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJauhien Piatlicki <piatlicki@gmail.com>2015-02-06 11:45:57 +0100
committerJauhien Piatlicki <piatlicki@gmail.com>2015-02-06 11:45:57 +0100
commit6b7ceaceca29ae362ebdd6774da85e2d201cab30 (patch)
tree1c8cdba0a062d91bd1684bd37408dce4e7e3072f
parenthandle rust-lldb symlink (diff)
parentrust-gdb support (diff)
downloadeselect-rust-6b7ceaceca29ae362ebdd6774da85e2d201cab30.tar.gz
eselect-rust-6b7ceaceca29ae362ebdd6774da85e2d201cab30.tar.bz2
eselect-rust-6b7ceaceca29ae362ebdd6774da85e2d201cab30.zip
Merge pull request #2 from geovex/master0.2_pre20150206
rust-gdb support
-rw-r--r--src/modules/rust.eselect4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/rust.eselect b/src/modules/rust.eselect
index d936017..26b2fae 100644
--- a/src/modules/rust.eselect
+++ b/src/modules/rust.eselect
@@ -65,6 +65,7 @@ unset_version() {
remove_symlink "${EROOT}"/usr/bin/rustc
remove_symlink "${EROOT}"/usr/bin/rustdoc
remove_symlink "${EROOT}"/usr/bin/rust-lldb
+ remove_symlink "${EROOT}"/usr/bin/rust-gdb
}
# set the rust version
@@ -90,7 +91,8 @@ set_version() {
set_symlink "${EROOT}/usr/bin/rustc-${target}" "${EROOT}/usr/bin/rustc" || die -q "rustc symlink setting failed"
set_symlink "${EROOT}/usr/bin/rustdoc-${target}" "${EROOT}/usr/bin/rustdoc" || die -q "rustdoc symlink setting failed"
- set_symlink "${EROOT}/usr/bin/rust-lldb-${target}" "${EROOT}/usr/bin/rust-lldb" || write_warning_msg "rust-lldb symlink setting failed (it can be ok for the older rust)"
+ set_symlink "${EROOT}/usr/bin/rust-lldb-${target}" "${EROOT}/usr/bin/rust-lldb" || write_warning_msg "rust-lldb symlink setting failed (it can be ok for the older or newer rust)"
+ set_symlink "${EROOT}/usr/bin/rust-gdb-${target}" "${EROOT}/usr/bin/rust-gdb" || write_warning_msg "rust-gdb symlink setting failed (it can be ok for the older rust)"
}
### list action ###