cmSystemTools: use an enumeration for compression formats

Juggling 3 booleans was unwieldy.
This commit is contained in:
Ben Boeckel
2015-01-09 10:33:00 -05:00
committed by Brad King
parent df16dcfb44
commit d811d238ab
4 changed files with 40 additions and 23 deletions

View File

@@ -383,12 +383,19 @@ public:
static void EnableVSConsoleOutput();
/** Create tar */
enum cmTarCompression
{
TarCompressGZip,
TarCompressBZip2,
TarCompressXZ,
TarCompressNone
};
static bool ListTar(const char* outFileName,
bool gzip, bool verbose);
bool verbose);
static bool CreateTar(const char* outFileName,
const std::vector<std::string>& files, bool gzip,
bool bzip2, bool xz, bool verbose);
static bool ExtractTar(const char* inFileName, bool gzip,
const std::vector<std::string>& files,
cmTarCompression compressType, bool verbose);
static bool ExtractTar(const char* inFileName,
bool verbose);
// This should be called first thing in main
// it will keep child processes from inheriting the