File: make_project.php

package info (click to toggle)
boinc 5.4.11-4%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 21,440 kB
  • ctags: 16,986
  • sloc: cpp: 70,682; ansic: 45,747; php: 35,513; xml: 10,487; sh: 9,324; python: 4,291; makefile: 1,958; asm: 1,258; perl: 914; sql: 395; csh: 126; pascal: 124
file content (47 lines) | stat: -rw-r--r-- 1,399 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh

echo "this file is obsolete! cvs remove when ready"
exit 1


#! /usr/local/bin/php
<?php
    // This script creates a BOINC project.
    // You just need to plug in an application,
    // and back-end systems for creating work and validating results

    include_once("test.inc");

    $project = new Project;
    $project->short_name = "project_name";
    $project->long_name = "Your Project";

    $platform = new Platform("windows_intelx86", "Windows");

    $app = new App("Astropulse");
    $app_version = new App_Version($app);
    $app_version->platform = $platform;
    $app_version->exec_dir = "../apps";
    $app_version->exec_name = "ap_win_0.02.exe";

    $core_app = new App("core client");
    $core_app_version = new App_Version($core_app);
    $core_app_version->platform = $platform;
    $core_app_version->exec_dir = "../apps";
    $core_app_version->exec_name = "BOINC_0.10.exe";

    $project->add_app($app);
    $project->add_app_version($app_version);
    $project->add_app($core_app);
    $project->add_app_version($core_app_version);
    $project->start_assimilator = true;
    $project->start_feeder = true;
    $project->start_file_deleter = true;
    $project->start_make_work = true;
    $project->start_timeout_check = true;
    $project->start_validate = true;
    $project->shmem_key = 0x31415926;

    $project->install();
    $project->start_feeder();
?>