add a distribution script (closes #260)