summaryrefslogtreecommitdiff
path: root/src/bin/db-init
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/db-init')
-rwxr-xr-xsrc/bin/db-init9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bin/db-init b/src/bin/db-init
index 181e5bf..e63bf5a 100755
--- a/src/bin/db-init
+++ b/src/bin/db-init
@@ -3,8 +3,7 @@
CONFIG_DIR="$(dirname "$(readlink -e "$0")")/etc"
-source "${CONFIG_DIR}/dbscripts.cfg"
-source "${CONFIG_DIR}/dbscripts.d/db-functions"
+source "${CONFIG_DIR}"/dbscripts{.d/{db-functions,main},}.cfg
db-init-usage() {
msg "Usage: %s [platform1 platform2 ... platformX]" "${0##*/}"
@@ -20,7 +19,7 @@ for 'platform' in "${PLATFORMS[@]}"; do
if [ "${_platform_name}" == "${platform}" ]; then
source "${CONFIG_DIR}/dbscripts.d/${_platform_name}.cfg"
- mkdir -p -- "${REPO_DIR}"/{"${PKG_POOL}","${SRC_POOL}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}"
+ mkdir -p -- "${REPO_DIR}"/{"${PKG_MAIN_POOLS}","${SRC_MAIN_POOLS}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}"
else
db-init-usage
fi
@@ -28,6 +27,8 @@ for 'platform' in "${PLATFORMS[@]}"; do
else
source "${CONFIG_DIR}/dbscripts.d/${platform}.cfg"
- mkdir -p -- "${REPO_DIR}"/{"${PKG_POOL}","${SRC_POOL}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}"
+ mkdir -p -- "${REPO_DIR}"/{"${PKG_MAIN_POOLS}","${SRC_MAIN_POOLS}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}"
fi
done
+
+# "$(dirname "$(readlink -e "$0")")/db-repo-add" -p "${_platform}" "${PKG_REPOS[@]}"