Adds build scripts for cambridge closed.
Extracts common logic to base scripts.