diff options
| author | Xavier Del Campo <xavi.dcr@tutanota.com> | 2019-10-30 12:16:12 +0100 |
|---|---|---|
| committer | Xavier Del Campo <xavi.dcr@tutanota.com> | 2019-10-30 12:16:12 +0100 |
| commit | 5a860ca7b11bdf088c4e4dbc01224a2152ad6c8a (patch) | |
| tree | bcfc6f4a5e5b6a2f235fc773749a06a13ca0c25d | |
| parent | 7073032fccfa98e2dae9b2130125a64618140b5d (diff) | |
Thanks again to pacman from the ST community for the tip
| -rwxr-xr-x | patch_binutils.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patch_binutils.sh b/patch_binutils.sh index 8df8a63..65f5ddf 100755 --- a/patch_binutils.sh +++ b/patch_binutils.sh @@ -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 |
