aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh69
1 files changed, 25 insertions, 44 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index ac21398..681759c 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -27,51 +27,32 @@ bootstrap_target=x86_64-rasde-linux-musl
cores=$(nproc)
cd $bootstrapdir/tarballs
-curl -LO https://sourceware.org/pub/binutils/releases/binutils-2.47.tar.zst
-curl -LO https://ftp.gnu.org/gnu/gcc/gcc-16.2.0/gcc-16.2.0.tar.xz
-curl -LO https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-7.2.2.tar.xz
-curl -LO https://musl.libc.org/releases/musl-1.2.6.tar.gz
-curl -LO https://ftp.gnu.org/pub/gnu/m4/m4-1.4.21.tar.xz
-curl -LO https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.6.tar.gz
-curl -LO https://ftp.gnu.org/gnu/bash/bash-5.3.tar.gz
-curl -LO https://ftp.gnu.org/gnu/coreutils/coreutils-9.11.tar.xz
-curl -LO https://ftp.gnu.org/pub/gnu/diffutils/diffutils-3.12.tar.xz
-curl -LO http://ftp.astron.com/pub/file/file-5.48.tar.gz
-curl -LO https://ftp.gnu.org/pub/gnu/findutils/findutils-4.11.0.tar.xz
-curl -LO https://ftp.gnu.org/pub/gnu/gawk/gawk-5.4.1.tar.xz
-curl -LO https://ftp.gnu.org/pub/gnu/grep/grep-3.12.tar.xz
-curl -LO https://ftp.gnu.org/gnu/gzip/gzip-1.14.tar.xz
-curl -LO https://ftp.gnu.org/pub/gnu/make/make-4.4.1.tar.lz
-curl -LO https://ftp.gnu.org/pub/gnu/patch/patch-2.8.tar.xz
-curl -LO https://ftp.gnu.org/pub/gnu/sed/sed-4.10.tar.xz
-curl -LO https://ftp.gnu.org/gnu/tar/tar-1.35.tar.xz
-curl -LO https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.2.tar.xz
-curl -LO https://ftp.gnu.org/pub/gnu/gmp/gmp-6.3.0.tar.xz
-curl -LO https://ftp.gnu.org/gnu/mpc/mpc-1.4.1.tar.xz
-curl -LO https://tukaani.org/xz/xz-5.8.3.tar.gz
+curl -LO https://sourceware.org/pub/binutils/releases/binutils-2.47.tar.zst \
+ https://ftp.gnu.org/gnu/gcc/gcc-16.2.0/gcc-16.2.0.tar.xz \
+ https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-7.2.2.tar.xz \
+ https://musl.libc.org/releases/musl-1.2.6.tar.gz \
+ https://ftp.gnu.org/pub/gnu/m4/m4-1.4.21.tar.xz \
+ https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.6.tar.gz \
+ https://ftp.gnu.org/gnu/bash/bash-5.3.tar.gz \
+ https://ftp.gnu.org/gnu/coreutils/coreutils-9.11.tar.xz \
+ https://ftp.gnu.org/pub/gnu/diffutils/diffutils-3.12.tar.xz \
+ http://ftp.astron.com/pub/file/file-5.48.tar.gz \
+ https://ftp.gnu.org/pub/gnu/findutils/findutils-4.11.0.tar.xz \
+ https://ftp.gnu.org/pub/gnu/gawk/gawk-5.4.1.tar.xz \
+ https://ftp.gnu.org/pub/gnu/grep/grep-3.12.tar.xz \
+ https://ftp.gnu.org/gnu/gzip/gzip-1.14.tar.xz \
+ https://ftp.gnu.org/pub/gnu/make/make-4.4.1.tar.lz \
+ https://ftp.gnu.org/pub/gnu/patch/patch-2.8.tar.xz \
+ https://ftp.gnu.org/pub/gnu/sed/sed-4.10.tar.xz \
+ https://ftp.gnu.org/gnu/tar/tar-1.35.tar.xz \
+ https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.2.tar.xz \
+ https://ftp.gnu.org/pub/gnu/gmp/gmp-6.3.0.tar.xz \
+ https://ftp.gnu.org/gnu/mpc/mpc-1.4.1.tar.xz \
+ https://tukaani.org/xz/xz-5.8.3.tar.gz
-tar xf $bootstrapdir/tarballs/binutils-2.47.tar.zst -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/gcc-16.2.0.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/linux-7.2.2.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/musl-1.2.6.tar.gz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/m4-1.4.21.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/ncurses-6.6.tar.gz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/bash-5.3.tar.gz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/coreutils-9.11.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/diffutils-3.12.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/file-5.48.tar.gz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/findutils-4.11.0.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/gawk-5.4.1.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/grep-3.12.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/gzip-1.14.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/make-4.4.1.tar.lz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/patch-2.8.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/sed-4.10.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/tar-1.35.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/mpfr-4.2.2.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/gmp-6.3.0.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/mpc-1.4.1.tar.xz -C $bootstrapdir/sources
-tar xf $bootstrapdir/tarballs/xz-5.8.3.tar.gz -C $bootstrapdir/sources
+for x in $(find $bootstrapdir/tarballs); do
+ tar xf $x -C $bootstrapdir/sources
+done
export PATH="$bootstrapdir/tools/bin:$PATH"