replace bash build script with a rake task