source: tags/Mars-V0.10.1/mars-config.cc@ 9893

Last change on this file since 9893 was 8033, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 878 bytes
Line 
1#include <iostream>
2
3#include <RVersion.h>
4
5using namespace std;
6
7static void Usage()
8{
9 cout << endl;
10 cout << "Sorry the usage is:" << endl;
11 cout << " mars-config [--root-ver|--mars-ver]" << endl;
12 cout << endl;
13 cout << "Options:" << endl;
14 cout << " --root-ver Show root version which were used for compilation." << endl;
15 cout << " To be compared with the output of \"root-config --version\"" << endl;
16 cout << " --version Show mars version." << endl;
17 cout << endl;
18 cout << "Only one command line option is allowed." << endl;
19 cout << endl;
20}
21
22int main(int argc, char *const argv[])
23{
24 if (argc!=2)
25 {
26 Usage();
27 return 2;
28 }
29
30 if (!strcmp(argv[1], "--root-ver"))
31 cout << ROOT_RELEASE << endl;
32 if (!strcmp(argv[1], "--version"))
33 cout << MARSVER << endl;
34
35 return 0;
36}
Note: See TracBrowser for help on using the repository browser.