cd_write_python_module

This commit is contained in:
Marc Beninca 2024-06-08 19:15:47 +02:00
parent 640d651a78
commit a9c8aa6b54
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

16
cd.sh
View file

@ -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))
"
}