moved srcipts to include/ and changed function include()

This commit is contained in:
2025-11-09 22:20:58 +05:00
parent 05f3b9a0a0
commit 579dd5916e
9 changed files with 54 additions and 48 deletions

View File

@@ -33,16 +33,16 @@ fi
function include {
local script_path="$1"
if [[ "$script_path" == cbuild/* ]]; then
script_path="$CBUILD_INSTALL_DIR/$(echo $script_path | sed 's,^cbuild/,,')"
if [[ "$script_path" == @cbuild/* ]]; then
script_path="$CBUILD_INSTALL_DIR/$(echo $script_path | sed 's,^@cbuild/,,')"
fi
# echp "including script $script_path"
. "$script_path"
}
include "cbuild/myprint.sh"
include "cbuild/functions.sh"
include "cbuild/config.sh"
include "@cbuild/include/myprint.sh"
include "@cbuild/include/functions.sh"
include "@cbuild/include/config.sh"
function print_help {
myprint "cbuild v$INSTALLED_CBUILD_VERSION"