summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-04-10 13:09:19 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-04-10 13:09:19 -0400
commitc0f9d4b0f1e4d1d49d238e4b2546de46f51166eb (patch)
tree1840274b5c81d6198ed56e48cd078dc9d7cc37eb /main.cxx
parenta291e87b97bd7eefcd63cc63f37c14ccdae1a268 (diff)
downloadsystemtap-steved-c0f9d4b0f1e4d1d49d238e4b2546de46f51166eb.tar.gz
systemtap-steved-c0f9d4b0f1e4d1d49d238e4b2546de46f51166eb.tar.xz
systemtap-steved-c0f9d4b0f1e4d1d49d238e4b2546de46f51166eb.zip
PR6393: git version tagging at build time
2008-04-10 Frank Ch. Eigler <fche@elastic.org> PR 6393. * git_version.sh: New file, copied from radeonhd. * configure.ac: No longer generate $builddir/SNAPSHOT. * Makefile.am: Generate $builddir/git_version.h. (EXTRA_DIST): Add git_version.h and git_version.sh. * main.cxx (version): Print generated GIT_MESSAGE therefrom. * Makefile.in, configure: Regenerated.
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cxx b/main.cxx
index 4364f664..e90f9f12 100644
--- a/main.cxx
+++ b/main.cxx
@@ -19,6 +19,7 @@
#include "cache.h"
#include "util.h"
#include "coveragedb.h"
+#include "git_version.h"
#include <iostream>
#include <fstream>
@@ -47,6 +48,7 @@ version ()
clog
<< "SystemTap translator/driver "
<< "(version " << VERSION << "/" << dwfl_version (NULL)
+ << " " << GIT_MESSAGE
<< " built " << DATE << ")" << endl
<< "Copyright (C) 2005-2008 Red Hat, Inc. and others" << endl
<< "This is free software; see the source for copying conditions." << endl;