change extraction of revision and build from revision.cc, and use in the build, packa...