Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
d47db772
Commit
d47db772
authored
Aug 06, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the version identifier to the CLI banner.
Inspired by: patch from geoff
parent
f81aeddd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
mgt_cli.c
bin/varnishd/mgt/mgt_cli.c
+1
-0
vcs.h
include/vcs.h
+1
-0
version.c
lib/libvarnish/version.c
+4
-2
No files found.
bin/varnishd/mgt/mgt_cli.c
View file @
d47db772
...
...
@@ -80,6 +80,7 @@ mcf_banner(struct cli *cli, const char *const *av, void *priv)
VCLI_Out
(
cli
,
"Varnish Cache CLI 1.0
\n
"
);
VCLI_Out
(
cli
,
"-----------------------------
\n
"
);
VCLI_Out
(
cli
,
"%s
\n
"
,
VSB_data
(
vident
)
+
1
);
VCLI_Out
(
cli
,
"%s
\n
"
,
VCS_version
);
VCLI_Out
(
cli
,
"
\n
"
);
VCLI_Out
(
cli
,
"Type 'help' for command list.
\n
"
);
VCLI_Out
(
cli
,
"Type 'quit' to close CLI session.
\n
"
);
...
...
include/vcs.h
View file @
d47db772
...
...
@@ -29,4 +29,5 @@
*/
/* from libvarnish/version.c */
extern
const
char
*
VCS_version
;
void
VCS_Message
(
const
char
*
);
lib/libvarnish/version.c
View file @
d47db772
...
...
@@ -36,11 +36,13 @@
#include "vcs.h"
#include "vcs_version.h"
const
char
*
VCS_version
=
PACKAGE_TARNAME
"-"
PACKAGE_VERSION
" revision "
VCS_Version
;
void
VCS_Message
(
const
char
*
progname
)
{
fprintf
(
stderr
,
"%s (%s-%s revision %s)
\n
"
,
progname
,
PACKAGE_TARNAME
,
PACKAGE_VERSION
,
VCS_Version
);
fprintf
(
stderr
,
"%s (%s)
\n
"
,
progname
,
VCS_version
);
fprintf
(
stderr
,
"Copyright (c) 2006 Verdens Gang AS
\n
"
);
fprintf
(
stderr
,
"Copyright (c) 2006-2011 Varnish Software AS
\n
"
);
}
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