cmCPackSTGZGenerator.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 PackageFiles();
  28. virtual int InitializeInternal();
  29. int GenerateHeader(std::ostream* os);
  30. virtual const char* GetOutputExtension() { return ".sh"; }
  31. };
  32. #endif