My old (pre-sbt-0.13.5) script for project deployment. Need to rework in some near future