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/cleanup.sh | |
parent | 9d68d5da4115353816ab4f6b1c7a4f5db43576f9 (diff) | |
parent | 887bf450c01c511a3f6d048d3db78e8edfb21e8a (diff) |
Merge branch 'master' into chapter7
Diffstat (limited to 'chapter6/cleanup.sh')
-rw-r--r-- | chapter6/cleanup.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/chapter6/cleanup.sh b/chapter6/cleanup.sh index a457f0d..abe4b0a 100644 --- a/chapter6/cleanup.sh +++ b/chapter6/cleanup.sh @@ -1,21 +1,23 @@ +#!/bin/bash + if [ -f "${LFS}/sources/chapter6/cleanup" ]; then echo -e "${YLW}Chapter 6 ${GRN}cleanup already performed.${RST}" else echo -ne "${GRN}Cleaning up ${YLW}${LFS}${RST}... " - find ${LFS}/usr/lib -name \*.la -delete >/dev/null 2>&1 - find ${LFS}/usr/libexec -name \*.la -delete >/dev/null 2>&1 + find "${LFS}"/usr/lib -name \*.la -delete >/dev/null 2>&1 + find "${LFS}"/usr/libexec -name \*.la -delete >/dev/null 2>&1 rm -rf /usr/share/doc >/dev/null 2>&1 rm -rf /usr/share/info >/dev/null 2>&1 rm -rf /usr/share/man >/dev/null 2>&1 - strip --strip-debug ${LFS}S/usr/lib/* >/dev/null 2>&1 - strip --strip-unneeded ${LFS}/usr/bin/* >/dev/null 2>&1 - strip --strip-unneeded ${LFS}/usr/sbin/* >/dev/null 2>&1 - strip --strip-unneeded ${LFS}/tools/bin/* >/dev/null 2>&1 + strip --strip-debug "${LFS}"S/usr/lib/* >/dev/null 2>&1 + strip --strip-unneeded "${LFS}"/usr/bin/* >/dev/null 2>&1 + strip --strip-unneeded "${LFS}"/usr/sbin/* >/dev/null 2>&1 + strip --strip-unneeded "${LFS}"/tools/bin/* >/dev/null 2>&1 echo -e "${GRN}OK${RST}" - touch ${LFS}/sources/chapter6/cleanup >/dev/null 2>&1 + touch "${LFS}"/sources/chapter6/cleanup >/dev/null 2>&1 fi |