Commit c3c04cbc authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

added git commit information to program version

parent c3a6567d
dnl Process this file with autoconf to produce a configure script.
AC_INIT(graph-tool, 1.1.3devel)
AC_INIT(graph-tool, 1.2.0devel)
......@@ -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
......@@ -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";}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment