Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 20 Jun 2021 21:46:43
Message-Id: 1624225593.1ade252f652cfba4068bb2275e0b24e1175ee924.sam@gentoo
1 commit: 1ade252f652cfba4068bb2275e0b24e1175ee924
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 28 04:39:37 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 20 21:46:33 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ade252f
7
8 alternatives.eclass: document alternatives_makesym()
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 eclass/alternatives.eclass | 5 ++++-
13 1 file changed, 4 insertions(+), 1 deletion(-)
14
15 diff --git a/eclass/alternatives.eclass b/eclass/alternatives.eclass
16 index 86adc87b6f4..d6bb6b19e97 100644
17 --- a/eclass/alternatives.eclass
18 +++ b/eclass/alternatives.eclass
19 @@ -63,7 +63,7 @@ _ALTERNATIVES_ECLASS=1
20
21 # @FUNCTION: alternatives_auto_makesym
22 # @DESCRIPTION:
23 -# automatic deduction based on a symlink and a regex mask
24 +# Automatic deduction (Bash pathname expansion) based on a symlink and a regex mask
25 alternatives_auto_makesym() {
26 local SYMLINK REGEX ALT myregex
27 SYMLINK=$1
28 @@ -84,6 +84,9 @@ alternatives_auto_makesym() {
29 alternatives_makesym ${SYMLINK} ${ALT}
30 }
31
32 +# @FUNCTION: alternatives_makesym
33 +# @DESCRIPTION:
34 +# Creates symlink based on a symlink and regex mask literally
35 alternatives_makesym() {
36 local ALTERNATIVES=""
37 local SYMLINK=""