From 5b3c9e872b132d648382674d8adc8daabfb4a238 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 8 Apr 2011 19:36:26 +0000 Subject: [PATCH] - "upgrade" script: copy sched/fcgi if it exists svn path=/trunk/boinc/; revision=23357 --- checkin_notes | 6 ++++++ py/Boinc/setup_project.py | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/checkin_notes b/checkin_notes index acd9de8cf2..3f81baf113 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2146,3 +2146,9 @@ David 8 Apr 2011 client/ cs_scheduler.cpp + +David 8 Apr 2011 + - "upgrade" script: copy sched/fcgi if it exists + + py/Boinc/ + setup_project.py diff --git a/py/Boinc/setup_project.py b/py/Boinc/setup_project.py index 796e4cfa07..1db2768ada 100644 --- a/py/Boinc/setup_project.py +++ b/py/Boinc/setup_project.py @@ -362,6 +362,10 @@ sys.path.insert(0, os.path.join('%s', 'py')) if os.path.isfile(dir('cgi-bin', 'cgi')): os.rename(dir('cgi-bin', 'cgi'), dir('cgi-bin', 'cgi.old')) + if os.path.isfile(dir('cgi-bin', 'fcgi')): + os.rename(dir('cgi-bin', 'fcgi'), dir('cgi-bin', 'fcgi.old')) + map(lambda (s): install(builddir('sched',s), dir('cgi-bin',s)), + [ 'fcgi']) if os.path.isfile(dir('cgi-bin', 'file_upload_handler')): os.rename(dir('cgi-bin', 'file_upload_handler'), dir('cgi-bin', 'file_upload_handler.old'))