From bd16b61a2be9d158778244c3e2b184a65a496e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Sat, 29 Aug 2015 08:22:51 -0300 Subject: replace all db-* exec with xbs, create all db-* compability, and add DISTRO_TYPE on all platform configs --- src/bin/db-init | 34 +++------------------------------- 1 file changed, 3 insertions(+), 31 deletions(-) mode change 100755 => 100644 src/bin/db-init (limited to 'src/bin/db-init') diff --git a/src/bin/db-init b/src/bin/db-init old mode 100755 new mode 100644 index 42574a4..624fb7f --- a/src/bin/db-init +++ b/src/bin/db-init @@ -1,5 +1,5 @@ #!/bin/bash -# Creates the repository structure defined in config +# X Build System # Copyright (C) 2012-2015 Parabola Hackers # This program is free software: you can redistribute it and/or modify @@ -17,34 +17,6 @@ CONFIG_DIR="$(dirname "$(readlink -e "$0")")/etc" -source "${CONFIG_DIR}/xbs.cfg" -source "${SHARE_DIR}/db-functions" +FLAGS=("${@}") -platforms=("${@:1}") - -db-init_run() { - mkdir -p -- "${PKG_MAIN_POOLS}" "${SRC_MAIN_POOLS}" "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" -} - -for '_platform' in "${PLATFORMS[@]}"; do - if [ "${#}" -eq '0' ]; then - source "${CONFIG_DIR}/xbs.d/${_platform}.cfg" - - db-init_run - else - for 'platform' in "${platforms[@]}"; do - # 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" - - db-init_run - else - die "This %s plataform doesn't exist" "${plataform}" - fi - done - fi -done - -# "${BIN_DIR}/db-repo-add" -p "${_platform}" "${PKG_REPOS[@]}" +RUN_DIR="xbs init ${FLAGS[@]}" -- cgit v1.2.3-2-g168b