clean up directory after build

This commit is contained in:
YellowJacketLinux 2024-10-07 21:28:55 -07:00
parent 9e0a31d9a5
commit 4f1711b2b2
35 changed files with 317 additions and 1 deletions

View File

@ -39,3 +39,12 @@ install -v -m755 -d /usr/lib/cracklib
create-cracklib-dict /usr/share/dict/cracklib-words \ create-cracklib-dict /usr/share/dict/cracklib-words \
/usr/share/dict/cracklib-extra-words /usr/share/dict/cracklib-extra-words
popd
# cleanup
pushd $GLSOURCES
rm -rf cracklib-${cracklib_version}
popd

View File

@ -19,3 +19,13 @@ make prefix=/usr install
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
myfail "Failed installing man-pages" myfail "Failed installing man-pages"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf man-pages-${man_pages_version}
popd

View File

@ -14,4 +14,12 @@ cd iana-etc-${iana_etc_version}
cp services protocols /etc cp services protocols /etc
popd
# cleanup
pushd $GLSOURCES
rm -rf iana-etc-${iana_etc_version}
popd

View File

@ -91,6 +91,16 @@ cat >> /etc/ld.so.conf << "EOF"
include /etc/ld.so.conf.d/*.conf include /etc/ld.so.conf.d/*.conf
EOF EOF
mkdir -pv /etc/ld.so.conf.d mkdir -p /etc/ld.so.conf.d
# end glibc # end glibc
popd
# cleanup
pushd $GLSOURCES
rm -rf glibc-${glibc_version}
popd

View File

@ -30,3 +30,13 @@ if [ $? -ne 0 ]; then
fi fi
rm -f /usr/lib/libz.a rm -f /usr/lib/libz.a
popd
# cleanup
pushd $GLSOURCES
rm -rf zlib-${zlib_version}
popd

View File

@ -45,3 +45,13 @@ for i in /usr/bin/{bzcat,bunzip2}; do
done done
rm -fv /usr/lib/libbz2.a rm -fv /usr/lib/libbz2.a
popd
# cleanup
pushd $GLSOURCES
rm -rf bzip2-${bzip2_version}
popd

View File

@ -29,3 +29,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing xz" myfail "Failed installing xz"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf xz-${xz_version}
popd

View File

@ -25,3 +25,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing lz4" myfail "Failed installing lz4"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf lz4-${lz4_version}
popd

View File

@ -26,3 +26,13 @@ if [ $? -ne 0 ]; then
fi fi
rm -f /usr/lib/libzstd.a rm -f /usr/lib/libzstd.a
popd
# cleanup
pushd $GLSOURCES
rm -rf zstd-${zstd_version}
popd

View File

@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing file" myfail "Failed installing file"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf file-${file_version}
popd

View File

@ -26,3 +26,12 @@ if [ $? -ne 0 ]; then
myfail "Failed building readline" myfail "Failed building readline"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf readline-${readline_version}
popd

View File

@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing m4" myfail "Failed installing m4"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf m4-${m4_version}
popd

View File

@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing bc" myfail "Failed installing bc"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf bc-${bc_version}
popd

View File

@ -32,3 +32,12 @@ fi
ln -sv flex /usr/bin/lex ln -sv flex /usr/bin/lex
ln -sv flex.1 /usr/share/man/man1/lex.1 ln -sv flex.1 /usr/share/man/man1/lex.1
popd
# cleanup
pushd $GLSOURCES
rm -rf flex-${flex_version}
popd

View File

@ -62,4 +62,12 @@ tar -xf ../tcl${tcl_version}-html.tar.gz --strip-components=1
mkdir -v -p /usr/share/doc/tcl-${tcl_version} mkdir -v -p /usr/share/doc/tcl-${tcl_version}
cp -v -r ./html/* /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

View File

@ -35,3 +35,13 @@ if [ $? -ne 0 ]; then
fi fi
ln -svf expect${expect_version}/libexpect${expect_version}.so /usr/lib ln -svf expect${expect_version}/libexpect${expect_version}.so /usr/lib
popd
# cleanup
pushd $GLSOURCES
rm -rf expect${expect_version}
popd

View File

@ -30,4 +30,12 @@ fi
install -v -dm755 /usr/share/doc/dejagnu-${dejagnu_version} install -v -dm755 /usr/share/doc/dejagnu-${dejagnu_version}
install -v -m644 doc/dejagnu.{html,txt} /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

View File

@ -28,3 +28,13 @@ fi
ln -sv pkgconf /usr/bin/pkg-config ln -sv pkgconf /usr/bin/pkg-config
ln -sv pkgconf.1 /usr/share/man/man1/pkg-config.1 ln -sv pkgconf.1 /usr/share/man/man1/pkg-config.1
popd
# cleanup
pushd $GLSOURCES
rm -rf pkgconf-${pkgconf_version}
popd

View File

@ -42,3 +42,12 @@ fi
rm -f /usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a rm -f /usr/lib/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a
popd
# cleanup
pushd $GLSOURCES
rm -rf binutils-${binutils_version}
popd

View File

@ -40,4 +40,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing gmp html" myfail "Failed installing gmp html"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf gmp-${gmp_version}
popd

View File

@ -38,4 +38,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing mpfr html" myfail "Failed installing mpfr html"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf mpfr-${mpfr_version}
popd

View File

@ -37,4 +37,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing mpc html" myfail "Failed installing mpc html"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf mpc-${mpc_version}
popd

View File

@ -30,3 +30,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing attr" myfail "Failed installing attr"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf attr-${attr_version}
popd

View File

@ -26,3 +26,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing acl" myfail "Failed installing acl"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf acl-${acl_version}
popd

View File

@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing libcap" myfail "Failed installing libcap"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf libcap-${libcap_version}
popd

View File

@ -31,3 +31,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing libxcrypt" myfail "Failed installing libxcrypt"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf libxcrypt-${libxcrypt_version}
popd

View File

@ -55,4 +55,12 @@ grpconv
mkdir -p /etc/default mkdir -p /etc/default
useradd -D --gid 999 useradd -D --gid 999
popd
# cleanup
pushd $GLSOURCES
rm -rf shadow-${shadow_version}
popd

View File

@ -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 \ ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/14.2.0/liblto_plugin.so \
/usr/lib/bfd-plugins/ /usr/lib/bfd-plugins/
popd
# cleanup
pushd $GLSOURCES
rm -rf gcc-${gcc_version}
popd

View File

@ -44,3 +44,13 @@ done
ln -sf libncursesw.so /usr/lib/libcurses.so ln -sf libncursesw.so /usr/lib/libcurses.so
cp -R doc -T /usr/share/doc/ncurses-${ncurses_version} cp -R doc -T /usr/share/doc/ncurses-${ncurses_version}
popd
# cleanup
pushd $GLSOURCES
rm -rf ncurses-${ncurses_version}
popd

View File

@ -30,3 +30,12 @@ fi
install -d -m755 /usr/share/doc/sed-${sed_version} install -d -m755 /usr/share/doc/sed-${sed_version}
install -m644 doc/sed.html /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

View File

@ -27,3 +27,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing psmisc" myfail "Failed installing psmisc"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf psmisc-${psmisc_version}
popd

View File

@ -30,3 +30,12 @@ if [ $? -ne 0 ]; then
fi fi
chmod 0755 /usr/lib/preloadable_libintl.so chmod 0755 /usr/lib/preloadable_libintl.so
popd
# cleanup
pushd $GLSOURCES
rm -rf gettext-${gettext_version}
popd

View File

@ -28,3 +28,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing bison" myfail "Failed installing bison"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf bison-${bison_version}
popd

View File

@ -29,3 +29,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing grep" myfail "Failed installing grep"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf grep-${grep_version}
popd

View File

@ -28,3 +28,12 @@ if [ $? -ne 0 ]; then
myfail "Failed installing bash" myfail "Failed installing bash"
fi fi
popd
# cleanup
pushd $GLSOURCES
rm -rf bash-${bash_version}
popd