diff options
author | Kyle Schwarz <zeranoe@gmail.com> | 2018-04-07 22:24:33 -0400 |
---|---|---|
committer | Kyle Schwarz <zeranoe@gmail.com> | 2018-04-07 22:24:33 -0400 |
commit | afcde3dfd621d9845c6de8935583c2e0cd9ee211 (patch) | |
tree | 6a0a933ce488f3b6fd171becdbaa64e3b2c5423d | |
parent | 7843f11eb4b222aad131600b1c1161873cd8fd6e (diff) |
Simplify archive extraction
tar -xf <file> without the archive type is widely supported and simplifies the extraction command.
The xz program is not actually required to extract an xz archives with tar -xf.
-rwxr-xr-x | mingw-w64-build | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/mingw-w64-build b/mingw-w64-build index d7fad6d..90689c2 100755 --- a/mingw-w64-build +++ b/mingw-w64-build @@ -95,16 +95,10 @@ download_sources() for url in "${urls[@]}"; do local archive="${url##*/}" - local c echo "downloading $archive" >&3 curl -O "$url" || error_exit echo "extracting $archive" >&3 - case "${archive##*.}" in - gz) c=z ;; - bz2) c=j ;; - xz) c=J ;; - esac - tar -x${c}f "$archive" || error_exit + tar -xf "$archive" || error_exit done cd "$src/gcc-$v_gcc" || error_exit @@ -227,7 +221,6 @@ progs=( "curl" "gzip" "bzip2" - "xz" "git" "make" "patch" |