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#include "sanity.hh"
19
20void
21print_version()
22{
23 std::cout << (F("%s (base revision: %s)")
24 % PACKAGE_STRING % package_revision_constant)
25 << std::endl;
26}
27
28void
29print_full_version()
30{
31 print_version();
32 std::string s;
33 get_system_flavour(s);
34 std::cout << F("Running on: %s\n"
35 "Changes since base revision: %s\n")
36 % s
37 % package_full_revision_constant;
38}
39

Archive Download this file

Branches

Tags

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