提交 a84c15e7 编写于 作者: S storypku

Scripts: configurator for apollo6.sh

上级 d903730f
...@@ -108,6 +108,9 @@ function main() { ...@@ -108,6 +108,9 @@ function main() {
doc) doc)
${APOLLO_ROOT_DIR}/scripts/apollo_docs.sh "$@" ${APOLLO_ROOT_DIR}/scripts/apollo_docs.sh "$@"
;; ;;
configurator) # Consult Kecheng Xu
${APOLLO_ROOT_DIR}/scripts/configurator.sh "$@"
;;
usage) usage)
_usage _usage
;; ;;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
set -e set -e
TOPDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
source "${TOPDIR}/scripts/apollo.bashrc" source "${TOP_DIR}/scripts/apollo.bashrc"
function buildify() { function buildify() {
local stage="${1:-dev}" local stage="${1:-dev}"
......
#! /usr/bin/env bash #! /usr/bin/env bash
set -e set -e
TOPDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
source "${TOPDIR}/scripts/apollo.bashrc" source "${TOP_DIR}/scripts/apollo.bashrc"
function clean() { function clean() {
local stage="$1"; shift local stage="$1"; shift
...@@ -13,7 +13,7 @@ function clean() { ...@@ -13,7 +13,7 @@ function clean() {
fi fi
bazel clean --async bazel clean --async
docs_sh="${TOPDIR}/scripts/apollo_docs.sh" docs_sh="${TOP_DIR}/scripts/apollo_docs.sh"
if [ -f "${docs_sh}" ]; then if [ -f "${docs_sh}" ]; then
bash "${docs_sh}" clean "${stage}" bash "${docs_sh}" clean "${stage}"
fi fi
......
#! /usr/bin/env bash #! /usr/bin/env bash
set -e set -e
TOPDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
source "${TOPDIR}/scripts/apollo.bashrc" source "${TOP_DIR}/scripts/apollo.bashrc"
APOLLO_DOCS_CFG="${APOLLO_ROOT_DIR}/apollo.doxygen" APOLLO_DOCS_CFG="${APOLLO_ROOT_DIR}/apollo.doxygen"
APOLLO_DOCS_DIR="${APOLLO_ROOT_DIR}/.cache/docs" APOLLO_DOCS_DIR="${APOLLO_ROOT_DIR}/.cache/docs"
......
#! /usr/bin/env bash #! /usr/bin/env bash
set -e set -e
TOPDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
source "${TOPDIR}/scripts/apollo.bashrc" source "${TOP_DIR}/scripts/apollo.bashrc"
function cpp_lint() { function cpp_lint() {
info "running cpp_lint ..." info "running cpp_lint ..."
......
...@@ -16,11 +16,9 @@ ...@@ -16,11 +16,9 @@
# limitations under the License. # limitations under the License.
############################################################################### ###############################################################################
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
source "${TOP_DIR}/scripts/apollo.bashrc"
cd "${DIR}/.." python3 "${TOP_DIR}/modules/tools/configurator/configurator.py"
source "${DIR}/apollo_base.sh"
python modules/tools/configurator/configurator.py
...@@ -159,6 +159,7 @@ echo "########################### All check passed! ###########################" ...@@ -159,6 +159,7 @@ echo "########################### All check passed! ###########################"
# See https://pypi.org/project/pycodestyle/ # See https://pypi.org/project/pycodestyle/
# TODO(?): Use py_library, py_binary, py_test to manage python code: # TODO(?): Use py_library, py_binary, py_test to manage python code:
# See https://docs.bazel.build/versions/master/be/python.html # See https://docs.bazel.build/versions/master/be/python.html
# TODO(Kecheng Xu): modules/tools/configurator/configurator.py: 2to3
# TODO(storypku): cyber.aarch64 docker image # TODO(storypku): cyber.aarch64 docker image
# TODO(storypku): tools/workspace.bzl to re-org WORKSPACE.in # TODO(storypku): tools/workspace.bzl to re-org WORKSPACE.in
# TODO(?): no break for cpu only build # TODO(?): no break for cpu only build
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册