Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
72b18f2c
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
72b18f2c
编写于
6月 18, 2020
作者:
S
storypku
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Scripts: move apollo_clean out of crowded new_apollo.sh
上级
4fc9075d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
46 addition
and
21 deletion
+46
-21
new_apollo.sh
new_apollo.sh
+4
-19
scripts/apollo_clean.sh
scripts/apollo_clean.sh
+40
-0
scripts/apollo_docs.sh
scripts/apollo_docs.sh
+2
-2
未找到文件。
new_apollo.sh
浏览文件 @
72b18f2c
...
...
@@ -84,21 +84,6 @@ function apollo_env_setup() {
info
"
${
TAB
}
STAGE:
${
STAGE
}
"
}
function
run_cleanup
()
{
if
!
"
${
APOLLO_IN_DOCKER
}
"
;
then
error
"The clean operation must be run from within docker container"
exit
1
fi
bazel clean
--async
# Remove bazel cache in associated directories
if
[
-d
/apollo-simulator
]
;
then
pushd
/apollo-simulator
>
/dev/null
bazel clean
--async
popd
>
/dev/null
fi
}
function
_usage
()
{
warning
"Usage: Not implemented yet"
}
...
...
@@ -111,9 +96,6 @@ function main() {
fi
local
cmd
=
"
$1
"
;
shift
case
"
${
cmd
}
"
in
doc
)
${
APOLLO_ROOT_DIR
}
/scripts/apollo_docs.sh
"
$@
"
;;
buildify
)
${
APOLLO_ROOT_DIR
}
/scripts/apollo_buildify.sh
"
${
STAGE
}
"
;;
...
...
@@ -121,7 +103,10 @@ function main() {
${
APOLLO_ROOT_DIR
}
/scripts/apollo_lint.sh
"
${
STAGE
}
"
;;
clean
)
run_cleanup
${
APOLLO_ROOT_DIR
}
/scripts/apollo_clean.sh
"
${
STAGE
}
"
;;
doc
)
${
APOLLO_ROOT_DIR
}
/scripts/apollo_docs.sh
"
$@
"
;;
usage
)
_usage
...
...
scripts/apollo_clean.sh
0 → 100755
浏览文件 @
72b18f2c
#! /usr/bin/env bash
set
-e
TOPDIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/.."
&&
pwd
-P
)
"
source
"
${
TOPDIR
}
/scripts/apollo.bashrc"
function
clean
()
{
local
stage
=
"
$1
"
;
shift
if
!
"
${
APOLLO_IN_DOCKER
}
"
;
then
error
"The clean operation must be run from within docker container"
exit
1
fi
bazel clean
--async
docs_sh
=
"
${
TOPDIR
}
/scripts/apollo_docs.sh"
if
[
-f
"
${
docs_sh
}
"
]
;
then
bash
"
${
docs_sh
}
"
clean
"
${
stage
}
"
fi
if
[
"
${
stage
}
"
!=
"dev"
]
;
then
success
"Apollo cleanup done."
return
fi
# Remove bazel cache in associated directories
if
[
-d
/apollo-simulator
]
;
then
pushd
/apollo-simulator
>
/dev/null
bazel clean
--async
popd
>
/dev/null
fi
success
"Done
$0
${
stage
}
."
}
function
main
()
{
local
stage
=
"
${
1
:-
dev
}
"
clean
"
${
stage
}
"
}
main
"
$@
"
scripts/apollo_docs.sh
浏览文件 @
72b18f2c
...
...
@@ -44,7 +44,7 @@ function generate_docs() {
if
!
$gendoc
;
then
return
fi
info
"Generating Apollo
D
ocs..."
info
"Generating Apollo
d
ocs..."
local
doxygen_cmd
=
"
$(
command
-v
doxygen
)
"
if
[
-z
"
${
doxygen_cmd
}
"
]
;
then
error
"Command 'doxygen' not found. Please install it manually."
...
...
@@ -72,7 +72,7 @@ function clean_docs() {
rm
-rf
"
${
APOLLO_DOCS_DIR
}
"
success
"Done cleanup apollo docs in
${
APOLLO_DOCS_DIR
}
"
else
success
"
Docs directory '
${
APOLLO_DOCS_DIR
}
' empty. Do nothing
."
success
"
Nothing to do for empty directory '
${
APOLLO_DOCS_DIR
}
'
."
fi
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录