Automatic generation of distribution files