Make node environment scripts simpler

This commit is contained in:
doylet 2024-02-20 12:14:58 +11:00
parent 54aac5b10c
commit dcbbfc5e85
12 changed files with 34 additions and 83 deletions

View File

@ -1,13 +0,0 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/12.22.12/bin
desired_exe=${desired_dir}/node
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

View File

@ -0,0 +1,8 @@
#!/bin/bash
curr_script=$(realpath "${BASH_SOURCE[0]}")
path_to_add=${devenver_root}/NodeJS/12.22.12/bin
echo [DEVENVER] \"${curr_script}\" is adding to path \"${path_to_add}\"
PATH=${path_to_add}:${PATH} $@

View File

@ -1,13 +0,0 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/16.19.0/bin
desired_exe=${desired_dir}/node
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

View File

@ -0,0 +1,8 @@
#!/bin/bash
curr_script=$(realpath "${BASH_SOURCE[0]}")
path_to_add=${devenver_root}/NodeJS/16.19.0/bin
echo [DEVENVER] \"${curr_script}\" is adding to path \"${path_to_add}\"
PATH=${path_to_add}:${PATH} $@

View File

@ -1,13 +0,0 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/18.15.0/bin
desired_exe=${desired_dir}/node
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

View File

@ -0,0 +1,8 @@
#!/bin/bash
curr_script=$(realpath "${BASH_SOURCE[0]}")
path_to_add=${devenver_root}/NodeJS/18.15.0/bin
echo [DEVENVER] \"${curr_script}\" is adding to path \"${path_to_add}\"
PATH=${path_to_add}:${PATH} $@

View File

@ -1,13 +0,0 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/12.22.12/bin
desired_exe=${desired_dir}/npm
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

View File

@ -1,13 +0,0 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/16.19.0/bin
desired_exe=${desired_dir}/npm
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

View File

@ -1,13 +0,0 @@
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
desired_dir=${script_dir}/../NodeJS/18.15.0/bin
desired_exe=${desired_dir}/npm
PATH=${desired_dir}:${PATH}
curr_script=$(realpath "${BASH_SOURCE[0]}")
echo [DEVENVER] Executing script \"${curr_script}\" with \"${desired_exe}\"
${desired_exe} $@

View File

@ -1,6 +1,7 @@
@echo off
setlocal
set path=%devenver_root%\NodeJS\12.22.12;%path%
echo [DEVENVER] Executing script "%~dpnx0" with "%*"
set path_to_add=%devenver_root%\NodeJS\12.22.12
set path=%path_to_add%;%path%
echo [DEVENVER] "%~dpnx0" is adding to path "%path_to_add%"
call %*
endlocal

View File

@ -1,4 +1,7 @@
@echo off
setlocal
call %devenver_root%\raddbg\trunk\raddbg.exe --user %devenver_root%\raddbg\doylet.raddbg_user
set path_to_add=%devenver_root%\NodeJS\16.19.0
set path=%path_to_add%;%path%
echo [DEVENVER] "%~dpnx0" is adding to path "%path_to_add%"
call %*
endlocal

View File

@ -1,6 +1,7 @@
@echo off
setlocal
set path=%devenver_root%\NodeJS\18.15.0;%path%
echo [DEVENVER] Executing script "%~dpnx0" with "%exe_to_use%"
set path_to_add=%devenver_root%\NodeJS\18.15.0
set path=%path_to_add%;%path%
echo [DEVENVER] "%~dpnx0" is adding to path "%path_to_add%"
call %*
endlocal