1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCPackSTGZGenerator.h,v $
6 Date: $Date: 2007/02/02 19:40:26 $
7 Version: $Revision: 1.8 $
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 cmCPackSTGZGenerator_h
19 #define cmCPackSTGZGenerator_h
22 #include "cmCPackTGZGenerator.h"
24 /** \class cmCPackSTGZGenerator
25 * \brief A generator for Self extractable TGZ files
28 class cmCPackSTGZGenerator
: public cmCPackTGZGenerator
31 cmCPackTypeMacro(cmCPackSTGZGenerator
, cmCPackTGZGenerator
);
36 cmCPackSTGZGenerator();
37 virtual ~cmCPackSTGZGenerator();
40 int CompressFiles(const char* outFileName
, const char* toplevel
,
41 const std::vector
<std::string
>& files
);
42 virtual int InitializeInternal();
43 int GenerateHeader(std::ostream
* os
);
44 virtual const char* GetOutputExtension() { return ".sh"; }