mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
armbian-next: extensions changes - MEGASQUASH - squashed changes from c9cf3fc241cfb4c872f4aef7bbc41d5854db7ea3 to 6809de3d6063cb041205a8318e19da6a4dee68c9 ref extensions_08_10_2022_pre_v30
This commit is contained in:
@@ -5,7 +5,7 @@ function extension_metadata_ready__499_display_docs_generation_start_info() {
|
||||
}
|
||||
|
||||
function extension_metadata_ready__docs_markdown() {
|
||||
generate_markdown_docs_to_stdout > "${DEST}/"${LOG_SUBPATH}"/hooks.auto.docs.md"
|
||||
generate_markdown_docs_to_stdout > "${EXTENSION_MANAGER_TMP_DIR}/hooks.auto.docs.md"
|
||||
}
|
||||
|
||||
function extension_metadata_ready__docs_sample_extension() {
|
||||
@@ -112,15 +112,12 @@ generate_bash_sample_for_hook_point() {
|
||||
# shellcheck disable=SC2001
|
||||
local COMMENT_BODY="$(echo "${MARKDOWN_BODY}" | tr '`' '"' | sed -e 's/^/### /')"
|
||||
|
||||
local bonus=""
|
||||
[[ "${HOOK_POINT_COUNTER}" == "1" ]] && bonus="$(echo -e "\n\texport PROGRESS_DISPLAY=verysilent # Example: export a variable. This one silences the built.")"
|
||||
|
||||
cat << SAMPLE_BASH_CODE
|
||||
${COMMENT_HEAD}
|
||||
${COMMENT_BODY}
|
||||
function ${HOOK_POINT}__be_more_awesome() {
|
||||
# @TODO: Please rename this function to reflect what it does, but preserve the "${HOOK_POINT}__" prefix.
|
||||
display_alert "Being awesome at \${HOOK_POINT}" "\${EXTENSION}" "info"${bonus}
|
||||
display_alert "Being awesome at \${HOOK_POINT}" "\${EXTENSION}" "info"
|
||||
}
|
||||
|
||||
SAMPLE_BASH_CODE
|
||||
|
||||
Reference in New Issue
Block a user