| 452 | } |
| 453 | |
| 454 | int cmCPackPKGGenerator::CopyInstallScript(std::string const& resdir, |
| 455 | std::string const& script, |
| 456 | std::string const& name) |
| 457 | { |
| 458 | std::string dst = cmStrCat(resdir, '/', name); |
| 459 | cmSystemTools::CopyFileAlways(script, dst); |
| 460 | cmSystemTools::SetPermissions(dst, 0777); |
| 461 | cmCPackLogger(cmCPackLog::LOG_VERBOSE, |
| 462 | "copy script : " << script << "\ninto " << dst << std::endl); |
| 463 | |
| 464 | return 1; |
| 465 | } |
no test coverage detected