2003-07-18 23:20:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
echo "this file is obsolete! cvs remove when ready"
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
|
2003-02-12 23:06:49 +00:00
|
|
|
#! /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;
|
2003-02-14 22:59:25 +00:00
|
|
|
$project->short_name = "apt";
|
|
|
|
$project->long_name = "Astropulse";
|
2003-02-12 23:06:49 +00:00
|
|
|
|
2003-06-11 23:36:47 +00:00
|
|
|
// Solaris version
|
|
|
|
$platform_sol = new Platform("sparc-sun-solaris2.7", "Solaris");
|
2003-02-12 23:06:49 +00:00
|
|
|
|
|
|
|
$app = new App("Astropulse");
|
2003-06-11 23:36:47 +00:00
|
|
|
$app_version_sol = new App_Version($app);
|
|
|
|
$app_version_sol->platform = $platform_sol;
|
|
|
|
$app_version_sol->exec_dir = "../apps";
|
|
|
|
$app_version_sol->version = 9;
|
|
|
|
$app_version_sol->exec_name = "ap_sparc_0.09";
|
|
|
|
|
|
|
|
// Linux version
|
|
|
|
$platform_lin = new Platform("i686-pc-linux-gnu", "Linux");
|
|
|
|
|
|
|
|
$app_version_lin = new App_Version($app);
|
|
|
|
$app_version_lin->platform = $platform_lin;
|
|
|
|
$app_version_lin->exec_dir = "../apps";
|
|
|
|
$app_version_lin->version = 9;
|
|
|
|
$app_version_lin->exec_name = "ap_linux_0.09";
|
|
|
|
|
|
|
|
/*
|
2003-02-12 23:06:49 +00:00
|
|
|
$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";
|
2003-02-24 21:58:23 +00:00
|
|
|
$core_app_version->version = 13;
|
2003-02-14 22:59:25 +00:00
|
|
|
$core_app_version->exec_name = "BOINC_0.13a.exe";
|
2003-06-11 23:36:47 +00:00
|
|
|
*/
|
2003-02-12 23:06:49 +00:00
|
|
|
|
|
|
|
$project->add_app($app);
|
2003-06-11 23:36:47 +00:00
|
|
|
$project->add_app_version($app_version_sol);
|
|
|
|
$project->add_app_version($app_version_lin);
|
|
|
|
//$project->add_app($core_app);
|
|
|
|
//$project->add_app_version($core_app_version);
|
|
|
|
$project->shmem_key = 0x3141a666;
|
2003-02-12 23:06:49 +00:00
|
|
|
$project->project_php_file = "project_ap.inc";
|
2003-02-24 21:31:36 +00:00
|
|
|
$project->project_prefs_php_file = "project_specific_prefs_ap.inc";
|
2003-02-12 23:06:49 +00:00
|
|
|
|
|
|
|
$project->install();
|
2003-06-11 23:36:47 +00:00
|
|
|
$project->install_feeder();
|
|
|
|
$project->install_assimilator($app);
|
|
|
|
$project->install_file_delete();
|
|
|
|
$project->install_validate($app,3);
|
|
|
|
$project->start_servers();
|
2003-02-12 23:06:49 +00:00
|
|
|
|
2003-06-11 23:36:47 +00:00
|
|
|
/*$work = new Work($app);
|
2003-02-12 23:06:49 +00:00
|
|
|
$work->wu_template = "pulse_wu";
|
|
|
|
$work->result_template = "pulse_result";
|
|
|
|
$work->redundancy = 5;
|
|
|
|
array_push($work->input_files, "03au00ab_20575_00000.wu");
|
2003-06-11 23:36:47 +00:00
|
|
|
$work->install($project);*/
|
2003-02-12 23:06:49 +00:00
|
|
|
?>
|