CPack STGZ put execute permission on all packages files (component case)
This commit is contained in:
parent
1bfe81e01e
commit
4576f40ee0
|
@ -54,11 +54,20 @@ int cmCPackSTGZGenerator::InitializeInternal()
|
|||
//----------------------------------------------------------------------
|
||||
int cmCPackSTGZGenerator::PackageFiles()
|
||||
{
|
||||
bool retval = true;
|
||||
if ( !this->Superclass::PackageFiles() )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
return cmSystemTools::SetPermissions(packageFileNames[0].c_str(),
|
||||
|
||||
/* TGZ generator (our Superclass) may
|
||||
* have generated several packages (component packaging)
|
||||
* so we must iterate over generated packages.
|
||||
*/
|
||||
for (std::vector<std::string>::iterator it=packageFileNames.begin();
|
||||
it != packageFileNames.end(); ++it)
|
||||
{
|
||||
retval &= cmSystemTools::SetPermissions((*it).c_str(),
|
||||
#if defined( _MSC_VER ) || defined( __MINGW32__ )
|
||||
S_IREAD | S_IWRITE | S_IEXEC
|
||||
#elif defined( __BORLANDC__ )
|
||||
|
@ -70,6 +79,8 @@ int cmCPackSTGZGenerator::PackageFiles()
|
|||
#endif
|
||||
);
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
int cmCPackSTGZGenerator::GenerateHeader(std::ostream* os)
|
||||
|
|
Loading…
Reference in New Issue