2003-10-03 05:53:28 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
'''
|
|
|
|
This program upgrades the project (created using make_project) with current
|
|
|
|
source/build files. Useful if you are a BOINC developer or closely following
|
|
|
|
BOINC development.
|
|
|
|
'''
|
|
|
|
|
|
|
|
import boinc_path_config
|
|
|
|
from Boinc import boinc_project_path
|
|
|
|
from Boinc.setup_project import *
|
|
|
|
import os
|
|
|
|
|
|
|
|
if os.system(os.path.join(boinc_project_path.PROGRAM_PARENT_DIR,'bin/stop')):
|
|
|
|
raise SystemExit("Couldn't stop BOINC!")
|
|
|
|
|
|
|
|
print "Upgrading files... "
|
|
|
|
|
|
|
|
options.install_method = 'copy'
|
|
|
|
init()
|
|
|
|
install_boinc_files(boinc_project_path.PROGRAM_PARENT_DIR)
|
|
|
|
|
|
|
|
print "Upgrading files... done"
|
|
|
|
print
|
2003-10-28 00:41:03 +00:00
|
|
|
# print "Run `start' to resume BOINC."
|
|
|
|
|
|
|
|
if os.system(os.path.join(boinc_project_path.PROGRAM_PARENT_DIR,'bin/start')):
|
|
|
|
raise SystemExit("Couldn't start BOINC!")
|