|
@@ -1112,7 +1112,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args,
|
|
|
int count;
|
|
int count;
|
|
|
if (countFile) {
|
|
if (countFile) {
|
|
|
if (1 != fscanf(countFile, "%i", &count)) {
|
|
if (1 != fscanf(countFile, "%i", &count)) {
|
|
|
- cmSystemTools::Message("Could not read from count file.");
|
|
|
|
|
|
|
+ std::cerr << "Could not read from count file.\n";
|
|
|
}
|
|
}
|
|
|
fclose(countFile);
|
|
fclose(countFile);
|
|
|
} else {
|
|
} else {
|
|
@@ -1426,8 +1426,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args,
|
|
|
action = cmSystemTools::TarActionExtract;
|
|
action = cmSystemTools::TarActionExtract;
|
|
|
} break;
|
|
} break;
|
|
|
default: {
|
|
default: {
|
|
|
- cmSystemTools::Message(
|
|
|
|
|
- std::string("tar: Unknown argument: ") + flag, "Warning");
|
|
|
|
|
|
|
+ std::cerr << "tar: Unknown argument: " << flag << "\n";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1448,8 +1447,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args,
|
|
|
}
|
|
}
|
|
|
} else if (action == cmSystemTools::TarActionCreate) {
|
|
} else if (action == cmSystemTools::TarActionCreate) {
|
|
|
if (files.empty()) {
|
|
if (files.empty()) {
|
|
|
- cmSystemTools::Message("tar: No files or directories specified",
|
|
|
|
|
- "Warning");
|
|
|
|
|
|
|
+ std::cerr << "tar: No files or directories specified\n";
|
|
|
}
|
|
}
|
|
|
if (!cmSystemTools::CreateTar(outFile, files, compress, verbose, mtime,
|
|
if (!cmSystemTools::CreateTar(outFile, files, compress, verbose, mtime,
|
|
|
format)) {
|
|
format)) {
|
|
@@ -1588,7 +1586,11 @@ int cmcmd::HashSumFile(std::vector<std::string> const& args,
|
|
|
std::cerr << "Error: " << filename << " is a directory" << std::endl;
|
|
std::cerr << "Error: " << filename << " is a directory" << std::endl;
|
|
|
retval++;
|
|
retval++;
|
|
|
} else {
|
|
} else {
|
|
|
- std::string value = cmSystemTools::ComputeFileHash(filename, algo);
|
|
|
|
|
|
|
+ std::string value
|
|
|
|
|
+#ifndef CMAKE_BOOTSTRAP
|
|
|
|
|
+ = cmSystemTools::ComputeFileHash(filename, algo)
|
|
|
|
|
+#endif
|
|
|
|
|
+ ;
|
|
|
if (value.empty()) {
|
|
if (value.empty()) {
|
|
|
// To mimic "md5sum/shasum" behavior in a shell:
|
|
// To mimic "md5sum/shasum" behavior in a shell:
|
|
|
std::cerr << filename << ": No such file or directory" << std::endl;
|
|
std::cerr << filename << ": No such file or directory" << std::endl;
|
|
@@ -1684,7 +1686,7 @@ static void cmcmdProgressReport(std::string const& dir, std::string const& num)
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (1 != fscanf(progFile, "%i", &count)) {
|
|
if (1 != fscanf(progFile, "%i", &count)) {
|
|
|
- cmSystemTools::Message("Could not read from progress file.");
|
|
|
|
|
|
|
+ std::cerr << "Could not read from progress file.\n";
|
|
|
}
|
|
}
|
|
|
fclose(progFile);
|
|
fclose(progFile);
|
|
|
|
|
|