I currently have a web app that has 3 front ends (depending on what URL you go to) that shares very little code between the 3 front ends. My directory structure looks like this:
\app1
\includes
\html
\app2
\includes
\html
\app3
\includes
\html
\crons
\libs
\logs
\setup
\db
\shared
\globalFunctions
\oldAPI
\oldClasses
The App folders are the individual front ends with their own inclusive includes and docroot's in 'html'. Crons is just for CLI jobs, libs are newer PHP5 libraries such as the new code we write and things like Zend Framework. Logs are app logs, setup is setup info for deployment, and shared is the old PHP4 codebase that some of the code still relies on. Everything is stored in one big SVN repo.
What would be a sane way to break this up so that I can turn this one big SVN project into smaller ones so that it would make it easier to branch and merge? Most projects focus on a single app anyway so it is rare when code needs to be updated in multiple places.
Or is it better to keep this current structure and just go along as we port the PHP4 code to OO PHP5 and naturally drop things out?