Build repo script