Eric Stadtherr wrote:
I made the script available at:
http://stadtherr.bounceme.net/files/install.csh
http://stadtherr.bounceme.net/files/install.cshUsage is simple. Place the install.csh at the top level of your roundcubemail working copy directory, and run: # install.csh <destination>
For example, on my webserver I run:
# install.csh /Library/WebServer/SecureDocuments/roundcubemail
VoilĂ !
It will happily copy on top of an existing installation, but it won't remove any files in the destination that aren't in the working copy (i.e. it doesn't do a "sync" just a "copy over").
You may want to also take a look at Phing (http://phing.info) for these types of deploy/install scripts. Phing is basically Apache Ant but written in PHP. We use Phing quite heavily at work for these types of deployment tasks (and running phpunit tests, building selenium scripts, etc. etc.). It's particularly useful for copying sets of files with explicit inclusions & exclusions.
Cheers, Hans