buildsystem: clean/install - dquote both sides

This commit is contained in:
MilhouseVH 2019-06-16 16:43:07 +01:00
parent f9a2623d06
commit 4e214471bf
2 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@
clean_package() {
build_msg "CLR_CLEAN" "CLEAN" "${1}" "indent"
if [ "${CLEAN_SOURCES}" = true ]; then
if [ "${CLEAN_SOURCES}" = "true" ]; then
rm -rf "${SOURCES}/${1}"
return
fi

View File

@ -45,11 +45,11 @@ mkdir -p ${STAMPS_INSTALL}/${PKG_NAME}
${SCRIPTS}/build "${1}" "${PARENT_PKG}"
if [ "${TARGET}" = target ] ; then
if [ "${TARGET}" = "target" ] ; then
for p in ${PKG_DEPENDS_TARGET}; do
${SCRIPTS}/install "${p}" "${PARENT_PKG}"
done
elif [ "${TARGET}" = init ] ; then
elif [ "${TARGET}" = "init" ] ; then
for p in ${PKG_DEPENDS_INIT}; do
${SCRIPTS}/install "${p}" "${PARENT_PKG}"
done
@ -62,7 +62,7 @@ build_msg "CLR_INSTALL" "INSTALL" "${PKG_NAME} $(print_color CLR_TARGET "(${TARG
mkdir -p ${INSTALL}
if [ "${TARGET}" = target ] ; then
if [ "${TARGET}" = "target" ] ; then
for PKG_TMP_DIR in ${PKG_DIR} \
${PROJECT_DIR}/${PROJECT}/packages/${PKG_NAME} \
${PROJECT_DIR}/${PROJECT}/devices/${DEVICE}/packages/${PKG_NAME} \
@ -128,7 +128,7 @@ if [ "${TARGET}" = target ] ; then
fi
# install
if [ "${TARGET}" = target ] ; then
if [ "${TARGET}" = "target" ] ; then
pkg_call_exists pre_install && pkg_call pre_install
fi
@ -138,7 +138,7 @@ elif [ "${TARGET}" = "init" -a -d ${PKG_BUILD}/.install_init ]; then
cp -PR ${PKG_BUILD}/.install_init/* ${INSTALL}
fi
if [ "${TARGET}" = target ] ; then
if [ "${TARGET}" = "target" ] ; then
pkg_call_exists post_install && pkg_call post_install
fi