# -*-eselect-*- vim: ft=eselect # Copyright 2005-2015 Gentoo Foundation # Distributed under the terms of the GNU GPL version 2 or later DESCRIPTION="Manage installed versions of sys-devel/gcc" MAINTAINER="toolchain@gentoo.org" ### list action describe_list() { echo "List all installed version of gcc" } do_list() { gcc-config -l } ### set action describe_set() { echo "Activate one of the installed gcc" } describe_set_parameters() { echo "" } describe_set_options() { echo "target : Target name or number (from 'list' action)" } do_set() { [[ $# -eq 1 ]] || die -q "Please specify exactly one version to activate!" gcc-config "$1" } ### show action describe_show() { echo "Print the currently active gcc version" } do_show() { gcc-config -c }