The Great Build Script Upheaval

 What idiot wrote this crap without functions, anyway?