diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-02 21:07:16 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-02 21:07:16 (GMT) |
commit | 12e07f910e339fbdfdd4a16c2b6dcf9017e0546b (patch) | |
tree | 94cb91b8d3544b26ca08917f37e9442118ea1581 /Source/CPack/cmCPackTarCompressGenerator.h | |
parent | fd40430547a1eb6b00729748ea8abb8bce39413e (diff) | |
download | CMake-12e07f910e339fbdfdd4a16c2b6dcf9017e0546b.zip CMake-12e07f910e339fbdfdd4a16c2b6dcf9017e0546b.tar.gz CMake-12e07f910e339fbdfdd4a16c2b6dcf9017e0546b.tar.bz2 |
ENH: Initial cut at TarCompress generator
Diffstat (limited to 'Source/CPack/cmCPackTarCompressGenerator.h')
-rw-r--r-- | Source/CPack/cmCPackTarCompressGenerator.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackTarCompressGenerator.h b/Source/CPack/cmCPackTarCompressGenerator.h new file mode 100644 index 0000000..0573a80 --- /dev/null +++ b/Source/CPack/cmCPackTarCompressGenerator.h @@ -0,0 +1,49 @@ +/*========================================================================= + + Program: CMake - Cross-Platform Makefile Generator + Module: $RCSfile$ + Language: C++ + Date: $Date$ + Version: $Revision$ + + Copyright (c) 2002 Kitware, Inc. All rights reserved. + See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + +#ifndef cmCPackTarCompressGenerator_h +#define cmCPackTarCompressGenerator_h + +#include "cmCPackGenericGenerator.h" + +class cmCPackTarCompressGeneratorForward; + +/** \class cmCPackTarCompressGenerator + * \brief A generator for TarCompress files + */ +class cmCPackTarCompressGenerator : public cmCPackGenericGenerator +{ +public: + friend class cmCPackTarCompressGeneratorForward; + cmCPackTypeMacro(cmCPackTarCompressGenerator, cmCPackGenericGenerator); + + /** + * Construct generator + */ + cmCPackTarCompressGenerator(); + virtual ~cmCPackTarCompressGenerator(); + +protected: + virtual int InitializeInternal(); + int CompressFiles(const char* outFileName, const char* toplevel, + const std::vector<std::string>& files); + virtual const char* GetOutputExtension() { return "tar.Z"; } + + int RenameFile(const char* oldname, const char* newname); +}; + +#endif |