diff options
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index a4118202..e6defa85 100644 --- a/scripts/functions +++ b/scripts/functions @@ -523,6 +523,7 @@ CT_DoListTarballExt() { printf ".tar.bz2\n" printf ".tar.gz\n.tgz\n" printf ".tar\n" + printf ".zip\n" } # Get the file name extension of a component @@ -861,7 +862,7 @@ CT_GetGit() { # by the caller, that did a 'cd' into the correct path before calling us # and sets nochdir to 'nochdir'. # Note also that this function handles the git trees! -# Usage: CT_Extract <basename> [nochdir] [options] +# Usage: CT_Extract [nochdir] <basename> [options] # where 'options' are dependent on the source (eg. git branch/tag...) CT_Extract() { local nochdir="$1" @@ -926,6 +927,7 @@ CT_Extract() { .tar.bz2) bzip2 -dc "${full_file}" | CT_DoExecLog FILE tar "${tar_opts[@]}" -f -;; .tar.gz|.tgz) gzip -dc "${full_file}" | CT_DoExecLog FILE tar "${tar_opts[@]}" -f -;; .tar) CT_DoExecLog FILE tar "${tar_opts[@]}" -f "${full_file}";; + .zip) CT_DoExecLog FILE unzip "${@}" "${full_file}";; /.git) CT_ExtractGit "${basename}" "${@}";; *) CT_DoLog WARN "Don't know how to handle '${basename}${ext}': unknown extension" return 1 |