Index: /trunk/FACT++/src/FACT.cc
===================================================================
--- /trunk/FACT++/src/FACT.cc	(revision 10652)
+++ /trunk/FACT++/src/FACT.cc	(revision 10652)
@@ -0,0 +1,42 @@
+#include "FACT.h"
+
+#include <iostream>
+
+#include <boost/filesystem.hpp>
+
+/*
+ The first line of the --version information is assumed to be in one
+ of the following formats:
+
+   <version>
+   <program> <version>
+   {GNU,Free} <program> <version>
+   <program> ({GNU,Free} <package>) <version>
+   <program> - {GNU,Free} <package> <version>
+
+ and separated from any copyright/author details by a blank line.
+
+ Handle multi-line bug reporting sections of the form:
+
+   Report <program> bugs to <addr>
+   GNU <package> home page: <url>
+   ...
+*/
+void FACT::PrintVersion(const char *name)
+{
+    std::string n = boost::filesystem::basename(name);
+    if (n.substr(0, 3)=="lt-")
+        n = n.substr(3);
+
+    std::cout <<
+        n << " - "PACKAGE_STRING"\n"
+        "\n"
+        "Written by Thomas Bretz et al.\n"
+        "\n"
+        "Report bugs to <"PACKAGE_BUGREPORT">\n"
+        "Home page: "PACKAGE_URL"\n"
+        "\n"
+        "Copyright (C) 2011 by the FACT Collaboration.\n"
+        "This is free software; see the source for copying conditions.\n"
+        << std::endl;
+}
Index: /trunk/FACT++/src/FACT.h
===================================================================
--- /trunk/FACT++/src/FACT.h	(revision 10652)
+++ /trunk/FACT++/src/FACT.h	(revision 10652)
@@ -0,0 +1,9 @@
+#ifndef FACT_FACT
+#define FACT_FACT
+
+namespace FACT
+{
+    void PrintVersion(const char *name);
+}
+
+#endif
