Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
c3c04cbc
Commit
c3c04cbc
authored
Sep 12, 2007
by
Tiago Peixoto
Browse files
added git commit information to program version
parent
c3a6567d
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.in
View file @
c3c04cbc
dnl Process this file with autoconf to produce a configure script.
AC_INIT(graph-tool, 1.
1.3
devel)
AC_INIT(graph-tool, 1.
2.0
devel)
AC_CONFIG_SRCDIR(src/graph-tool)
AM_INIT_AUTOMAKE
AM_PROG_CC_C_O
...
...
@@ -190,7 +190,7 @@ AC_DEFINE_UNQUOTED([COPYRIGHT],
"Copyright (C) 2007 Tiago de Paula Peixoto\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.",
[copyright info])
AC_DEFINE([
SVN_REVISION], "esyscmd(svnversion -n .)", [svn revision number
])
AC_DEFINE([
GIT_COMMIT], "esyscmd(git show | head -n 1 | sed 's/commit //' | tr -d '\n')", [git commit hash
])
dnl fi
AC_OUTPUT([
...
...
src/graph/graph_bind.cc
View file @
c3c04cbc
...
...
@@ -244,7 +244,7 @@ struct LibInfo
string
GetName
()
const
{
return
PACKAGE_NAME
;}
string
GetAuthor
()
const
{
return
AUTHOR
;}
string
GetCopyright
()
const
{
return
COPYRIGHT
;}
string
GetVersion
()
const
{
return
VERSION
" (
r"
SVN_REVISION
")"
;}
string
GetVersion
()
const
{
return
VERSION
" (
commit "
GIT_COMMIT
")"
;}
string
GetLicense
()
const
{
return
"GPL version 3 or above"
;}
};
...
...
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