aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/coreutils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chapter6/coreutils.sh')
-rw-r--r--chapter6/coreutils.sh24
1 files changed, 13 insertions, 11 deletions
diff --git a/chapter6/coreutils.sh b/chapter6/coreutils.sh
index b9d5079..536fa52 100644
--- a/chapter6/coreutils.sh
+++ b/chapter6/coreutils.sh
@@ -1,15 +1,17 @@
+#!/bin/bash
+
./configure --prefix=/usr \
- --host=${LFS_TGT} \
- --build=$(build-aux/config.guess) \
+ --host="${LFS_TGT}" \
+ --build="$(build-aux/config.guess)" \
--enable-install-program=hostname \
--enable-no-install-program=kill,uptime &&
make &&
-make DESTDIR=${LFS} -j1 install &&
-mv -v ${LFS}/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} ${LFS}/bin &&
-mv -v ${LFS}/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} ${LFS}/bin &&
-mv -v ${LFS}/usr/bin/{rmdir,stty,sync,true,uname} ${LFS}/bin &&
-mv -v ${LFS}/usr/bin/{head,nice,sleep,touch} ${LFS}/bin &&
-mv -v ${LFS}/usr/bin/chroot ${LFS}/usr/sbin &&
-mkdir -pv ${LFS}/usr/share/man/man8 &&
-mv -v ${LFS}/usr/share/man/man1/chroot.1 ${LFS}/usr/share/man/man8/chroot.8 &&
-sed -i 's/"1"/"8"/' ${LFS}/usr/share/man/man8/chroot.8
+make DESTDIR="${LFS}" -j1 install &&
+mv -v "${LFS}"/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} "${LFS}"/bin &&
+mv -v "${LFS}"/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} "${LFS}"/bin &&
+mv -v "${LFS}"/usr/bin/{rmdir,stty,sync,true,uname} "${LFS}"/bin &&
+mv -v "${LFS}"/usr/bin/{head,nice,sleep,touch} "${LFS}"/bin &&
+mv -v "${LFS}"/usr/bin/chroot "${LFS}"/usr/sbin &&
+mkdir -pv "${LFS}"/usr/share/man/man8 &&
+mv -v "${LFS}"/usr/share/man/man1/chroot.1 "${LFS}"/usr/share/man/man8/chroot.8 &&
+sed -i 's/"1"/"8"/' "${LFS}"/usr/share/man/man8/chroot.8