From f3eb6cb4534a5a9ea072673d3ef60239966da695 Mon Sep 17 00:00:00 2001 From: Dave Larson Date: Fri, 5 Dec 2014 11:55:19 -0600 Subject: [PATCH] report version and tie to git repo info --- src/exe/bam-readcount/bamreadcount.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exe/bam-readcount/bamreadcount.cpp b/src/exe/bam-readcount/bamreadcount.cpp index 9f7148a..f4d7309 100644 --- a/src/exe/bam-readcount/bamreadcount.cpp +++ b/src/exe/bam-readcount/bamreadcount.cpp @@ -4,6 +4,7 @@ #include "bamrc/auxfields.hpp" #include "bamrc/ReadWarnings.hpp" +#include "version.h" #include #include "bamrc/BasicStat.hpp" @@ -450,7 +451,7 @@ int main(int argc, char *argv[]) po::notify(vm); if (vm.count("version")) { - cout << "bam-readcount version 0.7\n"; + cout << "bam-readcount version: " << __g_prog_version << " (commit " << __g_commit_hash << ")\n"; return 1; }