Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
b3a4fdd1
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,发现更多精彩内容 >>
提交
b3a4fdd1
编写于
9月 11, 2020
作者:
S
storypku
提交者:
Chang Songhong
9月 11, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Scripts: improved "apollo.sh clean".
Added "bash apollo.sh clean --help" for usage
上级
18d48baf
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
6 deletion
+10
-6
apollo.sh
apollo.sh
+2
-2
scripts/apollo_clean.sh
scripts/apollo_clean.sh
+8
-4
未找到文件。
apollo.sh
浏览文件 @
b3a4fdd1
...
...
@@ -124,7 +124,7 @@ function _usage() {
${
BLUE
}
doc
${
NO_COLOR
}
: generate doxygen document
${
BLUE
}
clean
${
NO_COLOR
}
: cleanup bazel output and log/coredump files
${
BLUE
}
format
${
NO_COLOR
}
: format C++/Python/Bazel/Shell files
${
BLUE
}
usage
${
NO_COLOR
}
: show this message
${
BLUE
}
usage
${
NO_COLOR
}
: show this message
and exit
"
}
...
...
@@ -199,7 +199,7 @@ function main() {
env
${
APOLLO_ENV
}
bash
"
${
APOLLO_ROOT_DIR
}
/scripts/apollo_lint.sh"
cpp
;;
clean
)
env
${
APOLLO_ENV
}
bash
"
${
APOLLO_ROOT_DIR
}
/scripts/apollo_clean.sh"
"
-a
"
env
${
APOLLO_ENV
}
bash
"
${
APOLLO_ROOT_DIR
}
/scripts/apollo_clean.sh"
"
$@
"
;;
doc
)
env
${
APOLLO_ENV
}
bash
"
${
APOLLO_ROOT_DIR
}
/scripts/apollo_docs.sh"
"
$@
"
...
...
scripts/apollo_clean.sh
浏览文件 @
b3a4fdd1
...
...
@@ -38,9 +38,9 @@ function _clean_bazel_cache() {
# Remove bazel cache in associated directories
if
[
-d
/apollo-simulator
]
;
then
pushd
/apollo-simulator
>
/dev/null
pushd
/apollo-simulator
>
/dev/null
bazel clean
${
opt
}
popd
>
/dev/null
popd
>
/dev/null
fi
}
...
...
@@ -75,11 +75,15 @@ function _print_usage() {
echo
"
${
TAB
}
--log Remove log files"
echo
"
${
TAB
}
-a, --all Equivalent to
\"
--bazel --core --log
\"
"
echo
"
${
TAB
}
--expunge Run
\"
bazel clean --expunge
\"
"
echo
"
${
TAB
}
-h, --help Show this message"
echo
"
${
TAB
}
-h, --help Show this message and exit"
}
function
parse_arguments
()
{
if
[[
$#
-eq
0
]]
;
then
_print_usage
exit
1
fi
while
[
$#
-gt
0
]
;
do
local
opt
=
"
$1
"
shift
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录