Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
anbox
提交
05928107
A
anbox
项目概览
openeuler
/
anbox
通知
24
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
anbox
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
05928107
编写于
7月 12, 2017
作者:
S
Simon Fels
提交者:
GitHub
7月 12, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #350 from zhsj/fix-version-suffix
Remove duplicated suffix on version string
上级
00ea7d96
63022b16
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
2 addition
and
47 deletion
+2
-47
src/CMakeLists.txt
src/CMakeLists.txt
+0
-1
src/anbox/build/version.cpp
src/anbox/build/version.cpp
+0
-39
src/anbox/build/version.h.in
src/anbox/build/version.h.in
+0
-5
src/anbox/cmds/system_info.cpp
src/anbox/cmds/system_info.cpp
+1
-1
src/anbox/cmds/version.cpp
src/anbox/cmds/version.cpp
+1
-1
未找到文件。
src/CMakeLists.txt
浏览文件 @
05928107
...
...
@@ -63,7 +63,6 @@ set(SOURCES
anbox/config.cpp
anbox/not_reachable.cpp
anbox/build/version.cpp
anbox/build/version.h.in
anbox/android/intent.cpp
...
...
src/anbox/build/version.cpp
已删除
100644 → 0
浏览文件 @
00ea7d96
/*
* Copyright (C) 2017 Simon Fels <morphis@gravedo.de>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranties of
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "anbox/build/version.h"
#include "anbox/utils.h"
#include <cstring>
namespace
anbox
{
namespace
build
{
static
std
::
string
init_version_string
()
{
std
::
string
v
;
if
(
!
version_suffix
||
std
::
strlen
(
version_suffix
)
==
0
)
v
=
utils
::
string_format
(
"%s"
,
version
);
else
v
=
utils
::
string_format
(
"%s-%s"
,
version
,
version_suffix
);
return
v
;
}
std
::
string
print_version
()
{
static
const
std
::
string
v
{
init_version_string
()};
return
v
;
}
}
// namespace build
}
// namespace anbox
src/anbox/build/version.h.in
浏览文件 @
05928107
...
...
@@ -27,11 +27,6 @@ namespace anbox {
namespace build {
/// @brief version marks the version
static constexpr const char *version{"@ANBOX_VERSION@"};
/// @brief version_suffix is an additional suffix which can be amended to
/// the major version number to indicate a dev build for example.
static constexpr const char *version_suffix{"@ANBOX_VERSION_SUFFIX@"};
/// @brief version queries the version of Anbox
std::string print_version();
} // namespace build
} // namespace anbox
...
...
src/anbox/cmds/system_info.cpp
浏览文件 @
05928107
...
...
@@ -53,7 +53,7 @@ class SystemInformation {
std
::
stringstream
s
;
s
<<
"version: "
<<
anbox
::
build
::
print_version
()
<<
anbox
::
build
::
version
<<
std
::
endl
;
if
(
anbox
::
utils
::
is_env_set
(
"SNAP_REVISION"
))
{
...
...
src/anbox/cmds/version.cpp
浏览文件 @
05928107
...
...
@@ -26,7 +26,7 @@ anbox::cmds::Version::Version()
cli
::
Name
{
"version"
},
cli
::
Usage
{
"version"
},
cli
::
Description
{
"print the version of the daemon"
}}
{
action
([](
const
cli
::
Command
::
Context
&
ctxt
)
{
ctxt
.
cout
<<
"anbox "
<<
build
::
print_version
()
<<
std
::
endl
;
ctxt
.
cout
<<
"anbox "
<<
build
::
version
<<
std
::
endl
;
return
0
;
});
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录