From: hristov Date: Wed, 20 May 2009 10:36:27 +0000 (+0000) Subject: Implementation of aliroot --version (Laurent) X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=bc5ed32da49ec3e3b714305a7d1d101dd04d2d85 Implementation of aliroot --version (Laurent) --- diff --git a/ALIROOT/CMakeLists.txt b/ALIROOT/CMakeLists.txt index f30e3f3d910..41aacc2e178 100644 --- a/ALIROOT/CMakeLists.txt +++ b/ALIROOT/CMakeLists.txt @@ -6,6 +6,7 @@ set(INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR}/ALIROOT ${CMAKE_SOURCE_DIR}/STEER +${CMAKE_BINARY_DIR}/STEER ${ROOT_INCLUDE_DIR} ) diff --git a/ALIROOT/aliroot.cxx b/ALIROOT/aliroot.cxx index f07c2cc1c37..c41e6dc7ba3 100644 --- a/ALIROOT/aliroot.cxx +++ b/ALIROOT/aliroot.cxx @@ -37,6 +37,8 @@ #include #include #include +#include "Riostream.h" +#include "ARVersion.h" #if defined __linux //On linux Fortran wants this, so we give to it! @@ -70,6 +72,17 @@ int main(int argc, char **argv) // run and event number, the number of vertices, tracks and primary tracks // in the event. + for ( int i = 1; i < argc; ++i ) + { + TString argument(argv[i]); + + if (argument=="--version") + { + cout << "aliroot " << ALIROOT_SVN_REVISION << " " << ALIROOT_SVN_BRANCH << endl; + return 0; + } + } + // Create new configuration new AliRun("gAlice","The ALICE Off-line Simulation Framework");