Commit 41d262b0 authored by Karl Chen's avatar Karl Chen

*** empty log message ***

svn path=/trunk/boinc/; revision=2269
parent ce576eb9
......@@ -6163,3 +6163,20 @@ David Sept 5 2003
db_ops.php
sched/
*.C
Karl 2003/09/05
- restructured application add system; rewrote update_versions:
- applications now go in <config.xml:apps_dir>/APPLICATION/
- update_versions checks for all versions of core client and all
applications, regardless of package version
py/Boinc/
configxml.py
database.py
db_mid.py
tools.py (new)
tools/
add.py
update_versions
#! /bin/sh
# From configure.ac Revision: 1.37 .
# From configure.ac Revision: 1.40 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for BOINC 2.01.
#
......@@ -7835,5 +7835,18 @@ fi
echo "--- Configured BOINC 2.01 ---"
test/test_sanity.py
test/test_sanity.py || (
cat <<EOF
The framework sanity check failed.
If you only want to compile the client or compile the server, this may be okay.
If you want to develop BOINC and be able to run the automated tests, you need
a MySQL server installed and running, with permission to create databases.
EOF
)
......@@ -153,7 +153,20 @@ AC_CONFIG_HEADER([config.h])
AC_OUTPUT
[
echo "--- Configured BOINC AC_PACKAGE_VERSION ---"
test/test_sanity.py
test/test_sanity.py || (
cat <<EOF
The framework sanity check failed.
If you only want to compile the client or compile the server, this may be okay.
If you want to develop BOINC and be able to run the automated tests, you need
a MySQL server installed and running, with permission to create databases.
EOF
)
]
......@@ -24,7 +24,9 @@ at <code>configure</code>-time.
If you modify <code>Makefile.am</code>, you need to
regenerate <code>Makefile.in</code> using <code>automake</code>, and
your machine-dependent <code>Makefile</code>
using <code>config.status</code>.
using <code>config.status</code>. (The <code>boinc/_autosetup</code>
script takes care of all of these; run this script every time you modify
a makefile.)
</td></tr>
<tr><td nowrap><code>configure --enable-maintainer-mode</code></td>
<td>Enabled</td><td>
......
......@@ -2,7 +2,9 @@
# $Id$
# change boinc version number in configure.ac
# Change boinc version number in configure.ac and generate files.
# syntax: set-version 7.17
die()
{
......
......@@ -2,9 +2,9 @@
include $(top_srcdir)/Makefile.incl
bin_PROGRAMS = create_work add country_select sign_executable
bin_PROGRAMS = create_work old_add country_select sign_executable
EXTRA_DIST = make_project
EXTRA_DIST = make_project add.py update_version
# TODO: use libboinc for these:
......@@ -26,22 +26,22 @@ create_work_DEPENDENCIES = $(LIBRSA)
create_work_LDADD = $(RSA_LIBS) $(MYSQL_LIBS)
## deprecated
add_SOURCES = \
add.C \
backend_lib.C \
process_result_template.C \
../lib/md5_file.C \
../lib/md5.c \
../lib/parse.C \
../lib/util.C \
../db/boinc_db.C \
../db/db_base.C \
../lib/crypt.C \
../sched/sched_config.C \
old_add_SOURCES = \
add.C \
backend_lib.C \
process_result_template.C \
../lib/md5_file.C \
../lib/md5.c \
../lib/parse.C \
../lib/util.C \
../db/boinc_db.C \
../db/db_base.C \
../lib/crypt.C \
../sched/sched_config.C \
backend_lib.h
add_DEPENDENCIES = $(LIBRSA)
add_LDADD = $(RSA_LIBS) $(MYSQL_LIBS)
old_add_DEPENDENCIES = $(LIBRSA)
old_add_LDADD = $(RSA_LIBS) $(MYSQL_LIBS)
sign_executable_SOURCES = \
sign_executable.C \
......
This diff is collapsed.
......@@ -96,7 +96,7 @@ void add_project() {
strcpy(project.long_name, project_long_name);
retval = project.insert();
if (retval) {
boinc_db_print_error("project.insert()");
boinc_db.print_error("project.insert()");
}
}
......@@ -114,7 +114,7 @@ void add_app() {
app.min_version = version;
retval = app.insert();
if (retval) {
boinc_db_print_error("app.insert()");
boinc_db.print_error("app.insert()");
}
}
......@@ -136,7 +136,7 @@ void add_platform() {
platform.create_time = time(0);
retval = platform.insert();
if (retval) {
boinc_db_print_error("platform.insert()");
boinc_db.print_error("platform.insert()");
}
}
......@@ -221,7 +221,7 @@ void add_core_version() {
retval = platform.lookup(buf);
if (retval) {
fprintf(stderr, "add_core_version(): can't find platform %s\n", platform_name);
boinc_db_print_error("platform.lookup()");
boinc_db.print_error("platform.lookup()");
return;
}
core_version.platformid = platform.id;
......@@ -237,7 +237,7 @@ void add_core_version() {
core_version.create_time = time(0);
retval = core_version.insert();
if (retval) {
boinc_db_print_error("core_version.insert()");
boinc_db.print_error("core_version.insert()");
}
}
......@@ -260,7 +260,7 @@ void add_app_version() {
retval = app.lookup(buf);
if (retval) {
fprintf(stderr, "add_app_version(): can't find app %s\n", app_name);
boinc_db_print_error("app.lookup()");
boinc_db.print_error("app.lookup()");
return;
}
app_version.appid = app.id;
......@@ -268,7 +268,7 @@ void add_app_version() {
retval = platform.lookup(buf);
if (retval) {
fprintf(stderr, "add_app_version(): can't find platform %s\n", platform_name);
boinc_db_print_error("platform.lookup()");
boinc_db.print_error("platform.lookup()");
return;
}
app_version.platformid = platform.id;
......@@ -318,7 +318,7 @@ void add_app_version() {
app_version.create_time = time(0);
retval = app_version.insert();
if (retval) {
boinc_db_print_error("app_version.insert()");
boinc_db.print_error("app_version.insert()");
return;
}
}
......@@ -342,7 +342,7 @@ void add_user() {
}
retval = user.insert();
if (retval) {
boinc_db_print_error("user.insert()");
boinc_db.print_error("user.insert()");
return;
}
}
......@@ -426,7 +426,7 @@ int main(int argc, char** argv) {
strcpy(code_sign_keyfile, argv[++i]);
}
}
retval = boinc_db_open(db_name, db_passwd);
retval = boinc_db.open(db_name, db_passwd);
if (retval) {
fprintf(stderr, "can't open DB %s\n", db_name);
exit(1);
......@@ -446,6 +446,6 @@ int main(int argc, char** argv) {
} else {
printf("Unrecognized command\n");
}
boinc_db_close();
boinc_db.close();
exit(0);
}
......@@ -171,7 +171,7 @@ int main(int argc, char** argv) {
#undef CHKARG
#undef CHKARG_STR
if (boinc_db_open(db_name, db_passwd)) {
if (boinc_db.open(db_name, db_passwd)) {
fprintf(stderr, "create_work: error opening database.\n" );
exit(0);
}
......@@ -224,5 +224,5 @@ int main(int argc, char** argv) {
);
if (retval) fprintf(stderr, "create_work: %d\n", retval);
}
boinc_db_close();
boinc_db.close();
}
......@@ -4,7 +4,9 @@
# Creates a new BOINC project.
# TODO: use database.py (mainly for setup_project.py)
# TOOD: don't add app / app version here.
# TODO: don't add app / app version here.
# TODO: create 'apps' subdirectory and set it in config.xml
# TODO: use configxml module
import sys, os, getopt, re
sys.path.append('../py')
......
......@@ -15,8 +15,8 @@ file names must be of the form NAME_VERSION_PLATFORM[.ext]:
astropulse_7.17_i686-pc-linux-gnu.gz
astropulse_7.17_windows_intelx86.exe
The name and extensions .gz, .exe, .sit are ignored. Platform strings must
match the names of platforms in the database.
The prefix name and extensions .gz, .exe, .sit are ignored. Platform strings
must match the names of platforms in the database.
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment