blob: 10a1fad7c2471512b859b109705c545c2a2a78f3 (
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
|
module gcc{
description "GCC Version Switcher"
version "0.1"
author "mephx.x@gmail.com"
} gcc
system action profile {
description "Change GCC's /usr/bin/gcc Version"
type runnable
parameters "<target>"
usage "<target> Target GCC profile."
file moo.bash {
#!/bin/bash
do_moo() {
if [ -z $1 ]
then
gcc-config -l
else
gcc-config $@
fi
}
do_moo $@
} moo.bash
} profile
system action bin {
description "Print path where binaries of the given/current profile are located."
type runnable
file moo.bash {
#!/bin/bash
do_moo() {
if [ -z $1 ]
then
gcc-config -B
else
gcc-config -B
fi
}
do_moo $@
} moo.bash
} bin
|