spcd_dl
This commit is contained in:
parent
c0557813eb
commit
33dfc13672
1 changed files with 8 additions and 10 deletions
18
spcd.sh
18
spcd.sh
|
@ -514,10 +514,12 @@ ${SPCD_PYTHON_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages"
|
||||||
spcd_split
|
spcd_split
|
||||||
spcd_echo "SPCD_PYTHON_PACKAGES" "SPCD_PYTHON_VENV_PACKAGES"
|
spcd_echo "SPCD_PYTHON_PACKAGES" "SPCD_PYTHON_VENV_PACKAGES"
|
||||||
# variables
|
# variables
|
||||||
|
# certificate authorities
|
||||||
[ -n "${SPCD_CA_1}" ] && SPCD_CA=true
|
[ -n "${SPCD_CA_1}" ] && SPCD_CA=true
|
||||||
#
|
# downloads
|
||||||
|
SPCD_DL="$(mktemp --directory)"
|
||||||
spcd_split
|
spcd_split
|
||||||
spcd_echo "SPCD_CA"
|
spcd_echo "SPCD_CA" "SPCD_DL"
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_list_working_directory() {
|
spcd_list_working_directory() {
|
||||||
|
@ -711,9 +713,7 @@ index-url = ${SPCD_URL_PYTHON}
|
||||||
|
|
||||||
spcd_install_python_modules() {
|
spcd_install_python_modules() {
|
||||||
spcd_step "Install Python modules"
|
spcd_step "Install Python modules"
|
||||||
spcd_ipm__root="$(mktemp --directory)" || exit
|
|
||||||
spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}"
|
spcd_ipm__target="${SPCD_PYTHON_VENV_PACKAGES}"
|
||||||
echo "→ ${spcd_ipm__root}"
|
|
||||||
for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do
|
for spcd_ipm__repository in "${SPCD_GIT_MAIN}" "${SPCD_GIT_ROOT}"; do
|
||||||
spcd_ipm__url="$(spcd_get_git_url "${spcd_ipm__repository}")"
|
spcd_ipm__url="$(spcd_get_git_url "${spcd_ipm__repository}")"
|
||||||
spcd_ipm__name="$(basename "${spcd_ipm__url}")"
|
spcd_ipm__name="$(basename "${spcd_ipm__url}")"
|
||||||
|
@ -723,9 +723,9 @@ ${spcd_ipm__url}
|
||||||
↓"
|
↓"
|
||||||
git clone \
|
git clone \
|
||||||
"${spcd_ipm__url}" \
|
"${spcd_ipm__url}" \
|
||||||
"${spcd_ipm__root}/${spcd_ipm__name}" ||
|
"${SPCD_DL}/${spcd_ipm__name}" ||
|
||||||
exit
|
exit
|
||||||
spcd_ipm__path="${spcd_ipm__root}/${spcd_ipm__name}/${spcd_ipm__name}"
|
spcd_ipm__path="${SPCD_DL}/${spcd_ipm__name}/${spcd_ipm__name}"
|
||||||
echo "\
|
echo "\
|
||||||
${spcd_ipm__path}
|
${spcd_ipm__path}
|
||||||
↓
|
↓
|
||||||
|
@ -733,10 +733,10 @@ ${spcd_ipm__target}"
|
||||||
cp --recursive "${spcd_ipm__path}" "${spcd_ipm__target}" ||
|
cp --recursive "${spcd_ipm__path}" "${spcd_ipm__target}" ||
|
||||||
exit
|
exit
|
||||||
# check matching of file and variable
|
# check matching of file and variable
|
||||||
spcd_ipm__script="${spcd_ipm__root}/${spcd_ipm__name}/spcd.sh"
|
spcd_ipm__script="${SPCD_DL}/${spcd_ipm__name}/spcd.sh"
|
||||||
if [ -f "${spcd_ipm__script}" ]; then
|
if [ -f "${spcd_ipm__script}" ]; then
|
||||||
spcd_split
|
spcd_split
|
||||||
spcd_ipm__check="${spcd_ipm__root}/check.${SPCD_CMD_SUM}"
|
spcd_ipm__check="${SPCD_DL}/check.${SPCD_CMD_SUM}"
|
||||||
"${SPCD_CMD_SUM}" "${spcd_ipm__script}" >"${spcd_ipm__check}"
|
"${SPCD_CMD_SUM}" "${spcd_ipm__script}" >"${spcd_ipm__check}"
|
||||||
printf "%s" "${SPCD}" >"${spcd_ipm__script}"
|
printf "%s" "${SPCD}" >"${spcd_ipm__script}"
|
||||||
ls -l "${spcd_ipm__script}"
|
ls -l "${spcd_ipm__script}"
|
||||||
|
@ -747,8 +747,6 @@ ${spcd_ipm__target}"
|
||||||
done
|
done
|
||||||
spcd_split
|
spcd_split
|
||||||
spcd_ls "${spcd_ipm__target}"
|
spcd_ls "${spcd_ipm__target}"
|
||||||
spcd_split
|
|
||||||
spcd_rm "${spcd_ipm__root}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_install_packages() {
|
spcd_install_packages() {
|
||||||
|
|
Loading…
Reference in a new issue