Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
6b489ff5
Unverified
Commit
6b489ff5
authored
Jan 05, 2018
by
Stéphane Graber
Committed by
Christian Brauner
Jan 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include -devel suffix in version string
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
d2bd7038
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
configure.ac
configure.ac
+3
-1
lxc_init.c
src/lxc/lxc_init.c
+1
-1
arguments.c
src/lxc/tools/arguments.c
+4
-2
No files found.
configure.ac
View file @
6b489ff5
...
@@ -14,7 +14,9 @@ m4_define([lxc_abi], [lxc_abi_major.lxc_abi_minor.lxc_abi_micro])
...
@@ -14,7 +14,9 @@ m4_define([lxc_abi], [lxc_abi_major.lxc_abi_minor.lxc_abi_micro])
m4_define([lxc_version_base], [lxc_version_major.lxc_version_minor.lxc_version_micro])
m4_define([lxc_version_base], [lxc_version_major.lxc_version_minor.lxc_version_micro])
m4_define([lxc_version],
m4_define([lxc_version],
[ifelse(lxc_version_beta, [], [lxc_version_base], [lxc_version_base.lxc_version_beta])])
[ifelse(lxc_devel, 1,
ifelse(lxc_version_beta, [], [lxc_version_base], [lxc_version_base.lxc_version_beta])-devel,
ifelse(lxc_version_beta, [], [lxc_version_base], [lxc_version_base.lxc_version_beta]))])
AC_INIT([lxc], [lxc_version])
AC_INIT([lxc], [lxc_version])
...
...
src/lxc/lxc_init.c
View file @
6b489ff5
...
@@ -432,7 +432,7 @@ static void print_usage(const struct option longopts[])
...
@@ -432,7 +432,7 @@ static void print_usage(const struct option longopts[])
static
void
print_version
()
static
void
print_version
()
{
{
printf
(
"%s
%s
\n
"
,
LXC_VERSION
,
LXC_DEVEL
?
"-devel"
:
""
);
printf
(
"%s
\n
"
,
LXC_VERSION
);
exit
(
0
);
exit
(
0
);
}
}
...
...
src/lxc/tools/arguments.c
View file @
6b489ff5
...
@@ -32,9 +32,11 @@
...
@@ -32,9 +32,11 @@
#include <sys/stat.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/types.h>
#include <lxc/lxccontainer.h>
#include <lxc/version.h>
#include "arguments.h"
#include "arguments.h"
#include "utils.h"
#include "utils.h"
#include "version.h"
static
int
build_shortopts
(
const
struct
option
*
a_options
,
char
*
a_shortopts
,
static
int
build_shortopts
(
const
struct
option
*
a_options
,
char
*
a_shortopts
,
size_t
a_size
)
size_t
a_size
)
...
@@ -131,7 +133,7 @@ static void print_usage(const struct option longopts[],
...
@@ -131,7 +133,7 @@ static void print_usage(const struct option longopts[],
static
void
print_version
()
static
void
print_version
()
{
{
printf
(
"%s
%s
\n
"
,
LXC_VERSION
,
LXC_DEVEL
?
"-devel"
:
""
);
printf
(
"%s
\n
"
,
lxc_get_version
()
);
exit
(
0
);
exit
(
0
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment