summaryrefslogtreecommitdiff
path: root/Build-tools
diff options
context:
space:
mode:
Diffstat (limited to 'Build-tools')
-rwxr-xr-xBuild-tools/Do-rpm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Build-tools/Do-rpm b/Build-tools/Do-rpm
index e480a6f8344..51c0d6a152e 100755
--- a/Build-tools/Do-rpm
+++ b/Build-tools/Do-rpm
@@ -25,6 +25,10 @@ VER=`grep "AM_INIT_AUTOMAKE(mysql, " $bpath/configure.in | \
sed -e 's;AM_INIT_AUTOMAKE(mysql, ;;' -e 's;);;'`
VER_NO_DASH=`echo $VER | sed -e "s|-.*$||"`
+echo "Removing old MySQL packages"
+rm -rf $rpmdir/BUILD/mysql-*
+rm -f $rpmdir/SRPMS/MySQL-*
+
echo "Building RPM for MySQL version $VER on $bmachine"
log=$bpath/Logs/Log-RPM-`date +%y%m%d-%H%M`