diff options
| author | ruki <[email protected]> | 2024-08-21 23:36:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-08-21 23:36:25 +0800 |
| commit | de0ade770bc66add05cd3b654acf50bc8b17fe35 (patch) | |
| tree | e088183992b580da9a23ac741a50b62d23432080 /xmake/modules/utils/archive/extract_xmz.lua | |
| parent | 7f4a28767f1a2e9a9139a58e176c5032d157f032 (diff) | |
add xmz archive
Diffstat (limited to 'xmake/modules/utils/archive/extract_xmz.lua')
| -rw-r--r-- | xmake/modules/utils/archive/extract_xmz.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/xmake/modules/utils/archive/extract_xmz.lua b/xmake/modules/utils/archive/extract_xmz.lua new file mode 100644 index 000000000..6dd645a52 --- /dev/null +++ b/xmake/modules/utils/archive/extract_xmz.lua @@ -0,0 +1,32 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- Copyright (C) 2015-present, TBOOX Open Source Group. +-- +-- @author ruki +-- @file extract_xmz.lua +-- + +-- imports +import("core.base.option") + +-- extract file +-- +-- @param archivefile the archive file. e.g. *.tar.gz, *.zip, *.7z, *.tar.bz2, .. +-- @param outputdir the output directory +-- @param options the options, e.g.. {excludes = {"*/dir/*", "dir/*"}} +-- +function main(archivefile, outputdir, opt) + opt = opt or {} +end |
