Fixed typo and improved .tar.xz support

Thanks again to pacman from the ST community for the tip
This commit is contained in:
Xavier Del Campo 2019-10-30 12:16:12 +01:00
parent 7073032fcc
commit 5a860ca7b1
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
#!/bin/sh
which wget 2>/dev/null 1&>&2 && dl="wget -nc" || dl="curl -OLk --retry 5"
which wget 2>/dev/null 1>&2 && dl="wget -nc" || dl="curl -OLk --retry 5"
$dl ftp.gnu.org/gnu/binutils/binutils-2.30.tar.xz
$dl ftp.gnu.org/gnu/gdb/gdb-8.1.tar.xz
mkdir -p binutils-2.30
tar -xvf gdb-8.1.tar.xz --strip-components=1 --directory=binutils-2.30
tar -xvf binutils-2.30.tar.xz
tar -xJvf gdb-8.1.tar.xz --strip-components=1 --directory=binutils-2.30
tar -xJvf binutils-2.30.tar.xz
for f in ./binutils_patches/*.patch
do
patch -N -p 1 -d binutils-2.30 <$f