Changeset 791 for trunk


Ignore:
Timestamp:
Jun 20, 2009, 7:01:05 PM (12 years ago)
Author:
Peter Johansson
Message:

added info on apr and svn in version output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OptionVersion.cc

    r733 r791  
    22
    33/*
    4   Copyright (C) 2008 Peter Johansson
     4  Copyright (C) 2008, 2009 Peter Johansson
    55
    66  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    2828#include "subversion_info.h"
    2929#include "utility.h"
     30
     31#include <subversion-1/svn_version.h>
     32
     33#include <apr_version.h>
    3034
    3135#include <sstream>
     
    6266       << "<http://www.gnu.org/licenses/gpl.html>.\n"
    6367       << "There is NO WARRANTY; to the extent permitted by law.\n";
     68    if (!no_verbose) {
     69      cs << "\n"
     70         << "Compiled with libsvn_subr " << SVN_VER_NUM
     71         << "; using libsvn_subr ";
     72      const svn_version_t* svn_ver = svn_subr_version();
     73      cs << svn_ver->major << '.' << svn_ver->minor << '.' << svn_ver->patch;
     74      cs << "\n"
     75         << "Compiled with libapr " << APR_VERSION_STRING
     76         << "; using libapr ";
     77      cs << apr_version_string();
     78      cs << "\n";
     79    }
    6480    exit(0);
    6581  }
Note: See TracChangeset for help on using the changeset viewer.