This is done by the packaging tasks added when you `rake package:bootstrap`; you can check them out down in there.