Auto-build script.