source: trunk/FACT++/src/FACT.cc@ 10652

Last change on this file since 10652 was 10652, checked in by tbretz, 10 years ago
File size: 1.0 KB
Line 
1#include "FACT.h"
2
3#include <iostream>
4
5#include <boost/filesystem.hpp>
6
7/*
8 The first line of the --version information is assumed to be in one
9 of the following formats:
10
11 <version>
12 <program> <version>
13 {GNU,Free} <program> <version>
14 <program> ({GNU,Free} <package>) <version>
15 <program> - {GNU,Free} <package> <version>
16
17 and separated from any copyright/author details by a blank line.
18
19 Handle multi-line bug reporting sections of the form:
20
21 Report <program> bugs to <addr>
22 GNU <package> home page: <url>
23 ...
24*/
25void FACT::PrintVersion(const char *name)
26{
27 std::string n = boost::filesystem::basename(name);
28 if (n.substr(0, 3)=="lt-")
29 n = n.substr(3);
30
31 std::cout <<
32 n << " - "PACKAGE_STRING"\n"
33 "\n"
34 "Written by Thomas Bretz et al.\n"
35 "\n"
36 "Report bugs to <"PACKAGE_BUGREPORT">\n"
37 "Home page: "PACKAGE_URL"\n"
38 "\n"
39 "Copyright (C) 2011 by the FACT Collaboration.\n"
40 "This is free software; see the source for copying conditions.\n"
41 << std::endl;
42}
Note: See TracBrowser for help on using the repository browser.