From 758d73a89c019c522633e2b400102e684c6e72d0 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Fri, 4 Jun 2004 13:26:46 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3504 --- checkin_notes | 7 +++++++ py/Boinc/setup_project.py | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 5c5e25e389..a8dd9f8b51 100755 --- a/checkin_notes +++ b/checkin_notes @@ -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 + diff --git a/py/Boinc/setup_project.py b/py/Boinc/setup_project.py index 8296a72cbf..bb1b3798cd 100644 --- a/py/Boinc/setup_project.py +++ b/py/Boinc/setup_project.py @@ -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)),