Skip to content

Commit

Permalink
version info from release archive, fix GATB#47
Browse files Browse the repository at this point in the history
  • Loading branch information
EricDeveaud committed Jan 12, 2021
1 parent 9b7b581 commit c7bfb0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/bcalm_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ struct Functor { void operator () (bcalm_1 *bcalm)

void bcalm_1::execute (){

std::cout << "BCALM 2, version " << VERSION;
#ifdef GIT_SHA1
std::cout << "BCALM 2, version " << VERSION << ", git commit " << GIT_SHA1 << std::endl;
std::cout << ", git commit " << GIT_SHA1;
#endif
std::cout << std::endl;


/** we get the kmer size chosen by the end user. */
Expand Down
12 changes: 7 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@

int main (int argc, char* argv[])
{



if(argc > 1 && ( strcmp(argv[1],STR_VERSION)==0 || strcmp(argv[1],"-v")==0 ) ){
std::cout << "BCALM 2, version " << VERSION;
#ifdef GIT_SHA1
if(argc > 1 && ( strcmp(argv[1],STR_VERSION)==0 || strcmp(argv[1],"-v")==0 ) ){
std::cout << "BCALM 2, version " << VERSION << ", git commit " << GIT_SHA1 << std::endl;
std::cout << "Using gatb-core version "<< System::info().getVersion() << std::endl;
std::cout << ", git commit " << GIT_SHA1;
#endif
std::cout << std::endl << "Using gatb-core version "<< System::info().getVersion() << std::endl;
return EXIT_SUCCESS;
}
#endif

try
{
Expand Down

0 comments on commit c7bfb0d

Please sign in to comment.