Commit c3c04cbc authored by Tiago Peixoto's avatar Tiago Peixoto

added git commit information to program version

parent c3a6567d
dnl Process this file with autoconf to produce a configure script. 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)
AC_CONFIG_SRCDIR(src/graph-tool) AC_CONFIG_SRCDIR(src/graph-tool)
AM_INIT_AUTOMAKE AM_INIT_AUTOMAKE
AM_PROG_CC_C_O AM_PROG_CC_C_O
...@@ -190,7 +190,7 @@ AC_DEFINE_UNQUOTED([COPYRIGHT], ...@@ -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 (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]) [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 dnl fi
AC_OUTPUT([ AC_OUTPUT([
......
...@@ -244,7 +244,7 @@ struct LibInfo ...@@ -244,7 +244,7 @@ struct LibInfo
string GetName() const {return PACKAGE_NAME;} string GetName() const {return PACKAGE_NAME;}
string GetAuthor() const {return AUTHOR;} string GetAuthor() const {return AUTHOR;}
string GetCopyright() const {return COPYRIGHT;} 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";} string GetLicense() const {return "GPL version 3 or above";}
}; };
......
Markdown is supported
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