summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-08-26 22:12:46 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-08-26 22:12:46 -0300
commit913e47da5665f51137902c6caccb6be3f716b5f6 (patch)
tree3b3cb616e2d5a9d1da1c6486527df50bf05613c1
parent1f1896e93d407d269422a4f18e30d1ba29d29595 (diff)
rebuild db-init
-rwxr-xr-xsrc/bin/db-init26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/bin/db-init b/src/bin/db-init
index fa989fc..73b467f 100755
--- a/src/bin/db-init
+++ b/src/bin/db-init
@@ -10,19 +10,23 @@ platforms=("${@:1}")
for '_platform' in "${PLATFORMS[@]}"; do
if [ "${#}" -eq '0' ]; then
- source "${CONFIG_DIR}/xbs.d/${platform}.cfg"
+ source "${CONFIG_DIR}/xbs.d/${_platform}.cfg"
+
+ mkdir -p -- "${PKG_MAIN_POOLS}" "${SRC_MAIN_POOLS}" "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}"
else
- # Rename ("${plataform}") to easily script usage
- _platform_name="${platform/\//+}" _platform_name="${_platforms_name,,}"
-
- if [ "${_platform_name}" == "${_platform}" ]; then
- source "${CONFIG_DIR}/xbs.d/${_platform_name}.cfg"
- else
- die "This ${plataform} doesn't exist"
- fi
- fi
+ for 'platform' in "${platforms[@]}"; do
+ # Rename ("${plataform}") to easily script usage
+ _platform_name="${platform/\//+}" _platform_name="${_platforms_name,,}"
- mkdir -p -- "${PKG_MAIN_POOLS}" "${SRC_MAIN_POOLS}" "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}"
+ if [ "${_platform_name}" == "${platform}" ]; then
+ source "${CONFIG_DIR}/xbs.d/${_platform_name}.cfg"
+
+ mkdir -p -- "${PKG_MAIN_POOLS}" "${SRC_MAIN_POOLS}" "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}"
+ else
+ die "This ${plataform} doesn't exist"
+ fi
+ donw
+ fi
done
# "${BIN_DIR}/db-repo-add" -p "${_platform}" "${PKG_REPOS[@]}"