diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-23 13:17:02 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-23 13:17:02 -0500 |
commit | 66d4171655e0b93766c82f50ce06521f85b58222 (patch) | |
tree | 1b6d1cbcbc169e5cbb4e6ea6698ed91d82d7cc88 /chapter6/coreutils.sh | |
parent | 9d68d5da4115353816ab4f6b1c7a4f5db43576f9 (diff) | |
parent | 887bf450c01c511a3f6d048d3db78e8edfb21e8a (diff) |
Merge branch 'master' into chapter7
Diffstat (limited to 'chapter6/coreutils.sh')
-rw-r--r-- | chapter6/coreutils.sh | 24 |
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 |