*** empty log message ***

svn path=/trunk/boinc/; revision=3504
This commit is contained in:
Karl Chen 2004-06-04 13:26:46 +00:00
parent 900d8220c7
commit 758d73a89c
2 changed files with 11 additions and 1 deletions

View File

@ -13007,3 +13007,10 @@ Karl 2004-04-04
lib/
exception.h
util.C
- install_boinc_files(): *do* copy sample_index.php to index.php, unless
it already exists (otherwise test scripts don't work)
py/Boinc/
setup_project.py

View File

@ -123,7 +123,9 @@ def my_link(src,dest):
raise
# install = options.install_function
def install(src, dest):
def install(src, dest, unless_exists=False):
if unless_exists and os.path.exists(dest):
return
options.install_function(src, dest)
def install_glob(glob_source, dest, failok=False):
@ -268,6 +270,7 @@ def install_boinc_files(dest_dir):
install_glob(srcdir('html/user/*.inc'), dir('html/user/'))
install_glob(srcdir('html/user/*.css'), dir('html/user/'))
install_glob(srcdir('html/user/*.txt'), dir('html/user/'))
install(srcdir('html/user/sample_index.php'), dir('html/user/index.php'), unless_exists=True)
# copy all the backend programs
map(lambda (s): install(builddir('sched',s), dir('cgi-bin',s)),