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
e749acdf
Unverified
Commit
e749acdf
authored
Jan 06, 2018
by
Christian Brauner
Committed by
GitHub
Jan 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2075 from stgraber/master
lxc_get_version() should show the "-devel" suffix
parents
a3f5fbb3
5f98011c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
configure.ac
configure.ac
+3
-1
lxc_init.c
src/lxc/lxc_init.c
+2
-2
arguments.c
src/lxc/tools/arguments.c
+1
-1
No files found.
configure.ac
View file @
e749acdf
...
@@ -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 @
e749acdf
...
@@ -63,7 +63,7 @@ static void interrupt_handler(int sig)
...
@@ -63,7 +63,7 @@ static void interrupt_handler(int sig)
static
struct
option
long_options
[]
=
{
static
struct
option
long_options
[]
=
{
{
"name"
,
required_argument
,
0
,
'n'
},
{
"name"
,
required_argument
,
0
,
'n'
},
{
"help"
,
no_argument
,
0
,
'h'
},
{
"help"
,
no_argument
,
0
,
'h'
},
{
"usage"
,
no_argument
,
0
,
OPT_USAGE
},
{
"usage"
,
no_argument
,
0
,
OPT_USAGE
},
{
"version"
,
no_argument
,
0
,
OPT_VERSION
},
{
"version"
,
no_argument
,
0
,
OPT_VERSION
},
{
"quiet"
,
no_argument
,
0
,
'q'
},
{
"quiet"
,
no_argument
,
0
,
'q'
},
...
@@ -440,7 +440,7 @@ static void print_usage(const struct option longopts[])
...
@@ -440,7 +440,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 @
e749acdf
...
@@ -132,7 +132,7 @@ static void print_usage(const struct option longopts[],
...
@@ -132,7 +132,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