main/module
This commit is contained in:
parent
0e9108999d
commit
189b4f521d
3 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
# TODO variablize
|
# TODO variablize
|
||||||
# path to the entrypoint main file of the project
|
# path to the entrypoint main file of the project
|
||||||
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
|
RWX_MAIN_PATH="${RWX_ROOT_SYSTEM}/${RWX_MAIN_MODULE}.${RWX_MAIN_EXTENSION}"
|
||||||
# user root directory of the project
|
# user root directory of the project
|
||||||
RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}"
|
RWX_SELF_USER="${HOME}/${RWX_SELF_NAME}"
|
||||||
|
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
# extension of shell modules
|
# extension of shell modules
|
||||||
RWX_MAIN_EXTENSION="sh"
|
RWX_MAIN_EXTENSION="sh"
|
||||||
|
|
||||||
# name of the entrypoint module
|
# name of the entrypoint module
|
||||||
RWX_MAIN_NAME="main"
|
RWX_MAIN_MODULE="main"
|
||||||
|
|
||||||
# name of the project itself
|
# name of the project itself
|
||||||
RWX_SELF_NAME="rwx"
|
RWX_SELF_NAME="rwx"
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ rwx_main_main() {
|
||||||
# find & source modules
|
# find & source modules
|
||||||
modules="$(rwx_main_find "${RWX_ROOT_SYSTEM}")"
|
modules="$(rwx_main_find "${RWX_ROOT_SYSTEM}")"
|
||||||
while IFS= read -r module; do
|
while IFS= read -r module; do
|
||||||
if [ "${module}" != "${RWX_MAIN_NAME}" ]; then
|
if [ "${module}" != "${RWX_MAIN_MODULE}" ]; then
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
. "${RWX_ROOT_SYSTEM}/${module}.${RWX_MAIN_EXTENSION}"
|
. "${RWX_ROOT_SYSTEM}/${module}.${RWX_MAIN_EXTENSION}"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -41,7 +41,7 @@ rwx_test_doc() {
|
||||||
"main" \
|
"main" \
|
||||||
"alias/git" \
|
"alias/git" \
|
||||||
\
|
\
|
||||||
"RWX_MAIN_NAME" \
|
"RWX_MAIN_MODULE" \
|
||||||
\
|
\
|
||||||
"_rwx_code" \
|
"_rwx_code" \
|
||||||
\
|
\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue