cmCPackSTGZGenerator.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCPackSTGZGenerator_h
  11. #define cmCPackSTGZGenerator_h
  12. #include "cmCPackTGZGenerator.h"
  13. /** \class cmCPackSTGZGenerator
  14. * \brief A generator for Self extractable TGZ files
  15. *
  16. */
  17. class cmCPackSTGZGenerator : public cmCPackTGZGenerator
  18. {
  19. public:
  20. cmCPackTypeMacro(cmCPackSTGZGenerator, cmCPackTGZGenerator);
  21. /**
  22. * Construct generator
  23. */
  24. cmCPackSTGZGenerator();
  25. virtual ~cmCPackSTGZGenerator();
  26. protected:
  27. int CompressFiles(const char* outFileName, const char* toplevel,
  28. const std::vector<std::string>& files);
  29. virtual int InitializeInternal();
  30. int GenerateHeader(std::ostream* os);
  31. virtual const char* GetOutputExtension() { return ".sh"; }
  32. };
  33. #endif