From e4487709ac27d80179c2a685b91ed023ca178021 Mon Sep 17 00:00:00 2001
From: William Harrington <kb0iic@berzerkula.org>
Date: Tue, 23 Mar 2021 13:14:12 -0500
Subject: Clean up chapter6 scripts.

---
 chapter6/xz.sh | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

(limited to 'chapter6/xz.sh')

diff --git a/chapter6/xz.sh b/chapter6/xz.sh
index 7515350..12a43ce 100644
--- a/chapter6/xz.sh
+++ b/chapter6/xz.sh
@@ -1,10 +1,12 @@
+#!/bin/bash
+
 ./configure --prefix=/usr \
-            --host=${LFS_TGT} \
-            --build=$(build-aux/config.guess) \
+            --host="${LFS_TGT}" \
+            --build="$(build-aux/config.guess)" \
             --disable-static \
             --docdir=/usr/share/doc/xz-5.2.5 &&
 make &&
-make DESTDIR=${LFS} -j1 install
-mv -v ${LFS}/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat}  ${LFS}/bin &&
-mv -v ${LFS}/usr/lib/liblzma.so.*                       ${LFS}/lib &&
-ln -svf ../../lib/$(readlink ${LFS}/usr/lib/liblzma.so) ${LFS}/usr/lib/liblzma.so
+make DESTDIR="${LFS}" -j1 install
+mv -v "${LFS}"/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat}  "${LFS}"/bin &&
+mv -v "${LFS}"/usr/lib/liblzma.so.*                       "${LFS}"/lib &&
+ln -svf ../../lib/"$(readlink "${LFS}"/usr/lib/liblzma.so)" "${LFS}"/usr/lib/liblzma.so
-- 
cgit v1.2.3-54-g00ecf