From 9d68d5da4115353816ab4f6b1c7a4f5db43576f9 Mon Sep 17 00:00:00 2001
From: William Harrington <kb0iic@berzerkula.org>
Date: Mon, 22 Mar 2021 19:48:11 -0500
Subject: Prepare chapter 7 build scripts.

---
 chapter7/texinfo.sh | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 chapter7/texinfo.sh

(limited to 'chapter7/texinfo.sh')

diff --git a/chapter7/texinfo.sh b/chapter7/texinfo.sh
new file mode 100644
index 0000000..7f133fe
--- /dev/null
+++ b/chapter7/texinfo.sh
@@ -0,0 +1,3 @@
+./configure --prefix=/usr &&
+make &&
+make -j1 install
-- 
cgit v1.2.3-54-g00ecf


From dc161b4d4f5c37c2e72a953e639641b112fb68a0 Mon Sep 17 00:00:00 2001
From: William Harrington <kb0iic@berzerkula.org>
Date: Tue, 30 Mar 2021 13:03:52 -0500
Subject: Add shebangs and cleanup libstdc++.sh

---
 chapter7/bison.sh      | 2 ++
 chapter7/gettext.sh    | 2 ++
 chapter7/libstdc++.sh  | 6 ++++--
 chapter7/python.sh     | 2 ++
 chapter7/texinfo.sh    | 2 ++
 chapter7/util-linux.sh | 2 ++
 6 files changed, 14 insertions(+), 2 deletions(-)

(limited to 'chapter7/texinfo.sh')

diff --git a/chapter7/bison.sh b/chapter7/bison.sh
index 3112d1f..2385d22 100644
--- a/chapter7/bison.sh
+++ b/chapter7/bison.sh
@@ -1,3 +1,5 @@
+#!/bin/bash
+
 ./configure --prefix=/usr --docdir=/usr/share/doc/bison-"${VERSION}" &&
 make &&
 make -j1 install
diff --git a/chapter7/gettext.sh b/chapter7/gettext.sh
index 85bc7f4..49fbf15 100644
--- a/chapter7/gettext.sh
+++ b/chapter7/gettext.sh
@@ -1,3 +1,5 @@
+#!/bin/bash
+
 ./configure --disable-shared
 make &&
 cp -v gettext-tools/src/msgfmt /usr/bin
diff --git a/chapter7/libstdc++.sh b/chapter7/libstdc++.sh
index 5e81693..c2ef63b 100644
--- a/chapter7/libstdc++.sh
+++ b/chapter7/libstdc++.sh
@@ -1,12 +1,14 @@
+#!/bin/bash
+
 ln -s gthr-posix.h libgcc/gthr-default.h
 mkdir build
-cd build
+cd build || exit 1
 ../libstdc++-v3/configure \
     CXXFLAGS="-g -O2 -D_GNU_SOURCE" \
     --prefix=/usr \
     --disable-multilib \
     --disable-nls \
-    --host=$(uname -m)-lfs-linux-gnu \
+    --host="$(uname -m)"-lfs-linux-gnu \
     --disable-libstdcxx-pch &&
 make &&
 make -j1 install
diff --git a/chapter7/python.sh b/chapter7/python.sh
index 7d158b1..daf1677 100644
--- a/chapter7/python.sh
+++ b/chapter7/python.sh
@@ -1,3 +1,5 @@
+#!/bin/bash
+
 ./configure --prefix=/usr \
             --enable-shared \
             --without-ensurepip &&
diff --git a/chapter7/texinfo.sh b/chapter7/texinfo.sh
index 7f133fe..1935156 100644
--- a/chapter7/texinfo.sh
+++ b/chapter7/texinfo.sh
@@ -1,3 +1,5 @@
+#!/bin/bash
+
 ./configure --prefix=/usr &&
 make &&
 make -j1 install
diff --git a/chapter7/util-linux.sh b/chapter7/util-linux.sh
index e70fbfa..7a00c8c 100644
--- a/chapter7/util-linux.sh
+++ b/chapter7/util-linux.sh
@@ -1,3 +1,5 @@
+#!/bin/bash
+
 mkdir -p /var/lib/hwclock &&
 ./configure ADJTIME_PATH=/var/lib/hwclock/adjtime    \
             --docdir=/usr/share/doc/util-linux-"${VERSION}" \
-- 
cgit v1.2.3-54-g00ecf