cd_write_python_module
This commit is contained in:
parent
640d651a78
commit
a9c8aa6b54
1 changed files with 9 additions and 7 deletions
16
cd.sh
16
cd.sh
|
@ -581,13 +581,15 @@ ${CD_PYTHON_PACKAGES}"
|
|||
|
||||
cd_write_python_module () {
|
||||
cd_step "Write Python module"
|
||||
cd_write "${CD_PYTHON_PACKAGES}/env.py" "\
|
||||
$(cd_echo CD_OPEN CD_DOWN)
|
||||
$(cd_echo CD_VERT CD_SPLT)
|
||||
$(cd_echo CD___UP CD_SHUT)
|
||||
|
||||
$(cd_echo CD_OS_ID CD_OS_VERSION)
|
||||
|
||||
for cd_write_python_module__variable \
|
||||
in OPEN DOWN VERT SPLT __UP SHUT OS_ID OS_VERSION ; do
|
||||
cd_write_python_module__value="\
|
||||
$(cd_echo "CD_${cd_write_python_module__variable}")"
|
||||
cd_write_python_module__text="${cd_write_python_module__text}\
|
||||
${cd_write_python_module__value}
|
||||
"
|
||||
done
|
||||
cd_write "${CD_PYTHON_PACKAGES}/env.py" "${cd_write_python_module__text}\
|
||||
CD_STEP = $((CD_STEP+1))
|
||||
"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue