1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCPackTarBZip2Generator.h,v $
6 Date: $Date: 2007-02-02 19:40:26 $
7 Version: $Revision: 1.2 $
9 Copyright (c) 2002 Kitware, Inc. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
18 #ifndef cmCPackTarBZip2Generator_h
19 #define cmCPackTarBZip2Generator_h
21 #include "cmCPackTGZGenerator.h"
23 /** \class cmCPackTarBZip2Generator
24 * \brief A generator for TarBZip2 files
26 class cmCPackTarBZip2Generator
: public cmCPackTGZGenerator
29 friend class cmCPackTarBZip2GeneratorForward
;
30 cmCPackTypeMacro(cmCPackTarBZip2Generator
, cmCPackTGZGenerator
);
35 cmCPackTarBZip2Generator();
36 virtual ~cmCPackTarBZip2Generator();
39 virtual int InitializeInternal();
40 int CompressFiles(const char* outFileName
, const char* toplevel
,
41 const std::vector
<std::string
>& files
);
42 virtual const char* GetOutputExtension() { return ".tar.bz2"; }
43 int BZip2File(const char* filename
);
44 int RenameFile(const char* oldname
, const char* newname
);