From: Alex B. <en...@tu...> - 2001-09-24 00:32:16
|
hi jason, I'm going to check something similar into CVS this week, but here's the jist of the spec for Multi-site make. First, I'm going to change the directory structure shortly (egh, can't wait for subversion) to match the following: binarycloud/user/default (a default install used for configs and common files) binarycloud/user/bcdev (the 'development' user tree where we'll test modules, etc. (this will be the current user/tree)) and eventually (later later :) we'll have a user/sample site which is some cute application we can build quickly to show off the capabilities of the system. ---------- Assuming that structure, you can get a basic multi-site make going fairly quickly, it would involve: -changing the build tree to reflect: build/site_name/lang_code/(current normal contents of a lang directory) -looping through the site directories (except default) doing makes ----- That would _work_ but obviously leaves a lot to be desired: -we'd need a ./configure script at source root after this was done to set make targets for each site, so you could run make 'site_name'. While we we're at it, ./Configure could do a ton of other nice things like automatically set some environment variables, check that php -q was available, set file permissions, etc etc etc. (I'll make a list) -it would be very nice to have a MakeConf.xml in user/site_name/conf/ which would be used by ./Configure to generate a Makefile.in for each site. I've got a sample on my home machine which I'll clean up and check into cvs. It's basically a bunch of flags like "zend encode" "strip comments" "use shared core" etc etc. -we'd want to build a tree comparison script which would check that all files in user/default/ existed in user/site_name/ and would include any missing files in the build (but not move them into the site_name's source tree.) As you can see, this starts to be an undertaking, but I think we can start simple and work our way up to something _very_ cool. Let me know if you have any specific questions about any of that stuff. If you intend to start making the changes, let me know and I'll do the directory restructuring sooner rather than later :) best, _alex -- alex black, ceo en...@tu... the turing studio, inc. http://www.turingstudio.com |