source: trunk/test/tree.cc @ 48

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

Added symbolic link to index.html in output directory.

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