clean up directory after build

This commit is contained in:
YellowJacketLinux 2024-10-08 00:12:55 -07:00
parent 2e48c0d9f3
commit aac32fba12
7 changed files with 73 additions and 13 deletions

View File

@ -4,7 +4,7 @@ source versions.sh
GLSOURCES="/sources" GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d gettext-${gettext_version} ] && rm -rf gettext-${gettext_version} [ -d gettext-${gettext_version} ] && rm -rf gettext-${gettext_version}
@ -20,5 +20,15 @@ if [ $? -ne 0 ]; then
myfail "Failed building gettext" myfail "Failed building gettext"
fi fi
cp -v gettext-tools/src/{msgfmt,msgmerge,xgettext} /usr/bin cp gettext-tools/src/{msgfmt,msgmerge,xgettext} /usr/bin
popd
# cleanup
pushd ${GLSOURCES}
rm -rf gettext-${gettext_version}
popd

View File

@ -4,7 +4,7 @@ source versions.sh
GLSOURCES="/sources" GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d bison-${bison_version} ] && rm -rf bison-${bison_version} [ -d bison-${bison_version} ] && rm -rf bison-${bison_version}
@ -26,3 +26,13 @@ make install
if [ $? -ne 0 ]; then 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

@ -4,7 +4,7 @@ source versions.sh
GLSOURCES="/sources" GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d perl-${perl_version} ] && rm -rf perl-${perl_version} [ -d perl-${perl_version} ] && rm -rf perl-${perl_version}
@ -36,3 +36,13 @@ make install
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
myfail "Failed installing perl" myfail "Failed installing perl"
fi fi
popd
# cleanup
pushd ${GLSOURCES}
rm -rf perl-${perl_version}
popd

View File

@ -4,7 +4,7 @@ source versions.sh
GLSOURCES="/sources" GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d Python-${python_version} ] && rm -rf Python-${python_version} [ -d Python-${python_version} ] && rm -rf Python-${python_version}
@ -27,3 +27,13 @@ make install
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
myfail "Failed installing python" myfail "Failed installing python"
fi fi
popd
# cleanup
pushd ${GLSOURCES}
rm -rf Python-${python_version}
popd

View File

@ -4,7 +4,7 @@ source versions.sh
GLSOURCES="/sources" GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d texinfo-${texinfo_version} ] && rm -rf texinfo-${texinfo_version} [ -d texinfo-${texinfo_version} ] && rm -rf texinfo-${texinfo_version}
@ -25,3 +25,13 @@ make install
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
myfail "Failed installing texinfo" myfail "Failed installing texinfo"
fi fi
popd
# cleanup
pushd ${GLSOURCES}
rm -rf texinfo-${texinfo_version}
popd

View File

@ -4,7 +4,7 @@ source versions.sh
GLSOURCES="/sources" GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}" pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d util-linux-${util_linux_version} ] && rm -rf util-linux-${util_linux_version} [ -d util-linux-${util_linux_version} ] && rm -rf util-linux-${util_linux_version}
@ -39,3 +39,13 @@ make install
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
myfail "Failed installing util-linux" myfail "Failed installing util-linux"
fi fi
popd
# cleanup
pushd ${GLSOURCES}
rm -rf util-linux-${util_linux_version}
popd

View File

@ -6,7 +6,7 @@ if [ $? -ne 0 ]; then
echo "failed CH07.01-gettext.sh" echo "failed CH07.01-gettext.sh"
exit 1 exit 1
else else
echo "LFS Chapter 7 Gettext Complete" echo "LFS Chapter 7 Gettext Complete [1/6]"
sleep 3 sleep 3
fi fi
@ -16,7 +16,7 @@ if [ $? -ne 0 ]; then
echo "failed CH07.02-bison.sh" echo "failed CH07.02-bison.sh"
exit 1 exit 1
else else
echo "LFS Chapter 7 Bison Complete" echo "LFS Chapter 7 Bison Complete [2/6]"
sleep 3 sleep 3
fi fi
@ -26,7 +26,7 @@ if [ $? -ne 0 ]; then
echo "failed CH07.03-perl.sh" echo "failed CH07.03-perl.sh"
exit 1 exit 1
else else
echo "LFS Chapter 7 Perl Complete" echo "LFS Chapter 7 Perl Complete [3/6]"
sleep 3 sleep 3
fi fi
@ -36,7 +36,7 @@ if [ $? -ne 0 ]; then
echo "failed CH07.04-python.sh" echo "failed CH07.04-python.sh"
exit 1 exit 1
else else
echo "LFS Chapter 7 Python Complete" echo "LFS Chapter 7 Python Complete [4/6]"
sleep 3 sleep 3
fi fi
@ -46,7 +46,7 @@ if [ $? -ne 0 ]; then
echo "failed CH07.05-texinfo.sh" echo "failed CH07.05-texinfo.sh"
exit 1 exit 1
else else
echo "LFS Chapter 7 Texinfo Complete" echo "LFS Chapter 7 Texinfo Complete [5/6]"
sleep 3 sleep 3
fi fi
@ -56,7 +56,7 @@ if [ $? -ne 0 ]; then
echo "failed CH07.06-util-linux.sh" echo "failed CH07.06-util-linux.sh"
exit 1 exit 1
else else
echo "LFS Chapter 7 Util-Linux Complete" echo "LFS Chapter 7 Util-Linux Complete [6/6]"
sleep 3 sleep 3
fi fi