Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier Stasse
robotpkg
Commits
534423e1
Commit
534423e1
authored
Apr 05, 2018
by
Anthony Mallet
Browse files
[mk] Factor out show-options legend when multiple alternatives are displayed
parent
9bdba06c
Changes
1
Hide whitespace changes
Inline
Side-by-side
mk/internal/show.mk
View file @
534423e1
...
...
@@ -145,8 +145,6 @@ ifdef PKG_ALTERNATIVES
$(
foreach
_,
${PKG_ALTERNATIVES}
,
$(
if
${
PKG_ALTERNATIVES
.
$_
}
, \
${ECHO}
"
$
${bf}
Available
$_
alternatives"
\
"(PREFER_ALTERNATIVE.
$_
)
:
$
${rm}
"
; \
${ECHO}
'(*=selected -=user rejected #=user preference " \
"n/a=invalid
)
'
; \
$(
foreach
1
,
${
PKG_ALTERNATIVES
.
$_
}
, \
$(
if
$(
strip
${
PKG_ALTERNATIVE_SELECT
.
$1
})
, \
$(
eval
0
=
$(
if
$(
filter
${
PKG_ALTERNATIVE
.
$_
}
,
$1
)
,
$(
if
\
...
...
@@ -157,6 +155,9 @@ ifdef PKG_ALTERNATIVES
${PRINTF}
"%s%3s %-21s
$$
rm
${
PKG_ALTERNATIVE_DESCR
.
$1
}
\n
"
\
"
$(
if
$0
,
$
${bf}
)
"
"
$0$n
"
"
$1
"
;) \
${ECHO}
""
;)) \
${ECHO}
'(*=selected -=user rejected #=user preference '
\
' n/a=invalid)'
; \
${ECHO}
''
; \
${ECHO}
"Alternatives are selected by setting the"
\
"PREFER_ALTERNATIVE.<alt> variable "
; \
${ECHO}
"to a space separated list sorted by order of"
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment