script to generate distribution files