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