| 204 | } |
| 205 | |
| 206 | void cmCatFile(std::string const& fileToAppend) |
| 207 | { |
| 208 | #ifdef _WIN32 |
| 209 | _setmode(fileno(stdin), _O_BINARY); |
| 210 | _setmode(fileno(stdout), _O_BINARY); |
| 211 | #endif |
| 212 | std::streambuf* buf = std::cin.rdbuf(); |
| 213 | cmsys::ifstream source; |
| 214 | if (fileToAppend != "-") { |
| 215 | source.open(fileToAppend.c_str(), (std::ios::binary | std::ios::in)); |
| 216 | buf = source.rdbuf(); |
| 217 | } |
| 218 | std::cout << buf; |
| 219 | } |
| 220 | |
| 221 | bool cmRemoveDirectory(std::string const& dir, bool recursive = true) |
| 222 | { |
no test coverage detected
searching dependent graphs…