提交 a84c15e7 编写于 作者: S storypku

Scripts: configurator for apollo6.sh

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