monotone

monotone Mtn Source Tree

Root/mt_version.cc

1// copyright (C) 2004 Nathaniel Smith <njs@pobox.com>
2// all rights reserved.
3// licensed to the public under the terms of the GNU GPL (>= 2)
4// see the file COPYING for details
5
6// This is split off into its own file to minimize recompilation time; it is
7// the only .cc file that depends on the revision/full_revision header files,
8// which change constantly.
9
10#include "config.h"
11
12#include <iostream>
13
14#include "platform.hh"
15#include "mt_version.hh"
16#include "package_revision.h"
17#include "package_full_revision.h"
18
19void
20print_version()
21{
22 std::cout << PACKAGE_STRING
23 << " (base revision: " << package_revision_constant << ")" << std::endl;
24}
25
26void
27print_full_version()
28{
29 print_version();
30 std::string s;
31 get_system_flavour(s);
32 std::cout << "Running on: " << s << std::endl;
33 std::cout << "Changes since base revision:" << std::endl
34 << package_full_revision_constant;
35}
36

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status