-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add make target help #1953
Add make target help #1953
Conversation
done | ||
} | ||
|
||
function print_help_for_parameters () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done | ||
} | ||
|
||
function print_help_for_parameters () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
function print_help_for_parameters () { | ||
# TODO | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
function print_help_for_parameters () { | ||
# TODO | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scripts/print_parameters.sh
Outdated
do | ||
local -a pd=("${param_desc[@]}") | ||
local param=${pd[0]} | ||
echo "!!!pd=${pd}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kudos, SonarCloud Quality Gate passed! |
} | ||
|
||
function describe_all_parameters () { | ||
local -a param_desc_list=("$@") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
|
||
function print_help_for_parameters () { | ||
local -A -r -n param_desc_list=$@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
|
||
function print_help_for_parameters () { | ||
local -A -r -n param_desc_list=$@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if [ "${0}" = "${BASH_SOURCE[0]}" ] | ||
then | ||
# TODO: Try associative array: <https://stackoverflow.com/a/3113285> | ||
declare -A -r input=("$@") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then | ||
# TODO: Try associative array: <https://stackoverflow.com/a/3113285> | ||
declare -A -r input=("$@") | ||
echo "${input}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have failed in the intents to find a nice way to print out variables, theirs descriptions and assignments. Variables and descriptions could nicely be integrated with associative arrays, but we found no working version to pass them to shell-functions within a Makefile. Regarding assignments, we found no way to pass them via make as a string to a shell-function. |
No description provided.