Clean up /opt/rtems in case junk is installed in the wrong place.

This has been seen on some machine configurations.
This commit is contained in:
Joel Sherrill
1999-11-02 16:07:06 +00:00
parent c42bd4525f
commit ee9d8d528c

View File

@@ -63,9 +63,9 @@ newlib=${newlib_version}
buildroot=/tmp buildroot=/tmp
testing=no testing=no
do_binutils=no do_binutils=yes
do_gdb=no do_gccnewlib=yes
do_gccnewlib=no do_gdb=yes
# #
# Now get started # Now get started
@@ -148,7 +148,6 @@ do
echo "rpm -ba ${specfile} >${logfile} 2>&1" echo "rpm -ba ${specfile} >${logfile} 2>&1"
if [ ${testing} = no ] ; then if [ ${testing} = no ] ; then
rpm -ba ${specfile} >${logfile} 2>&1 rpm -ba ${specfile} >${logfile} 2>&1
exit 0
fi fi
${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc* ${ECHO} rm -rf ${dst}/../BUILD/${target}-gcc*
${ECHO} rm -rf ${buildroot}/opt/rtems ${ECHO} rm -rf ${buildroot}/opt/rtems
@@ -156,6 +155,7 @@ exit 0
echo uninstalling binutils for ${target} echo uninstalling binutils for ${target}
if [ ${testing} = no ] ; then if [ ${testing} = no ] ; then
rpm -e `rpm -qa | grep rtems` rpm -e `rpm -qa | grep rtems`
rm -rf /opt/rtems/*
fi fi
else else
echo Skipping gcc/newlib for ${target} echo Skipping gcc/newlib for ${target}