| 427 | } |
| 428 | |
| 429 | bool cmCPackPKGGenerator::CopyResourcePlistFile(std::string const& name, |
| 430 | char const* outName) |
| 431 | { |
| 432 | if (!outName) { |
| 433 | outName = name.c_str(); |
| 434 | } |
| 435 | |
| 436 | std::string inFName = cmStrCat("CPack.", name, ".in"); |
| 437 | std::string inFileName = this->FindTemplate(inFName); |
| 438 | if (inFileName.empty()) { |
| 439 | cmCPackLogger(cmCPackLog::LOG_ERROR, |
| 440 | "Cannot find input file: " << inFName << std::endl); |
| 441 | return false; |
| 442 | } |
| 443 | |
| 444 | std::string destFileName = |
| 445 | cmStrCat(this->GetOption("CPACK_TOPLEVEL_DIRECTORY"), '/', outName); |
| 446 | |
| 447 | cmCPackLogger(cmCPackLog::LOG_VERBOSE, |
| 448 | "Configure file: " << inFileName << " to " << destFileName |
| 449 | << std::endl); |
| 450 | this->ConfigureFile(inFileName, destFileName); |
| 451 | return true; |
| 452 | } |
| 453 | |
| 454 | int cmCPackPKGGenerator::CopyInstallScript(std::string const& resdir, |
| 455 | std::string const& script, |
nothing calls this directly
no test coverage detected