From 56e29b604095766ed97e6d64cb9146ff493209df Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 13 Apr 2021 12:59:10 -0500 Subject: Add set -e to top of scripts and remove space between -j and value in MAKEFLAGS. --- chapter5/binutils.sh | 1 + chapter5/gcc.sh | 1 + chapter5/glibc.sh | 1 + chapter5/libstdc++.sh | 1 + chapter5/linux-api-headers.sh | 1 + 5 files changed, 5 insertions(+) (limited to 'chapter5') diff --git a/chapter5/binutils.sh b/chapter5/binutils.sh index 2d9da5b..5176d0c 100644 --- a/chapter5/binutils.sh +++ b/chapter5/binutils.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e mkdir build cd build || exit 1 diff --git a/chapter5/gcc.sh b/chapter5/gcc.sh index 52079a4..84879c5 100644 --- a/chapter5/gcc.sh +++ b/chapter5/gcc.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e mkdir -p mpfr gmp mpc tar -xf ../mpfr-*.tar.xz -C mpfr --strip-components=1 diff --git a/chapter5/glibc.sh b/chapter5/glibc.sh index edab0d3..7f52023 100644 --- a/chapter5/glibc.sh +++ b/chapter5/glibc.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e case $(uname -m) in i?86) ln -sfv ld-linux.so.2 "${LFS}"/lib/ld-lsb.so.3 diff --git a/chapter5/libstdc++.sh b/chapter5/libstdc++.sh index d1be7dd..d8cb707 100644 --- a/chapter5/libstdc++.sh +++ b/chapter5/libstdc++.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e mkdir -v build cd build || exit 1 diff --git a/chapter5/linux-api-headers.sh b/chapter5/linux-api-headers.sh index 3111625..41d7cfc 100644 --- a/chapter5/linux-api-headers.sh +++ b/chapter5/linux-api-headers.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e make mrproper && make headers && -- cgit v1.2.3-54-g00ecf