horde: add script to generate build/install order