blob: 02606dcbc12d913a444197e5f8d609b9cd0eb4c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# -*-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 "<target>"
}
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
}
|