Changeset 620
- Timestamp:
- Apr 23, 2008, 2:43:10 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/Parameter.cc
r619 r620 263 263 ColumnStream cs(std::cout, 1); 264 264 cs.width(0)=79; 265 cs << PACKAGE_STRING; 266 cs << " ("; 267 if (DEV_BUILD) 268 cs << "r" << svn_revision() << " "; 269 cs << "compiled " << __DATE__ ", " << __TIME__ << ")\n"; 270 265 cs << PACKAGE_STRING << version_string() << "\n"; 271 266 cs << "\nCopyright (C) " << svn_year() 272 267 << " Jari H\u00E4kkinen and Peter Johansson.\n" -
trunk/lib/html_utility.cc
r589 r620 68 68 << anchor("http://trac.thep.lu.se/svndigest/", 69 69 PACKAGE_STRING, 0, ""); 70 if (DEV_BUILD) 71 os << " (r" << svn_revision() << ")"; 70 os << version_string() << "\n"; 72 71 os << "\n</p>\n</div>\n</body>\n</html>\n"; 73 72 } -
trunk/lib/subversion_info.cc.in
r581 r620 28 28 namespace svndigest{ 29 29 30 std::string compilation_date(void) 31 { 32 return __DATE__; 33 } 34 35 36 std::string compilation_time(void) 37 { 38 return __TIME__; 39 } 40 41 30 42 std::string svn_revision(void) 31 43 { -
trunk/lib/subversion_info.h
r569 r620 30 30 namespace svndigest{ 31 31 32 // This functions are (mis)placed here to reflect compilation time 33 // of subversion_info.cc. Previously, __TIME__ macro was placed in 34 // `bin/Parameter.cc' and since the Parameter is almost independent 35 // of other parts of the package, that compilation time does not 36 // very accurately reflect the building time of the svndigest 37 // binary. subversion_info.cc is at least modified when updating 38 // against repository and therefore these functions will return a 39 // time no earlier than last `svn update' 40 std::string compilation_date(void); 41 std::string compilation_time(void); 42 32 43 std::string svn_revision(void); 33 44 -
trunk/lib/utility.cc
r589 r620 23 23 24 24 #include "utility.h" 25 26 #include "subversion_info.h" 27 #include "config.h" 25 28 26 29 #include <cassert> … … 321 324 322 325 326 std::string version_string(void) 327 { 328 std::stringstream ss; 329 ss << " ("; 330 if (DEV_BUILD) 331 ss << "r" << svn_revision() << " "; 332 ss << "compiled " << compilation_time() << ", " << compilation_date() 333 << ")"; 334 return ss.str(); 335 } 336 337 323 338 std::string match(std::string::const_iterator& first, 324 339 const std::string::const_iterator& last, -
trunk/lib/utility.h
r589 r620 200 200 inline std::string trim(std::string str) { return htrim(ltrim(str)); } 201 201 202 /// 203 /// \return string with version info 204 /// 205 std::string version_string(void); 206 202 207 203 208 template <typename T>
Note: See TracChangeset
for help on using the changeset viewer.