aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/file.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chapter6/file.sh')
-rw-r--r--chapter6/file.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/chapter6/file.sh b/chapter6/file.sh
index e2697a9..5323924 100644
--- a/chapter6/file.sh
+++ b/chapter6/file.sh
@@ -1,13 +1,17 @@
+#!/bin/bash
+
mkdir build
-pushd build > /dev/null
+pushd build > /dev/null || exit 1
../configure --disable-bzlib \
--disable-libseccomp \
--disable-xzlib \
--disable-zlib &&
make &&
-popd > /dev/null
+popd > /dev/null || exit 1
-./configure --prefix=/usr --host=${LFS_TGT} --build=$(./config.guess) &&
-make FILE_COMPILE=$(pwd)/build/src/file &&
-make DESTDIR=${LFS} -j1 install
+./configure --prefix=/usr \
+ --host="${LFS_TGT}" \
+ --build="$(./config.guess)" &&
+make FILE_COMPILE="$(pwd)/build/src/file" &&
+make DESTDIR="${LFS}" -j1 install