summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'style-line-length'Brad King2010-09-141-1/+2
|\ | | | | | | | | | | 9d21281 Fix line-too-long style errors 86025d3 file(DOWNLOAD): Fix error message formatting
| * Fix line-too-long style errorsBrad King2010-09-101-1/+2
| |
* | Preserve timestamps on files on tar extract.David Cole2010-09-091-2/+10
|/ | | | | Conversion to libarchive changed the behavior of cmake -E tar xzf. This commit fixes that oversight.
* CPack Backward-compatibly enforce DESTDIR for DEB and RPMEric NOULARD2010-08-231-1/+16
|
* Remove cmSystemTools::EscapeSpaces methodBrad King2010-08-181-43/+0
| | | | | | The last remaining call to this method exists only for compatibility. Remove the method and put its implementation inline in place of the last call.
* Add ZIP archive format and LZMA compress support to libarchive-wrapperEric NOULARD2010-08-131-1/+2
| | | | | | | This will be needed to use cmArchiveWrire in cmCPackArchiveGenerator with the same feature set as before. Note that adding zip support to libarchive-wrapper would also makes it easy to add a new -E zip command to cmake commands.
* Include entries for directories in tarballs (#11020)Brad King2010-08-061-123/+22
| | | | | | Use libarchive through class cmArchiveWrite to implement the method cmSystemTools::CreateTar. The class includes entries for directories by automatically traversing the tree on disk.
* Include headers from chosen libarchive (#10923)Brad King2010-08-051-2/+1
| | | | | When CMAKE_USE_SYSTEM_LIBARCHIVE is on we must include the system libarchive headers to match the library that will be linked.
* Fix or cast more integer conversions in cmakeBrad King2010-06-291-4/+4
| | | | | These were revealed by GCC's -Wconversion option. Fix types where it is easy to do so. Cast in cases we know the integer will not be truncated.
* Fix or cast integer conversions in cmakeBrad King2010-06-251-3/+3
| | | | | These were revealed by GCC's -Wconversion option. Fix types where it is easy to do so. Cast in cases we know the integer will not be truncated.
* CPack: Try harder to remove temporary dir (#10793)Brad King2010-06-041-0/+15
| | | | | Windows filesystems sometimes lock files temporarily. Try removing the CPack temp install folder multiple times before giving up.
* Do not list file names during 'cmake -E tar xz'Brad King2010-05-051-1/+2
| | | | | | | Since commit "Switch to using libarchive from libtar" (2009-10-30) the the implementation of "tar xz" has printed all paths from the tarball as a single line with no separator. This fixes the logic to extract silently as expected.
* Add missing archive_read_finish calls to fix some of the presently reported ↵David Cole2009-12-281-1/+1
| | | | valgrind memory leaks.
* Preserve environment variables across calls to ↵David Cole2009-12-231-0/+12
| | | | cmCTestScriptHandler::RunConfigurationScript. This will help prevent problems like we are currently experiencing (regarding CMake continuous dashboards only running once each day because the HOME environment variable is modified indirectly by a command in a called script, but affects the environment in the calling script).
* Move cURL dependent code out of CMakeLib to fix complex tests.Zach Mullen2009-12-221-53/+0
|
* Fix broken bootstrap testZach Mullen2009-12-221-2/+1
|
* Make new web api safe for bootstrap build.Zach Mullen2009-12-211-0/+2
|
* Added functionality to allow CTest to easily access web APIs. This will be ↵Zach Mullen2009-12-211-0/+52
| | | | used for better communication with CDash.
* Added support for CTest awareness of the CDash version. This will help ↵Zach Mullen2009-12-211-0/+27
| | | | forward compatibility for both tools. Note that this changeset effectively makes the default to disable output compression. Now, to enable output compression, the CDASH_CTEST_VERSION must be explicity set to >= 1.6. Automated detection of the CDash version is the next step.
* use different tar format to handle longer file namesBill Hoffman2009-11-141-1/+1
|
* Show the current file when there is a tar errorBill Hoffman2009-11-131-0/+2
|
* fix warning for borlandBill Hoffman2009-11-131-0/+3
|
* Fix missing return value.Bill Hoffman2009-11-121-0/+1
|
* Fix for working with symlinks in tar filesBill Hoffman2009-11-091-29/+29
|
* Fix some warningsBill Hoffman2009-11-081-2/+2
|
* go back to running stat and put size check inBill Hoffman2009-11-081-4/+4
|
* Remove check for now so test passes on linuxBill Hoffman2009-11-081-0/+2
|
* create a better error messageBill Hoffman2009-11-081-1/+5
|
* add much better error checking on libarchive calls.Bill Hoffman2009-11-081-22/+44
|
* Fix compiler error in cmSystemTools.cxxZach Mullen2009-11-051-1/+0
|
* Add JOM support and clean up some of the tar -E stuffBill Hoffman2009-11-051-10/+15
|
* Fix style warning in cmsystemtools, cosmetic change to ctest codeZach Mullen2009-11-051-1/+2
|
* Fix unused param warning resulting from libarchive API change.Zach Mullen2009-11-041-0/+1
|
* Fix warnings for unused variablesBill Hoffman2009-11-031-2/+1
|
* Switch to using libarchive from libtar for cpack and cmake -E tarBill Hoffman2009-10-301-253/+314
| | | | | | This allows for a built in bzip and zip capability, so external tools will not be needed for these packagers. The cmake -E tar xf should be able to handle all compression types now as well.
* Fix more mismatched new[] / delete[] (eliminate invalid auto_ptr use) to ↵David Cole2009-10-301-7/+13
| | | | correct valgrind reported memory issues.
* Fix warnings in CMake source code.David Cole2009-10-021-4/+8
|
* Fix warnings in CMake source code. Suppress rampant warnings emanating from ↵David Cole2009-10-011-4/+5
| | | | Qt files.
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* Add parentheses around '&&' between '||' for gccBrad King2009-09-111-6/+6
| | | | | | | The GNU compiler warns about possible operator precedence mistakes and asks for explicit parentheses (-Wparentheses). We add the parentheses to silence the warning. This also fixes one real logic error in the find_package() implementation by correcting expression evaluation order.
* COMP: Include <malloc.h> for 'free' on QNXBrad King2009-07-131-0/+3
|
* COMP: Include <stdlib.h> for 'free'Brad King2009-07-131-0/+1
|
* ENH: Add cmSystemTools::ParseUnixCommandLineBrad King2009-07-131-0/+32
| | | | | This method is a C++ wrapper around the KWSys System library function to parse unix-style command lines.
* ENH: Remove unused cmSystemTools::RemoveEscapesBrad King2009-06-241-42/+0
| | | | | The RemoveEscapes method is no longer used anywhere. All uses of it have been replaced by a real lexer. We can remove the method.
* ENH: move PutEnv to SystemToolsBill Hoffman2009-06-051-26/+0
|
* ENH: vms fixBill Hoffman2009-04-241-0/+2
|
* COMP: Fix calls to superclass methods for BorlandBrad King2009-04-221-4/+4
| | | | | | The superclass of cmSystemTools is cmsys::SystemTools, which should be referencable by just SystemTools from inside the class. Borland C++ does not seem to support this, so we use cmSystemTools instead.
* BUG: Avoid infinite loop at directory tree rootBrad King2009-04-211-1/+3
| | | | | | The system tools GetParentDirectory method no longer removes the root path component. This fixes cmSystemTools::FileExistsInParentDirectories to not infinitely loop at when GetParentDirectory stops at the root.
* ENH: Remove obscure method from KWSys SystemToolsBrad King2009-04-211-0/+23
| | | | | This removes SystemTools::FileExistsInParentDirectories from KWSys since it is a special-purpose method that is not generally useful.
* COMP: Fix BOOL to bool conversion warningBrad King2009-04-151-3/+3
| | | | | | The cmSystemTools::RenameFile method returns type bool, but its implementation on Windows returns the result of an API function that returns BOOL. This change avoids the compiler warning.