Python as "shell" support added

This commit is contained in:
2023-04-05 16:48:25 +02:00
parent 9558522bba
commit 445320f229
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -67,6 +67,9 @@ export_env() {
csh | tcsh )
local -r fmt="setenv %s \"%s\"; "
;;
python )
local -r fmt="os.environ['%s'] = '%s'\n"
;;
* )
std::die 1 "Unsupported shell -- ${Shell}"
;;
@@ -2838,6 +2841,9 @@ case "$1" in
csh | tcsh )
declare Shell='csh'
;;
python )
declare Shell='python'
;;
* )
std::die 1 "${CMD}: unsupported shell -- $1"
;;
+1
View File
@@ -489,6 +489,7 @@ build::install() {
install -m 0644 "${SRC_DIR}/bash" "${PREFIX}/init"
install -m 0644 "${SRC_DIR}/bash_completion" "${PREFIX}/init"
install -m 0644 "${SRC_DIR}/csh" "${PREFIX}/init"
install -m 0644 "${SRC_DIR}/Pmodules.py" "${PREFIX}/init"
install -m 0644 "${SRC_DIR}/zsh" "${PREFIX}/init"
install -m 0644 "${SRC_DIR}/libpbuild.bash" "${PREFIX}/lib"