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