I\'m trying to make sense on the best way to do automatize a series of things in a row in order to deploy a web-app and haven\'t yet came up with a suitable solution. I woul
you may want to check out phing http://phing.info/ (they are in the process of moving servers so may be down this weekend), but it can do all of what you are wanting and is written in php.
A quick google search should bring up plenty of tutorials to get you started.