main/name
This commit is contained in:
parent
189b4f521d
commit
1bf5581936
2 changed files with 5 additions and 6 deletions
|
@ -10,7 +10,7 @@
|
||||||
# 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_MODULE}.${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_MAIN_NAME}"
|
||||||
|
|
||||||
# cache of all sourced code modules
|
# cache of all sourced code modules
|
||||||
_rwx_code=""
|
_rwx_code=""
|
||||||
|
@ -61,7 +61,7 @@ rwx_code_install() {
|
||||||
fi
|
fi
|
||||||
# commands
|
# commands
|
||||||
root="${target}/usr/local/bin"
|
root="${target}/usr/local/bin"
|
||||||
name="${RWX_SELF_NAME}.${RWX_MAIN_EXTENSION}"
|
name="${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
|
||||||
file="${root}/${name}"
|
file="${root}/${name}"
|
||||||
rwx_remove "${file}"
|
rwx_remove "${file}"
|
||||||
rwx_link "${file}" "${RWX_MAIN_PATH}"
|
rwx_link "${file}" "${RWX_MAIN_PATH}"
|
||||||
|
@ -73,7 +73,7 @@ rwx_code_install() {
|
||||||
${_rwx_code_commands}
|
${_rwx_code_commands}
|
||||||
EOF
|
EOF
|
||||||
# sh
|
# sh
|
||||||
file="${target}/etc/profile.d/${RWX_SELF_NAME}.${RWX_MAIN_EXTENSION}"
|
file="${target}/etc/profile.d/${RWX_MAIN_NAME}.${RWX_MAIN_EXTENSION}"
|
||||||
rwx_remove "${file}"
|
rwx_remove "${file}"
|
||||||
rwx_file_write "${file}" "\
|
rwx_file_write "${file}" "\
|
||||||
export ENV=\"${RWX_MAIN_PATH}\"
|
export ENV=\"${RWX_MAIN_PATH}\"
|
||||||
|
|
|
@ -12,9 +12,8 @@
|
||||||
RWX_MAIN_EXTENSION="sh"
|
RWX_MAIN_EXTENSION="sh"
|
||||||
# name of the entrypoint module
|
# name of the entrypoint module
|
||||||
RWX_MAIN_MODULE="main"
|
RWX_MAIN_MODULE="main"
|
||||||
|
|
||||||
# name of the project itself
|
# name of the project itself
|
||||||
RWX_SELF_NAME="rwx"
|
RWX_MAIN_NAME="rwx"
|
||||||
|
|
||||||
# ╭──────┬───────────╮
|
# ╭──────┬───────────╮
|
||||||
# │ main │ variables │
|
# │ main │ variables │
|
||||||
|
@ -22,7 +21,7 @@ RWX_SELF_NAME="rwx"
|
||||||
|
|
||||||
# TODO variablize
|
# TODO variablize
|
||||||
# system root directory of the project
|
# system root directory of the project
|
||||||
RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_SELF_NAME}"
|
RWX_ROOT_SYSTEM="/usr/local/lib/${RWX_MAIN_NAME}"
|
||||||
|
|
||||||
# ╭──────┬──────╮
|
# ╭──────┬──────╮
|
||||||
# │ main │ find │
|
# │ main │ find │
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue