- ExternalTask::Arguments argv;
- argv.push_back(executable->get_path().str());
- argv.push_back("-dumpversion");
-
- builder.get_logger().log("auxcommands", format("Running %s", join(argv.begin(), argv.end())));
- string version;
- try
- {
- version = strip(ExternalTask::run_and_capture_output(argv));
- builder.get_logger().log("tools", format("%s version is %s", FS::basename(executable->get_path()), version));
- }
- catch(const runtime_error &)
- { }
-
+ string version_str = format("%d.%d.%d", version>>16, (version>>8)&0xFF, version&0xFF);