MCPcopy Create free account
hub / github.com/Kitware/CMake / CopyInstallScript

Method CopyInstallScript

Source/CPack/cmCPackPKGGenerator.cxx:454–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454int 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}

Callers 1

Calls 2

SetPermissionsFunction · 0.85
cmStrCatFunction · 0.50

Tested by

no test coverage detected