source: trunk/lib/subversion_info.h @ 726

Last change on this file since 726 was 726, checked in by Peter Johansson, 13 years ago

refs #362

lifting out copyright year to its own file. The source file
lib/copyright_year.cc is automatically updated when being in svn wc
(i.e. not dist or svn export).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#ifndef _theplu_svndigest_subversion_info_
2#define _theplu_svndigest_subversion_info_
3
4// $Id: subversion_info.h 726 2008-12-09 22:14:16Z peter $
5
6/*
7  Copyright (C) 2007, 2008 Peter Johansson
8
9  This file is part of svndigest, http://dev.thep.lu.se/svndigest
10
11  svndigest is free software; you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 3 of the License, or
14  (at your option) any later version.
15
16  svndigest is distributed in the hope that it will be useful, but
17  WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20
21  You should have received a copy of the GNU General Public License
22  along with svndigest. If not, see <http://www.gnu.org/licenses/>.
23*/
24
25#include <string>
26
27namespace theplu{
28namespace svndigest{
29
30  // These functions are (mis)placed here to reflect compilation time
31  // of subversion_info.cc. Previously, __TIME__ macro was placed in
32  // `bin/Parameter.cc' and since the Parameter is almost independent
33  // of other parts of the package, that compilation time does not
34  // very accurately reflect the building time of the svndigest
35  // binary. subversion_info.cc is at least modified when updating
36  // against repository and therefore these functions will return a
37  // time no earlier than last `svn update'
38  std::string compilation_date(void);
39  std::string compilation_time(void);
40
41  std::string svn_revision(void);
42
43}} // end of namespace svndigest and namespace theplu
44
45#endif
Note: See TracBrowser for help on using the repository browser.