mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-25 17:13:10 +02:00
Python as "shell" support added
This commit is contained in:
@@ -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"
|
||||
;;
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user