1 |
commit: c952a087e482b7dfe067172754ce832f78aa8c80 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 26 08:50:36 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 26 08:50:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=c952a087 |
7 |
|
8 |
gcc-config: provide 'gcc-config --get-current-profile [CTARGET]' example |
9 |
|
10 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
11 |
|
12 |
gcc-config | 3 ++- |
13 |
1 file changed, 2 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/gcc-config b/gcc-config |
16 |
index 594c7d2..e8e3d58 100755 |
17 |
--- a/gcc-config |
18 |
+++ b/gcc-config |
19 |
@@ -45,6 +45,7 @@ GENTOO_LIBDIR="@GENTOO_LIBDIR@" |
20 |
usage() { |
21 |
cat <<-EOF |
22 |
Usage: gcc-config [options] [CC Profile] |
23 |
+ gcc-config [options] --get-current-profile [CTARGET] |
24 |
Change the current compiler profile, or give info about profiles. |
25 |
|
26 |
Options: |
27 |
@@ -1080,7 +1081,7 @@ for x in "$@" ; do |
28 |
die "Could not locate profile #$x !" |
29 |
fi |
30 |
else |
31 |
- # User gave us a full <CTARGET-version> or <version> |
32 |
+ # User gave us a full <CTARGET-version>, <CTARGET> or <version> |
33 |
x=${x##*/} |
34 |
if [[ ${DOIT} == "get_current_profile" && -z $(ls "${GCC_ENV_D}"/${x}-* 2>/dev/null) ]] || \ |
35 |
[[ ${DOIT} != "get_current_profile" && ! -f ${GCC_ENV_D}/${x} ]] |