This commit is contained in:
2024-11-24 21:13:37 +08:00
parent 7bb8a8c839
commit e2c0d1de87
65 changed files with 2306 additions and 437 deletions

19
helpers.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -oe pipefail
__root__=$( dirname $(readlink -e -- "${BASH_SOURCE}"))
source $__root__/helpers/io.sh || exit 255
source $__root__/helpers/basic.sh || exit 255
source $__root__/helpers/debug.sh || exit 255
source $__root__/helpers/packages.sh || exit 255
title() {
[[ $__AAA_NO_TITLE = 1 ]] || {
[ "$1" ] && title="$1" || title="$(grep -m 1 -oP "(?<=^##makedesc:\s).*$" ${BASH_SOURCE[1]})"
info
info "==============================================="
info "$title"
info "==============================================="
info
}
}