source: trunk/test/tree.cc @ 35

Last change on this file since 35 was 35, checked in by Jari Häkkinen, 16 years ago

Continued fixing gnuplot.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 453 bytes
Line 
1// $Id: tree.cc 35 2006-01-12 16:12:14Z jari $
2
3#include "Directory.h"
4
5#include <string>
6#include <unistd.h>
7
8int main(const int argc,const char* argv[])
9{ 
10  using namespace theplu::svnstat;
11
12  bool ok = true;
13
14  system("ln -fns .. testrepo");
15  Directory tree(std::string("testrepo"));
16
17  tree.purge();
18  tree.parse();
19
20  ok = ok && !system("mkdir -p svnstat_output");
21  Stats::gnuplot_pipe_.command("cd 'svnstat_output'");
22  chdir("svnstat_output");
23  tree.print("./");
24 
25  return (ok ? 0 : -1);
26}
Note: See TracBrowser for help on using the repository browser.