~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to tools/dir_hier_path.cpp

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
// and creates the directory if needed.
23
23
 
24
24
#include "config.h"
25
 
#include <stdio.h>
 
25
#include <cstdio>
26
26
 
27
27
#include "util.h"
28
28
#include "sched_config.h"
29
29
#include "sched_util.h"
 
30
#include "str_util.h"
30
31
 
31
32
 
32
33
const char *usage = 
44
45
      exit(1);
45
46
    }
46
47
 
47
 
    retval = config.parse_file(".");
 
48
    retval = config.parse_file();
48
49
    if (retval) {
49
 
        fprintf(stderr, "Can't find config.xml; run this in project root dir\n");
 
50
        fprintf(stderr, "Can't parse config.xml: %s\n", boincerror(retval));
50
51
        exit(1);
51
52
    }
52
53
 
60
61
    printf("%s\n", path);
61
62
}
62
63
 
63
 
const char *BOINC_RCSID_c683969ea8 = "$Id: dir_hier_path.cpp 16069 2008-09-26 18:20:24Z davea $";
 
64
const char *BOINC_RCSID_c683969ea8 = "$Id: dir_hier_path.cpp 18042 2009-05-07 13:54:51Z davea $";