See the main project
BUILDING.md
for details on how to use this script.