diff options
author | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2019-05-22 19:29:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-05-23 14:08:22 (GMT) |
commit | c8e217e0a70f8f445e2c593f44e1105c959fb9d7 (patch) | |
tree | b02a243d33320167c75705eb7f332bb419352eb4 /Source/cmSystemTools.h | |
parent | f03a80aefd4073bc1502c2e486fedfdbd8addfb6 (diff) | |
download | CMake-c8e217e0a70f8f445e2c593f44e1105c959fb9d7.zip CMake-c8e217e0a70f8f445e2c593f44e1105c959fb9d7.tar.gz CMake-c8e217e0a70f8f445e2c593f44e1105c959fb9d7.tar.bz2 |
cmake: tar: Allow selective extracting and listing of archives
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index 80c6ee3..09a4d13 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -450,13 +450,15 @@ public: TarCompressNone }; - static bool ListTar(const char* outFileName, bool verbose); + static bool ListTar(const char* outFileName, + const std::vector<std::string>& files, bool verbose); static bool CreateTar(const char* outFileName, const std::vector<std::string>& files, cmTarCompression compressType, bool verbose, std::string const& mtime = std::string(), std::string const& format = std::string()); - static bool ExtractTar(const char* inFileName, bool verbose); + static bool ExtractTar(const char* inFileName, + const std::vector<std::string>& files, bool verbose); // This should be called first thing in main // it will keep child processes from inheriting the // stdin and stdout of this process. This is important |