ENH: add submit via cp mode
[cmake.git] / Source / CPack / cmCPackTarBZip2Generator.h
blob4142bad9ac23f20036e5073dfab0ef75edd80d77
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCPackTarBZip2Generator.h,v $
5 Language: C++
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
28 public:
29 friend class cmCPackTarBZip2GeneratorForward;
30 cmCPackTypeMacro(cmCPackTarBZip2Generator, cmCPackTGZGenerator);
32 /**
33 * Construct generator
35 cmCPackTarBZip2Generator();
36 virtual ~cmCPackTarBZip2Generator();
38 protected:
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);
47 #endif