From 4f1711b2b2364a27bbe5b0276072f673626dff82 Mon Sep 17 00:00:00 2001 From: YellowJacketLinux Date: Mon, 7 Oct 2024 21:28:55 -0700 Subject: [PATCH] clean up directory after build --- CH8Build/BLFS.01-cracklib.sh | 9 +++++++++ CH8Build/CH08.01-man-pages.sh | 10 ++++++++++ CH8Build/CH08.02-iana-etc.sh | 8 ++++++++ CH8Build/CH08.03-glibc.sh | 12 +++++++++++- CH8Build/CH08.04-zlib.sh | 10 ++++++++++ CH8Build/CH08.05-bzip2.sh | 10 ++++++++++ CH8Build/CH08.06-xz.sh | 9 +++++++++ CH8Build/CH08.07-lz4.sh | 9 +++++++++ CH8Build/CH08.08-zstd.sh | 10 ++++++++++ CH8Build/CH08.09-file.sh | 9 +++++++++ CH8Build/CH08.10-readline.sh | 9 +++++++++ CH8Build/CH08.11-m4.sh | 9 +++++++++ CH8Build/CH08.12-bc.sh | 9 +++++++++ CH8Build/CH08.13-flex.sh | 9 +++++++++ CH8Build/CH08.14-tcl.sh | 8 ++++++++ CH8Build/CH08.15-expect.sh | 10 ++++++++++ CH8Build/CH08.16-dejagnu.sh | 8 ++++++++ CH8Build/CH08.17-pkgconf.sh | 10 ++++++++++ CH8Build/CH08.18-binutils.sh | 9 +++++++++ CH8Build/CH08.19-gmp.sh | 8 ++++++++ CH8Build/CH08.20-mpfr.sh | 8 ++++++++ CH8Build/CH08.21-mpc.sh | 8 ++++++++ CH8Build/CH08.22-attr.sh | 9 +++++++++ CH8Build/CH08.23-acl.sh | 9 +++++++++ CH8Build/CH08.24-libcap.sh | 9 +++++++++ CH8Build/CH08.25-libxcrypt.sh | 9 +++++++++ CH8Build/CH08.26-shadow.sh | 8 ++++++++ CH8Build/CH08.27-gcc.sh | 9 +++++++++ CH8Build/CH08.28-ncurses.sh | 10 ++++++++++ CH8Build/CH08.29-sed.sh | 9 +++++++++ CH8Build/CH08.30-psmisc.sh | 9 +++++++++ CH8Build/CH08.31-gettext.sh | 9 +++++++++ CH8Build/CH08.32-bison.sh | 9 +++++++++ CH8Build/CH08.33-grep.sh | 9 +++++++++ CH8Build/CH08.34-bash.sh | 9 +++++++++ 35 files changed, 317 insertions(+), 1 deletion(-) diff --git a/CH8Build/BLFS.01-cracklib.sh b/CH8Build/BLFS.01-cracklib.sh index 4696b8d..08ed09f 100644 --- a/CH8Build/BLFS.01-cracklib.sh +++ b/CH8Build/BLFS.01-cracklib.sh @@ -39,3 +39,12 @@ install -v -m755 -d /usr/lib/cracklib create-cracklib-dict /usr/share/dict/cracklib-words \ /usr/share/dict/cracklib-extra-words +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf cracklib-${cracklib_version} + +popd diff --git a/CH8Build/CH08.01-man-pages.sh b/CH8Build/CH08.01-man-pages.sh index 6986b27..8c6ebc7 100644 --- a/CH8Build/CH08.01-man-pages.sh +++ b/CH8Build/CH08.01-man-pages.sh @@ -19,3 +19,13 @@ make prefix=/usr install if [ $? -ne 0 ]; then myfail "Failed installing man-pages" fi + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf man-pages-${man_pages_version} + +popd diff --git a/CH8Build/CH08.02-iana-etc.sh b/CH8Build/CH08.02-iana-etc.sh index 19a4bbb..bf13505 100644 --- a/CH8Build/CH08.02-iana-etc.sh +++ b/CH8Build/CH08.02-iana-etc.sh @@ -14,4 +14,12 @@ cd iana-etc-${iana_etc_version} cp services protocols /etc +popd +# cleanup + +pushd $GLSOURCES + +rm -rf iana-etc-${iana_etc_version} + +popd diff --git a/CH8Build/CH08.03-glibc.sh b/CH8Build/CH08.03-glibc.sh index 9ffc7e0..6150ee5 100644 --- a/CH8Build/CH08.03-glibc.sh +++ b/CH8Build/CH08.03-glibc.sh @@ -91,6 +91,16 @@ cat >> /etc/ld.so.conf << "EOF" include /etc/ld.so.conf.d/*.conf EOF -mkdir -pv /etc/ld.so.conf.d +mkdir -p /etc/ld.so.conf.d # end glibc + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf glibc-${glibc_version} + +popd diff --git a/CH8Build/CH08.04-zlib.sh b/CH8Build/CH08.04-zlib.sh index 211b053..790e665 100644 --- a/CH8Build/CH08.04-zlib.sh +++ b/CH8Build/CH08.04-zlib.sh @@ -30,3 +30,13 @@ if [ $? -ne 0 ]; then fi rm -f /usr/lib/libz.a + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf zlib-${zlib_version} + +popd diff --git a/CH8Build/CH08.05-bzip2.sh b/CH8Build/CH08.05-bzip2.sh index bae60dd..18b8389 100644 --- a/CH8Build/CH08.05-bzip2.sh +++ b/CH8Build/CH08.05-bzip2.sh @@ -45,3 +45,13 @@ for i in /usr/bin/{bzcat,bunzip2}; do done rm -fv /usr/lib/libbz2.a + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf bzip2-${bzip2_version} + +popd diff --git a/CH8Build/CH08.06-xz.sh b/CH8Build/CH08.06-xz.sh index bdfb34d..c939294 100644 --- a/CH8Build/CH08.06-xz.sh +++ b/CH8Build/CH08.06-xz.sh @@ -29,3 +29,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing xz" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf xz-${xz_version} + +popd diff --git a/CH8Build/CH08.07-lz4.sh b/CH8Build/CH08.07-lz4.sh index 5136b17..4437375 100644 --- a/CH8Build/CH08.07-lz4.sh +++ b/CH8Build/CH08.07-lz4.sh @@ -25,3 +25,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing lz4" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf lz4-${lz4_version} + +popd diff --git a/CH8Build/CH08.08-zstd.sh b/CH8Build/CH08.08-zstd.sh index ae6def4..a242d72 100644 --- a/CH8Build/CH08.08-zstd.sh +++ b/CH8Build/CH08.08-zstd.sh @@ -26,3 +26,13 @@ if [ $? -ne 0 ]; then fi rm -f /usr/lib/libzstd.a + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf zstd-${zstd_version} + +popd diff --git a/CH8Build/CH08.09-file.sh b/CH8Build/CH08.09-file.sh index 13c5323..0ba0a6b 100644 --- a/CH8Build/CH08.09-file.sh +++ b/CH8Build/CH08.09-file.sh @@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing file" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf file-${file_version} + +popd diff --git a/CH8Build/CH08.10-readline.sh b/CH8Build/CH08.10-readline.sh index 9e266c3..cfc1dee 100644 --- a/CH8Build/CH08.10-readline.sh +++ b/CH8Build/CH08.10-readline.sh @@ -26,3 +26,12 @@ if [ $? -ne 0 ]; then myfail "Failed building readline" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf readline-${readline_version} + +popd diff --git a/CH8Build/CH08.11-m4.sh b/CH8Build/CH08.11-m4.sh index 49f3457..fc15593 100644 --- a/CH8Build/CH08.11-m4.sh +++ b/CH8Build/CH08.11-m4.sh @@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing m4" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf m4-${m4_version} + +popd diff --git a/CH8Build/CH08.12-bc.sh b/CH8Build/CH08.12-bc.sh index aa0bdb4..cad3cea 100644 --- a/CH8Build/CH08.12-bc.sh +++ b/CH8Build/CH08.12-bc.sh @@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing bc" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf bc-${bc_version} + +popd diff --git a/CH8Build/CH08.13-flex.sh b/CH8Build/CH08.13-flex.sh index c99cb57..31a179b 100644 --- a/CH8Build/CH08.13-flex.sh +++ b/CH8Build/CH08.13-flex.sh @@ -32,3 +32,12 @@ fi ln -sv flex /usr/bin/lex ln -sv flex.1 /usr/share/man/man1/lex.1 +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf flex-${flex_version} + +popd diff --git a/CH8Build/CH08.14-tcl.sh b/CH8Build/CH08.14-tcl.sh index 0a8aa3b..ee216f9 100644 --- a/CH8Build/CH08.14-tcl.sh +++ b/CH8Build/CH08.14-tcl.sh @@ -62,4 +62,12 @@ tar -xf ../tcl${tcl_version}-html.tar.gz --strip-components=1 mkdir -v -p /usr/share/doc/tcl-${tcl_version} cp -v -r ./html/* /usr/share/doc/tcl-${tcl_version} +popd +# cleanup + +pushd $GLSOURCES + +rm -rf tcl${tcl_version} + +popd diff --git a/CH8Build/CH08.15-expect.sh b/CH8Build/CH08.15-expect.sh index f07167a..f53a07a 100644 --- a/CH8Build/CH08.15-expect.sh +++ b/CH8Build/CH08.15-expect.sh @@ -35,3 +35,13 @@ if [ $? -ne 0 ]; then fi ln -svf expect${expect_version}/libexpect${expect_version}.so /usr/lib + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf expect${expect_version} + +popd diff --git a/CH8Build/CH08.16-dejagnu.sh b/CH8Build/CH08.16-dejagnu.sh index acbb1a7..9f119e6 100644 --- a/CH8Build/CH08.16-dejagnu.sh +++ b/CH8Build/CH08.16-dejagnu.sh @@ -30,4 +30,12 @@ fi install -v -dm755 /usr/share/doc/dejagnu-${dejagnu_version} install -v -m644 doc/dejagnu.{html,txt} /usr/share/doc/dejagnu-${dejagnu_version} +popd +# cleanup + +pushd $GLSOURCES + +rm -rf dejagnu-${dejagnu_version} + +popd diff --git a/CH8Build/CH08.17-pkgconf.sh b/CH8Build/CH08.17-pkgconf.sh index 6a7de56..5c0e5c6 100644 --- a/CH8Build/CH08.17-pkgconf.sh +++ b/CH8Build/CH08.17-pkgconf.sh @@ -28,3 +28,13 @@ fi ln -sv pkgconf /usr/bin/pkg-config ln -sv pkgconf.1 /usr/share/man/man1/pkg-config.1 + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf pkgconf-${pkgconf_version} + +popd diff --git a/CH8Build/CH08.18-binutils.sh b/CH8Build/CH08.18-binutils.sh index 9fee2e4..1e016d8 100644 --- a/CH8Build/CH08.18-binutils.sh +++ b/CH8Build/CH08.18-binutils.sh @@ -42,3 +42,12 @@ fi rm -f /usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf binutils-${binutils_version} + +popd diff --git a/CH8Build/CH08.19-gmp.sh b/CH8Build/CH08.19-gmp.sh index 29a5c29..c6d37fe 100644 --- a/CH8Build/CH08.19-gmp.sh +++ b/CH8Build/CH08.19-gmp.sh @@ -40,4 +40,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing gmp html" fi +popd +# cleanup + +pushd $GLSOURCES + +rm -rf gmp-${gmp_version} + +popd diff --git a/CH8Build/CH08.20-mpfr.sh b/CH8Build/CH08.20-mpfr.sh index c0efd05..c8bac2c 100644 --- a/CH8Build/CH08.20-mpfr.sh +++ b/CH8Build/CH08.20-mpfr.sh @@ -38,4 +38,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing mpfr html" fi +popd +# cleanup + +pushd $GLSOURCES + +rm -rf mpfr-${mpfr_version} + +popd diff --git a/CH8Build/CH08.21-mpc.sh b/CH8Build/CH08.21-mpc.sh index 9e229b2..7b72a06 100644 --- a/CH8Build/CH08.21-mpc.sh +++ b/CH8Build/CH08.21-mpc.sh @@ -37,4 +37,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing mpc html" fi +popd +# cleanup + +pushd $GLSOURCES + +rm -rf mpc-${mpc_version} + +popd diff --git a/CH8Build/CH08.22-attr.sh b/CH8Build/CH08.22-attr.sh index 0c68207..23bc97a 100644 --- a/CH8Build/CH08.22-attr.sh +++ b/CH8Build/CH08.22-attr.sh @@ -30,3 +30,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing attr" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf attr-${attr_version} + +popd diff --git a/CH8Build/CH08.23-acl.sh b/CH8Build/CH08.23-acl.sh index c5e40b4..3ae0b6a 100644 --- a/CH8Build/CH08.23-acl.sh +++ b/CH8Build/CH08.23-acl.sh @@ -26,3 +26,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing acl" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf acl-${acl_version} + +popd diff --git a/CH8Build/CH08.24-libcap.sh b/CH8Build/CH08.24-libcap.sh index 87c3bee..8271e49 100644 --- a/CH8Build/CH08.24-libcap.sh +++ b/CH8Build/CH08.24-libcap.sh @@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing libcap" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf libcap-${libcap_version} + +popd diff --git a/CH8Build/CH08.25-libxcrypt.sh b/CH8Build/CH08.25-libxcrypt.sh index 9ff3d7d..1fe2c7b 100644 --- a/CH8Build/CH08.25-libxcrypt.sh +++ b/CH8Build/CH08.25-libxcrypt.sh @@ -31,3 +31,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing libxcrypt" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf libxcrypt-${libxcrypt_version} + +popd diff --git a/CH8Build/CH08.26-shadow.sh b/CH8Build/CH08.26-shadow.sh index 34cfa37..c5f9e23 100644 --- a/CH8Build/CH08.26-shadow.sh +++ b/CH8Build/CH08.26-shadow.sh @@ -55,4 +55,12 @@ grpconv mkdir -p /etc/default useradd -D --gid 999 +popd +# cleanup + +pushd $GLSOURCES + +rm -rf shadow-${shadow_version} + +popd diff --git a/CH8Build/CH08.27-gcc.sh b/CH8Build/CH08.27-gcc.sh index dc74c5c..78284c2 100644 --- a/CH8Build/CH08.27-gcc.sh +++ b/CH8Build/CH08.27-gcc.sh @@ -65,3 +65,12 @@ ln -sv gcc.1 /usr/share/man/man1/cc.1 ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/14.2.0/liblto_plugin.so \ /usr/lib/bfd-plugins/ +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf gcc-${gcc_version} + +popd diff --git a/CH8Build/CH08.28-ncurses.sh b/CH8Build/CH08.28-ncurses.sh index c7eebcc..ac9bc63 100644 --- a/CH8Build/CH08.28-ncurses.sh +++ b/CH8Build/CH08.28-ncurses.sh @@ -44,3 +44,13 @@ done ln -sf libncursesw.so /usr/lib/libcurses.so cp -R doc -T /usr/share/doc/ncurses-${ncurses_version} + +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf ncurses-${ncurses_version} + +popd diff --git a/CH8Build/CH08.29-sed.sh b/CH8Build/CH08.29-sed.sh index d792c0f..464f50f 100644 --- a/CH8Build/CH08.29-sed.sh +++ b/CH8Build/CH08.29-sed.sh @@ -30,3 +30,12 @@ fi install -d -m755 /usr/share/doc/sed-${sed_version} install -m644 doc/sed.html /usr/share/doc/sed-${sed_version} +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf sed-${sed_version} + +popd diff --git a/CH8Build/CH08.30-psmisc.sh b/CH8Build/CH08.30-psmisc.sh index 1bdbf94..2821ada 100644 --- a/CH8Build/CH08.30-psmisc.sh +++ b/CH8Build/CH08.30-psmisc.sh @@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing psmisc" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf psmisc-${psmisc_version} + +popd diff --git a/CH8Build/CH08.31-gettext.sh b/CH8Build/CH08.31-gettext.sh index e53cb77..840304b 100644 --- a/CH8Build/CH08.31-gettext.sh +++ b/CH8Build/CH08.31-gettext.sh @@ -30,3 +30,12 @@ if [ $? -ne 0 ]; then fi chmod 0755 /usr/lib/preloadable_libintl.so +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf gettext-${gettext_version} + +popd diff --git a/CH8Build/CH08.32-bison.sh b/CH8Build/CH08.32-bison.sh index e4d9f50..3fbb30b 100644 --- a/CH8Build/CH08.32-bison.sh +++ b/CH8Build/CH08.32-bison.sh @@ -28,3 +28,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing bison" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf bison-${bison_version} + +popd diff --git a/CH8Build/CH08.33-grep.sh b/CH8Build/CH08.33-grep.sh index 5bc542b..8161541 100644 --- a/CH8Build/CH08.33-grep.sh +++ b/CH8Build/CH08.33-grep.sh @@ -29,3 +29,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing grep" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf grep-${grep_version} + +popd diff --git a/CH8Build/CH08.34-bash.sh b/CH8Build/CH08.34-bash.sh index ceb79b7..eca1cc0 100644 --- a/CH8Build/CH08.34-bash.sh +++ b/CH8Build/CH08.34-bash.sh @@ -28,3 +28,12 @@ if [ $? -ne 0 ]; then myfail "Failed installing bash" fi +popd + +# cleanup + +pushd $GLSOURCES + +rm -rf bash-${bash_version} + +popd